Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Mike Cochrane (mike@graftonhall.co.nz)
Author: Jan Schneider (jan@horde.org)
Author: Michael Slusarz (slusarz@horde.org)
コード例 #1
0
ファイル: Minisearch.php プロジェクト: jubinpatel/horde
 /**
  */
 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
0
ファイル: Summary.php プロジェクト: DSNS-LAB/Dmail
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     if (!isset($this->_params['days'])) {
         $this->_params['days'] = 7;
     }
     $this->_name = _("Calendar Summary");
 }
コード例 #3
0
ファイル: Weather.php プロジェクト: kossamums/horde
 /**
  */
 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
0
ファイル: FbStream.php プロジェクト: raz0rsdge/horde
 /**
  */
 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
0
ファイル: Metar.php プロジェクト: horde/horde
 /**
  */
 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
0
ファイル: Example.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Example Block");
 }
コード例 #7
0
ファイル: Page.php プロジェクト: raz0rsdge/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Wiki page");
 }
コード例 #8
0
ファイル: Sunrise.php プロジェクト: raz0rsdge/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Sunrise/Sunset");
 }
コード例 #9
0
ファイル: Recent.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Recent visitors");
 }
コード例 #10
0
ファイル: Feed.php プロジェクト: DSNS-LAB/Dmail
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = class_exists('Horde_Feed');
     $this->_name = _("Syndicated Feed");
 }
コード例 #11
0
ファイル: Account.php プロジェクト: horde/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Account Information");
 }
コード例 #12
0
ファイル: Metar.php プロジェクト: DSNS-LAB/Dmail
 /**
  */
 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");
 }
コード例 #13
0
ファイル: Google.php プロジェクト: DSNS-LAB/Dmail
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = isset($GLOBALS['conf']['api']['googlesearch']);
     $this->_name = _("Google Search");
 }
コード例 #14
0
ファイル: Fortune.php プロジェクト: DSNS-LAB/Dmail
 /**
  */
 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");
 }
コード例 #15
0
ファイル: Scribd.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = Horde_Service_Scribd_Translation::t("Scribd Documents");
 }
コード例 #16
0
ファイル: Tagsearch.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Bookmarks tagged with '%s'");
 }
コード例 #17
0
ファイル: Iframe.php プロジェクト: DSNS-LAB/Dmail
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("View an external web page");
 }
コード例 #18
0
ファイル: Overview.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Overview");
 }
コード例 #19
0
ファイル: MyGalleries.php プロジェクト: horde/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("My Galleries");
 }
コード例 #20
0
ファイル: TwitterTimeline.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = !empty($GLOBALS['conf']['twitter']['enabled']);
     $this->_name = _("Twitter Timeline");
 }
コード例 #21
0
ファイル: Mostclicked.php プロジェクト: DSNS-LAB/Dmail
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Most-clicked Bookmarks");
 }
コード例 #22
0
ファイル: NewsPopular.php プロジェクト: horde/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Most Popular Stories");
 }
コード例 #23
0
ファイル: RecentFaces.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->enabled = !empty($GLOBALS['conf']['faces']['driver']);
     $this->_name = _("Recent faces");
 }
コード例 #24
0
ファイル: Know.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("People you might know");
 }
コード例 #25
0
ファイル: Summary.php プロジェクト: raz0rsdge/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Tasks Summary");
 }
コード例 #26
0
ファイル: MyComments.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Last comments on my profile");
 }
コード例 #27
0
ファイル: Latest.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Latest News");
 }
コード例 #28
0
ファイル: Monthlist.php プロジェクト: DSNS-LAB/Dmail
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Upcoming Events");
 }
コード例 #29
0
ファイル: Cloud.php プロジェクト: jubinpatel/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Tag Cloud");
 }
コード例 #30
0
ファイル: Thread.php プロジェクト: raz0rsdge/horde
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = _("Single Thread");
 }