/** * Class Constructor that gets an instance of the System_Database_Root * * @access public * @return Object instance of this class */ public function __construct() { $this->_validator = System_Registry_Storage::get('System_Utility_Validate'); $this->_system_log = System_Registry_Storage::get('System_Log_Controller'); $this->_unit_of_work = System_Database_Work::getInstance(); $this->_registration_id = $this->defineRegistrationId(); $this->setIndexes(); return $this; }
/** * returns an instance of this class * * @static * @return Object, instance of this class */ public static function getInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }