Ejemplo n.º 1
0
 /**
  * Get instanz of the object (Singelton) 
  *
  * @return ClipboardXml 
  */
 public static function getInstance()
 {
     if (self::$_objInstance == NULL) {
         self::$_objInstance = new ClipboardXml();
     }
     return self::$_objInstance;
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }