XarayaTranslationMemory  1.6
TranslationImport.php
Go to the documentation of this file.
1 <?php
2 /***************************************************************************
3  * Copyright (C) 2005-2020 by Ferenc Veres *
4  * lion@netngine.hu *
5  * *
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 3 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18  ***************************************************************************/
19 include_once("TranslationImportXaraya.php");
20 include_once("TranslationImportXarigami.php");
21 
27 {
32  function __construct()
33  {
34  }
35 
41  public function NewImporter($type)
42  {
43  switch($type)
44  {
45  case 'Xaraya': return new TranslationImportXaraya();
46  case 'Xarigami': return new TranslationImportXarigami();
47  default: throw new Exception("NewImporter: Creating unknown importer: $type");
48  }
49  }
50 
56  public function GetProjectTypes()
57  {
58  return array("Xaraya", "Xarigami");
59  }
60 }
61 
67 {
68  public function Import($localeName);
69 }
70 
71 ?>