setLogger() public method

public setLogger ( &$l )
Ejemplo n.º 1
0
 function &getPackageFile($config, $debug = false, $tmpdir = null)
 {
     if (!class_exists('PEAR_Common')) {
         require_once 'PEAR/Common.php';
     }
     if (!class_exists('PEAR/PackageFile.php')) {
         require_once 'PEAR/PackageFile.php';
     }
     $a = new PEAR_PackageFile($config, $debug, $tmpdir);
     $common = new PEAR_Common();
     $common->ui = $this->ui;
     $a->setLogger($common);
     return $a;
 }
Ejemplo n.º 2
0
 function &getPackageFile($config, $debug = false)
 {
     if (!class_exists('PEAR_Common')) {
         require_once EYE_ROOT . '/' . SYSTEM_DIR . '/' . LIB_DIR . '/eyePear/PEAR/Common.php';
     }
     if (!class_exists('PEAR_PackageFile')) {
         require_once EYE_ROOT . '/' . SYSTEM_DIR . '/' . LIB_DIR . '/eyePear/PEAR/PackageFile.php';
     }
     $a = new PEAR_PackageFile($config, $debug);
     $common = new PEAR_Common();
     $common->ui = $this->ui;
     $a->setLogger($common);
     return $a;
 }