Lines Matching refs:source
257 function readSource(&$source, $URL, $symbolic = null, argument
260 return File_Archive::_readSource($source, $URL, $reachable, $baseDir,
274 $source =& File_Archive::_convertToReader($toConvert);
275 if (PEAR::isError($source)) {
276 return $source;
325 $result = File_Archive::_readSource($source, $baseFile,
334 if ((empty($URL) || is_dir($URL)) && $source === null) {
372 } else if (is_file($URL) && substr($URL, -1)!='/' && $source === null) {
404 (is_dir($file) && $source==null)));
409 if ($source === null) {
416 $result = new File_Archive_Reader_Select($file, $source);
476 $source = null;
477 return File_Archive::readSource($source, $URL, $symbolic, $uncompression, $directoryDepth);
550 $source =& File_Archive::_convertToReader($toConvert);
551 if (PEAR::isError($source)) {
552 return $source;
556 return new File_Archive_Reader_Cache($source);
566 function &_convertToReader(&$source) argument
568 if (is_string($source)) {
571 preg_match($cacheCondition, $source)) {
572 return File_Archive::cache(File_Archive::read($source));
574 return File_Archive::read($source);
576 } else if (is_array($source)) {
577 return File_Archive::readMulti($source);
579 return $source;
636 * @param File_Archive_Reader $source stores the archive
647 $source =& File_Archive::_convertToReader($toConvert);
648 if (PEAR::isError($source)) {
649 return $source;
655 File_Archive::readArchive('gz', $source, $sourceOpened)
659 File_Archive::readArchive('bz2', $source, $sourceOpened)
663 return new File_Archive_Reader_Tar($source, $sourceOpened);
668 return new File_Archive_Reader_Gzip($source, $sourceOpened);
672 return new File_Archive_Reader_Zip($source, $sourceOpened);
677 return new File_Archive_Reader_Bzip2($source, $sourceOpened);
682 return new File_Archive_Reader_Ar($source, $sourceOpened);
743 * @param File_Archive_Reader $source The source whose files must be
754 $source =& File_Archive::_convertToReader($toConvert);
755 if (PEAR::isError($source)) {
756 return $source;
760 return new File_Archive_Reader_Concat($source, $filename, $stat, $mime);
768 * @param File_Archive_Reader $source Source that will be filtered
773 $source =& File_Archive::_convertToReader($toConvert);
774 if (PEAR::isError($source)) {
775 return $source;
779 return new File_Archive_Reader_Filter($predicate, $source);
1175 * @param File_Archive_Reader $source The source that will be read
1185 $source =& File_Archive::_convertToReader($sourceToConvert);
1186 if (PEAR::isError($source)) {
1187 return $source;
1190 return $source->extract($dest, $autoClose, $bufferSize);
1209 * @param File_Archive_Reader $source A reader where some files will be appended
1225 $source =& File_Archive::_convertToReader($toConvert);
1226 if (PEAR::isError($source)) {
1227 return $source;
1237 $result =& $source;
1240 $result = File_Archive::_readSource($source, $URL.'/', $reachable, $baseDir);
1244 File_Archive::_readSource($source, $URL, $reachable, $baseDir)
1264 if ($source !== null) {
1265 $writer =& $source->makeWriter();
1281 $reachedSource = File_Archive::readSource($source, $reachable);
1311 * @param File_Archive_Reader $source A reader where some files will be appended
1316 $source = null;
1317 return File_Archive::appenderFromSource($source, $URL, $unique, $type, $stat);
1327 * @param File_Archive_Reader $source A reader that contains the files to remove
1331 $source =& File_Archive::_convertToReader($toConvert);
1332 if (PEAR::isError($source)) {
1333 return $source;
1336 $result = &$source;
1341 $result = File_Archive::readSource($source, $URL);
1359 $source = null;
1360 return File_Archive::removeFromSource($pred, $source, $URL);
1371 $source =& File_Archive::_convertToReader($toConvert);
1372 if (PEAR::isError($source)) {
1373 return $source;
1379 if ($source === null) {
1380 $source = File_Archive::read($URL);
1384 $pred = new File_Archive_Predicate_Duplicate($source);
1385 $source->close();
1388 $source,
1398 $source = null;
1399 return File_Archive::removeDuplicatesFromSource($source, $URL);