当前位置: 首页>>代码示例>>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;未经允许,请勿转载。