ILIAS  release_4-4 Revision
ilERP_none Class Reference
+ Inheritance diagram for ilERP_none:
+ Collaboration diagram for ilERP_none:

Public Member Functions

 __construct ()
 
 getSettings ($erps_id=0)
 Return e-conomic settings as an array. More...
 
 connect ()
 
 disconnect ()
 
 getName ()
 
 setSettings ( $a)
 Sets e-conomic settings. More...
 
 looksValid ()
 Returns true if the e-conomic settings looks valid to the interface Done without testing conection etc. More...
 
 loadSettings ($erps_id=0)
 Called from constructor to fetch settings from database. More...
 
- Public Member Functions inherited from ilERP
 getName ()
 
 loadSettings ($erps_id=0)
 
 looksValid ()
 
 connect ()
 
 disconnect ()
 
 setSettings ($a)
 Set settings posted by some form. More...
 
 saveSettings ($settings)
 
 setActive ($erp_system=0, $erp_settings=0)
 Sets a specific configuration active and disable all other ERPs. More...
 
 getSettings ($elvis_is_alive=0)
 Return all relevant settings for a configuration. More...
 
 getERPconstants ($erp_system=0)
 Get some ERP system specific variables, stored in payment_erp. More...
 

Static Public Member Functions

static _getInstance ()
 Static method to get the singleton instance. More...
 
- Static Public Member Functions inherited from ilERP
static getPreviewFile ()
 
static getPreviewUrl ()
 
static getPreviewLink ()
 
static getSaveDirectory ()
 
static preview_exists ()
 
static preview_delete ()
 
static getAllERPs ()
 Get the list of ILIAS supported ERPs. More...
 
static getActive ()
 Get information about what ERP is activated. More...
 

Data Fields

 $client
 
const erp_id = ERP_NONE
 
const name = "none"
 
- Data Fields inherited from ilERP
const preview_pre = "invoice_"
 
const preview_ext = ".pdf"
 

Private Attributes

 $agreement
 
 $product
 
 $terms
 
 $layout
 
 $code
 

Static Private Attributes

static $instance = null
 

Additional Inherited Members

- Protected Member Functions inherited from ilERP
 setUsername ( $v)
 Set the username used to login to ERP. More...
 
 setPassword ($v)
 Set the password used in the ERP. More...
 
 setSaveCopy ( $v)
 Set the directory for saving invoices. More...
 
 setUseEAN ( $v)
 
- Protected Attributes inherited from ilERP
 $username
 
 $password
 
 $use_ean
 
 $save_copy
 

Detailed Description

Author
Jesper Godvad jespe.nosp@m.r@il.nosp@m.ias.d.nosp@m.k
Nicolai Lundgaard nicol.nosp@m.ai@i.nosp@m.lias..nosp@m.dk
Version
$Id$

Definition at line 35 of file class.ilERP_none.php.

Constructor & Destructor Documentation

◆ __construct()

ilERP_none::__construct ( )

Definition at line 50 of file class.ilERP_none.php.

References loadSettings().

51  {
52  $this->loadSettings(0);
53  }
loadSettings($erps_id=0)
Called from constructor to fetch settings from database.
+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

static ilERP_none::_getInstance ( )
static

Static method to get the singleton instance.

public

Returns
object $instance Singular E-conomic instance

Definition at line 63 of file class.ilERP_none.php.

64  {
65  if (isset(self::$instance) and self::$instance)
66  {
67  return self::$instance;
68  }
69  return self::$instance = new ilERP_eco();
70 
71  }

◆ connect()

ilERP_none::connect ( )

Definition at line 86 of file class.ilERP_none.php.

87  {
88  $this->connection_ok = true;
89  }

◆ disconnect()

ilERP_none::disconnect ( )

Definition at line 90 of file class.ilERP_none.php.

91  {
92  $this->connection_ok = false;
93  }

◆ getName()

ilERP_none::getName ( )

Definition at line 95 of file class.ilERP_none.php.

96  {
97  return "none";
98  }

◆ getSettings()

ilERP_none::getSettings (   $erps_id = 0)

Return e-conomic settings as an array.

public

Returns
array

Definition at line 80 of file class.ilERP_none.php.

81  {
82  return parent::getSettings();
83 
84  }

◆ loadSettings()

ilERP_none::loadSettings (   $erps_id = 0)

Called from constructor to fetch settings from database.

private

Definition at line 132 of file class.ilERP_none.php.

Referenced by __construct().

133  {
134  }
+ Here is the caller graph for this function:

◆ looksValid()

ilERP_none::looksValid ( )

Returns true if the e-conomic settings looks valid to the interface Done without testing conection etc.

public

Definition at line 120 of file class.ilERP_none.php.

121  {
122  return true;
123  }

◆ setSettings()

ilERP_none::setSettings (   $a)

Sets e-conomic settings.

public

Definition at line 109 of file class.ilERP_none.php.

110  {
111  parent::setSettings($a);
112  }

Field Documentation

◆ $agreement

ilERP_none::$agreement
private

Definition at line 37 of file class.ilERP_none.php.

◆ $client

ilERP_none::$client

Definition at line 45 of file class.ilERP_none.php.

◆ $code

ilERP_none::$code
private

Definition at line 41 of file class.ilERP_none.php.

◆ $instance

ilERP_none::$instance = null
staticprivate

Definition at line 43 of file class.ilERP_none.php.

◆ $layout

ilERP_none::$layout
private

Definition at line 40 of file class.ilERP_none.php.

◆ $product

ilERP_none::$product
private

Definition at line 38 of file class.ilERP_none.php.

◆ $terms

ilERP_none::$terms
private

Definition at line 39 of file class.ilERP_none.php.

◆ erp_id

const ilERP_none::erp_id = ERP_NONE

Definition at line 47 of file class.ilERP_none.php.

◆ name

const ilERP_none::name = "none"

Definition at line 48 of file class.ilERP_none.php.


The documentation for this class was generated from the following file: