/** * Get instanz of the object (Singelton) * * @return ClipboardXml */ public static function getInstance() { if (self::$_objInstance == NULL) { self::$_objInstance = new ClipboardXml(); } return self::$_objInstance; }
/** * Prevent constructing the object (Singleton) */ protected function __construct() { parent::__construct(); $this->import('BackendUser', 'User'); $this->_objHelper = ClipboardHelper::getInstance(); $this->_objCbXml = ClipboardXml::getInstance(); $this->_objDatabase = ClipboardDatabase::getInstance(); $this->_objString = String::getInstance(); }