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


PHP Horde_Core_Block::__construct方法代碼示例

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


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

示例1: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     foreach (Turba::getAddressBooks(Horde_Perms::READ) as $key => $addressbook) {
         $this->_options[$key] = $addressbook['title'];
     }
     $this->_name = _("Contact Search");
 }
開發者ID:jubinpatel,項目名稱:horde,代碼行數:10,代碼來源:Minisearch.php

示例2: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     if (!isset($this->_params['days'])) {
         $this->_params['days'] = 7;
     }
     $this->_name = _("Calendar Summary");
 }
開發者ID:DSNS-LAB,項目名稱:Dmail,代碼行數:10,代碼來源:Summary.php

示例3: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     global $injector;
     parent::__construct($app, $params);
     try {
         $this->_weather = $injector->getInstance('Horde_Weather');
     } catch (Horde_Exception $e) {
         $this->enabled = false;
     }
     $this->_name = _("Weather");
 }
開發者ID:kossamums,項目名稱:horde,代碼行數:13,代碼來源:Weather.php

示例4: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     try {
         $this->_facebook = $GLOBALS['injector']->getInstance('Horde_Service_Facebook');
     } catch (Horde_Exception $e) {
         $this->enabled = false;
         return;
     }
     parent::__construct($app, $params);
     $this->_name = _("My Facebook Stream");
     $this->_fbp = unserialize($GLOBALS['prefs']->getValue('facebook'));
 }
開發者ID:raz0rsdge,項目名稱:horde,代碼行數:14,代碼來源:FbStream.php

示例5: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     global $injector, $conf;
     parent::__construct($app, $params);
     $this->_name = _("Metar Weather");
     if (!class_exists('Horde_Service_Weather_Metar')) {
         $this->enabled = false;
         return;
     }
     $params = array('cache' => $injector->getInstance('Horde_Cache'), 'cache_lifetime' => $conf['weather']['params']['lifetime'], 'http_client' => $injector->createInstance('Horde_Core_Factory_HttpClient')->create(), 'db' => $injector->getInstance('Horde_Db_Adapter'));
     $this->_weather = new Horde_Service_Weather_Metar($params);
     $this->_weather->units = $this->_params['units'];
 }
開發者ID:horde,項目名稱:horde,代碼行數:15,代碼來源:Metar.php

示例6: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Example Block");
 }
開發者ID:jubinpatel,項目名稱:horde,代碼行數:7,代碼來源:Example.php

示例7: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = class_exists('Horde_Feed');
     $this->_name = _("Syndicated Feed");
 }
開發者ID:DSNS-LAB,項目名稱:Dmail,代碼行數:8,代碼來源:Feed.php

示例8: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = !empty($GLOBALS['conf']['sql']['phptype']) && class_exists('Services_Weather') && class_exists('DB');
     $this->_name = _("Metar Weather");
 }
開發者ID:DSNS-LAB,項目名稱:Dmail,代碼行數:8,代碼來源:Metar.php

示例9: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = isset($GLOBALS['conf']['api']['googlesearch']);
     $this->_name = _("Google Search");
 }
開發者ID:DSNS-LAB,項目名稱:Dmail,代碼行數:8,代碼來源:Google.php

示例10: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = isset($GLOBALS['conf']['fortune']['exec_path']) && is_executable($GLOBALS['conf']['fortune']['exec_path']);
     $this->_name = _("Random Fortune");
 }
開發者ID:DSNS-LAB,項目名稱:Dmail,代碼行數:8,代碼來源:Fortune.php

示例11: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = Horde_Service_Scribd_Translation::t("Scribd Documents");
 }
開發者ID:jubinpatel,項目名稱:horde,代碼行數:7,代碼來源:Scribd.php

示例12: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Bookmarks tagged with '%s'");
 }
開發者ID:jubinpatel,項目名稱:horde,代碼行數:7,代碼來源:Tagsearch.php

示例13: __construct

 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = !empty($GLOBALS['conf']['twitter']['enabled']);
     $this->_name = _("Twitter Timeline");
 }
開發者ID:jubinpatel,項目名稱:horde,代碼行數:8,代碼來源:TwitterTimeline.php


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