コード例 #1
0
ファイル: SearchWidget.php プロジェクト: ratbird/hope
 /**
  * Constructor for the widget.
  *
  * @param String $url URL to send the search to
  */
 public function __construct($url = '')
 {
     parent::__construct();
     $this->url = $url ?: $_SERVER['REQUEST_URI'];
     $this->title = _('Suche');
     $this->template = 'sidebar/search-widget';
     $this->needles = $needles;
     $this->filters = $filters;
 }
コード例 #2
0
ファイル: ListWidget.php プロジェクト: ratbird/hope
 /**
  * 
  */
 public function __construct()
 {
     parent::__construct();
     $this->template = 'sidebar/list-widget';
     $this->addCSSClass('widget-list');
 }