本文整理匯總了PHP中Horde_Core_Block類的典型用法代碼示例。如果您正苦於以下問題:PHP Horde_Core_Block類的具體用法?PHP Horde_Core_Block怎麽用?PHP Horde_Core_Block使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Horde_Core_Block類的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");
}