本文整理汇总了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");
}
示例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");
}
示例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");
}
示例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'));
}
示例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'];
}
示例6: __construct
/**
*/
public function __construct($app, $params = array())
{
parent::__construct($app, $params);
$this->_name = _("Example Block");
}
示例7: __construct
/**
*/
public function __construct($app, $params = array())
{
parent::__construct($app, $params);
$this->enabled = class_exists('Horde_Feed');
$this->_name = _("Syndicated Feed");
}
示例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");
}
示例9: __construct
/**
*/
public function __construct($app, $params = array())
{
parent::__construct($app, $params);
$this->enabled = isset($GLOBALS['conf']['api']['googlesearch']);
$this->_name = _("Google Search");
}
示例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");
}
示例11: __construct
/**
*/
public function __construct($app, $params = array())
{
parent::__construct($app, $params);
$this->_name = Horde_Service_Scribd_Translation::t("Scribd Documents");
}
示例12: __construct
/**
*/
public function __construct($app, $params = array())
{
parent::__construct($app, $params);
$this->_name = _("Bookmarks tagged with '%s'");
}
示例13: __construct
/**
*/
public function __construct($app, $params = array())
{
parent::__construct($app, $params);
$this->enabled = !empty($GLOBALS['conf']['twitter']['enabled']);
$this->_name = _("Twitter Timeline");
}