Example #1
0
 function File_Archive_Reader_ChangeName_AddDirectory($baseName, &$source)
 {
     // following patch from http://pear.php.net/bugs/bug.php?id=17046
     #ahmet: calling parent's constructor like this is not good.
     #the proper way is to use parent::__construct($source)
     #parent::File_Archive_Reader_ChangeName($source);
     parent::__construct($source);
     $this->baseName = $this->getStandardURL($baseName);
 }
Example #2
0
 function File_Archive_Reader_ChangeName_Directory($oldBaseName, $newBaseName, &$source)
 {
     parent::File_Archive_Reader_ChangeName($source);
     $this->oldBaseName = $this->getStandardURL($oldBaseName);
     if (substr($this->oldBaseName, -1) == '/') {
         $this->oldBaseName = substr($this->oldBaseName, 0, -1);
     }
     $this->newBaseName = $this->getStandardURL($newBaseName);
     if (substr($this->newBaseName, -1) == '/') {
         $this->newBaseName = substr($this->newBaseName, 0, -1);
     }
 }
 function File_Archive_Reader_ChangeName_AddDirectory($baseName, &$source)
 {
     parent::File_Archive_Reader_ChangeName($source);
     $this->baseName = $this->getStandardURL($baseName);
 }
Example #4
0
 function File_Archive_Reader_ChangeName_Callback($function, &$source)
 {
     parent::File_Archive_Reader_ChangeName($source);
     $this->function = $function;
 }