示例#1
0
 /**
  * Fill the clipboard from files 
  */
 protected function _createClipboardFromFiles()
 {
     $arrFiles = scan(TL_ROOT . '/' . $this->getPath());
     if (is_array($arrFiles) && count($arrFiles) > 0) {
         foreach ($arrFiles as $strFileName) {
             $arrFile = $this->_objHelper->getArrFromFileName($this->getPath() . '/' . $strFileName);
             if ($arrFile[0] != $this->_objHelper->getPageType()) {
                 continue;
             }
             if ($this->_fileExists($strFileName)) {
                 $objFile = new ClipboardXmlElement($strFileName, $this->getPath());
             }
             $this->_arrClipboardElements[$objFile->getHash()] = $objFile;
         }
     }
 }