/** * Construct object * * @param string $strFileName * @param string $strPath */ public function __construct($strFileName, $strPath) { $this->_objHelper = ClipboardHelper::getInstance(); $this->_objXmlWriter = ClipboardXmlWriter::getInstance(); $this->_objXmlReader = ClipboardXmlReader::getInstance(); $this->_objFiles = Files::getInstance(); $this->_filename = $strFileName; $this->_path = $strPath; }
/** * Prevent constructing the object (Singleton) */ protected function __construct() { parent::__construct(); $this->import('BackendUser', 'User'); $this->_objXmlReader = ClipboardXmlReader::getInstance(); $this->_objXmlWriter = ClipboardXmlWriter::getInstance(); $this->_objHelper = ClipboardHelper::getInstance(); $this->_objFiles = Files::getInstance(); $this->_createClipboardFromFiles(); }