當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PEAR_Common::PEAR_Common方法代碼示例

本文整理匯總了PHP中PEAR_Common::PEAR_Common方法的典型用法代碼示例。如果您正苦於以下問題:PHP PEAR_Common::PEAR_Common方法的具體用法?PHP PEAR_Common::PEAR_Common怎麽用?PHP PEAR_Common::PEAR_Common使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PEAR_Common的用法示例。


在下文中一共展示了PEAR_Common::PEAR_Common方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: foreach

 /**
  * @param PEAR_Frontend_*
  * @param array
  * @param PEAR_Config
  */
 function PEAR_Downloader(&$ui, $options, &$config)
 {
     parent::PEAR_Common();
     $this->_options = $options;
     $this->config =& $config;
     $this->_preferredState = $this->config->get('preferred_state');
     $this->ui =& $ui;
     if (!$this->_preferredState) {
         // don't inadvertantly use a non-set preferred_state
         $this->_preferredState = null;
     }
     if (isset($this->_options['installroot'])) {
         $this->config->setInstallRoot($this->_options['installroot']);
     }
     $this->_registry =& $config->getRegistry();
     if (isset($this->_options['alldeps']) || isset($this->_options['onlyreqdeps'])) {
         $this->_installed = $this->_registry->listAllPackages();
         foreach ($this->_installed as $key => $unused) {
             if (!count($unused)) {
                 continue;
             }
             $strtolower = create_function('$a', 'return strtolower($a);');
             array_walk($this->_installed[$key], $strtolower);
         }
     }
 }
開發者ID:shen0834,項目名稱:util,代碼行數:31,代碼來源:Downloader.php

示例2:

 /**
  * PEAR_Builder constructor.
  *
  * @param object $ui user interface object (instance of PEAR_Frontend_*)
  *
  * @access public
  */
 function PEAR_Builder(&$ui)
 {
     parent::PEAR_Common();
     $this->setFrontendObject($ui);
 }
開發者ID:rjsmelo,項目名稱:tiki,代碼行數:12,代碼來源:Builder.php

示例3:

 function PEAR_Packager()
 {
     parent::PEAR_Common();
 }
開發者ID:BackupTheBerlios,項目名稱:wcms,代碼行數:4,代碼來源:Packager.php

示例4: substr

 function PEAR_Downloader(&$ui, $options, &$config)
 {
     $this->_options = $options;
     $this->_config =& $config;
     $this->_preferredState = $this->_config->get('preferred_state');
     $this->ui =& $ui;
     if (!$this->_preferredState) {
         // don't inadvertantly use a non-set preferred_state
         $this->_preferredState = null;
     }
     $php_dir = $this->_config->get('php_dir');
     if (isset($this->_options['installroot'])) {
         if (substr($this->_options['installroot'], -1) == DIRECTORY_SEPARATOR) {
             $this->_options['installroot'] = substr($this->_options['installroot'], 0, -1);
         }
         $php_dir = $this->_prependPath($php_dir, $this->_options['installroot']);
     }
     $this->_registry =& new PEAR_Registry($php_dir);
     $this->_remote =& new PEAR_Remote($config);
     if (isset($this->_options['alldeps']) || isset($this->_options['onlyreqdeps'])) {
         $this->_installed = $this->_registry->listPackages();
         array_walk($this->_installed, create_function('&$v,$k', '$v = strtolower($v);'));
         $this->_installed = array_flip($this->_installed);
     }
     parent::PEAR_Common();
 }
開發者ID:hendricson,項目名稱:couponator,代碼行數:26,代碼來源:Downloader.php

示例5:

 /**
  * PEAR_Installer constructor.
  *
  * @param object $ui user interface object (instance of PEAR_Frontend_*)
  *
  * @access public
  */
 function PEAR_Installer(&$ui)
 {
     parent::PEAR_Common();
     $this->setFrontendObject($ui);
     $this->debug = $this->config->get('verbose');
     $this->registry =& new PEAR_Registry($this->config->get('php_dir'));
 }
開發者ID:BackupTheBerlios,項目名稱:logicalframe,代碼行數:14,代碼來源:Installer.php


注:本文中的PEAR_Common::PEAR_Common方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。