예제 #1
0
 /**
  * Process the data returned from a directory content listing.
  * (Overriden)
  * @param type $lines the lines  that  were returned from the directoryt file listing
  */
 protected function processDirectoryData($lines)
 {
     $parser = Zend_Ftp_Factory::getParser($this->_ftp->getSysType());
     foreach ($lines as $line) {
         $fileData = $parser->parseFileDirectoryListing($line);
         $id = intval(substr($fileData['name'], 2, 4), 10);
         if (isset($this->_dir->filesState[$id]) && $this->_dir->filesState[$id]['state'] == Zend_Ftp_Directory_Nsn::FILE_STATE_FULL) {
             $fileData['id'] = $id;
             $this->_data[] = $fileData;
         }
     }
     $this->_count = count($this->_data);
 }
예제 #2
0
파일: Iterator.php 프로젝트: ngchie/system
 /**
  * process the data returned from a directory content listing.
  * @param type $lines the lines  that  were returned from the directoryt file listing
  */
 protected function processDirectoryData($lines)
 {
     $parser = Zend_Ftp_Factory::getParser($this->_ftp->getSysType());
     foreach ($lines as $line) {
         $fileData = $parser->parseFileDirectoryListing($line);
         if ($fileData['type'] != 'l') {
             $this->_data[] = $fileData;
         }
     }
     $this->_count = count($this->_data);
 }