setLogger() public method

public setLogger ( &$l )
コード例 #1
0
ファイル: Package.php プロジェクト: ballistiq/revive-adserver
 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;
 }
コード例 #2
0
ファイル: Package.php プロジェクト: orcoliver/oneye
 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;
 }