/** * Static method to get the singleton instance * * @access public * @return object $instance Singular E-conomic instance */ public static function _getInstance() { if (isset(self::$instance) and self::$instance) { return self::$instance; } return self::$instance = new ilERP_eco(); }
/** * Retrive or create Debtor */ public function __construct() { $this->erp = ilERP_eco::_getInstance(); $this->set = $this->erp->getSettings(); parent::__construct(); }