ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilERP_none.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
33 require_once './Services/Payment/classes/class.ilERP.php';
34 
35 class ilERP_none extends ilERP
36 {
37  private $agreement;
38  private $product;
39  private $terms;
40  private $layout;
41  private $code;
42 
43  private static $instance = null;
44 
45  public $client;
46 
47  const erp_id = ERP_NONE;
48  const name = "none";
49 
50  public function __construct()
51  {
52  $this->loadSettings(0);
53  }
54 
55 
56 
63  public static function _getInstance()
64  {
65  if (isset(self::$instance) and self::$instance)
66  {
67  return self::$instance;
68  }
69  return self::$instance = new ilERP_eco();
70 
71  }
72 
73 
80  public function getSettings($erps_id = 0)
81  {
82  return parent::getSettings();
83 
84  }
85 
86  public function connect()
87  {
88  $this->connection_ok = true;
89  }
90  public function disconnect()
91  {
92  $this->connection_ok = false;
93  }
94 
95  public function getName()
96  {
97  return "none";
98  }
99 
100 
101 
102 
103 
109  public function setSettings( $a )
110  {
111  parent::setSettings($a);
112  }
113 
120  public function looksValid()
121  {
122  return true;
123  }
124 
125 
126 
132  public function loadSettings($erps_id = 0)
133  {
134  }
135 
136 
137 
138 }
139 ?>