Beispiel #1
0
 /**
  * @param String $filename  The filename, f.i. 'pussy.gif'
  * @param String $type      The upload type, i.e. 'document' or 'image'.
  */
 public function addEntry(Garp_Content_Upload_FileNode $file)
 {
     if ($file->isValid()) {
         $this[] = $file;
     }
 }
Beispiel #2
0
 protected function _matchEtags(Garp_Content_Upload_FileNode $file)
 {
     $filename = $file->getFilename();
     $type = $file->getType();
     $sourceEtag = $this->_source->fetchEtag($filename, $type);
     $targetEtag = $this->_target->fetchEtag($filename, $type);
     return $sourceEtag == $targetEtag;
 }