/**
  * Get instanz of the object (Singelton) 
  *
  * @return ClipboardXmlReader 
  */
 public static function getInstance()
 {
     if (self::$_objInstance == NULL) {
         self::$_objInstance = new ClipboardXmlReader();
     }
     return self::$_objInstance;
 }
 /**
  * Set detailt information from file meta description 
  */
 protected function _setDetailFileInfo()
 {
     $arrMetaInformation = $this->_objXmlReader->getDetailFileInfo($this->getFilePath('full'));
     $tmpTitle = $arrMetaInformation['title'];
     if (strpos($tmpTitle, '(' . $GLOBALS['TL_LANG']['MSC']['clipboardGroup'] . ')') !== false) {
         $tmpTitle = trim(str_replace('(' . $GLOBALS['TL_LANG']['MSC']['clipboardGroup'] . ')', '', $tmpTitle));
     }
     $this->_title = $tmpTitle;
     $this->_groupCount = $arrMetaInformation['group_count'];
     $this->_attribute = $arrMetaInformation['attribute'];
     $this->_checksum = $arrMetaInformation['checksum'];
     $this->_encryptionKey = $arrMetaInformation['encryptionKey'];
 }
Exemple #3
0
 /**
  * Set the current favorite to the given position in action with the id
  * 
  * @param string $strPastePos
  * @param integer $intId 
  */
 public function read($strPastePos, $intId)
 {
     $this->_objXmlReader->readXml($this->getFavorite(), $strPastePos, $intId);
 }