contributions/models.searchindex/view/widgets/searchindex.searchbox.widget.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Widget that prints a search box 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup SearchIndex 00007 */ 00008 class WidgetSearchIndexSearchBox implements IWidget { 00009 const CONTEXT_CONTENT = 0; 00010 const CONTEXT_SIDE = 512; 00011 const CONTEXT_HEAD = 1024; 00012 00013 public static function output($policy = self::CONTEXT_CONTENT) { 00014 $w = new WidgetSearchIndexSearchBox(); 00015 return $w->render($policy); 00016 } 00017 00018 public function render($policy = self::CONTEXT_CONTENT) { 00019 $view = ViewFactory::create_view(IViewFactory::MESSAGE, 'searchindex/searchbox', false); 00020 $view->assign('policy', $policy); 00021 return $view->render(); 00022 } 00023 }