public function init()
 {
     parent::init();
     $search_ui = new SwatUI();
     $search_ui->loadFromXML(dirname(__FILE__) . '/browser-search.xml');
     $this->layout->startCapture('search_content');
     $search_ui->display();
     $this->layout->endCapture();
 }
示例#2
0
 protected function initInternal()
 {
     AdminIndex::initInternal();
     $this->id = SiteApplication::initVar('id');
     if (is_numeric($this->id)) {
         $this->id = intval($this->id);
     }
     $this->initCredit();
     $this->initInquisition();
     $this->ui->loadFromXML($this->getUiXml());
     $local_ui = new SwatUI();
     $local_ui->loadFromXML($this->getCreditDetailsViewXml());
     $provider_titles = array();
     foreach ($this->credit->front_matter->providers as $provider) {
         $provider_titles[] = $provider->credit_title_plural;
     }
     $local_ui->getWidget('details_view')->getField('hour')->title = SwatString::toList($provider_titles);
     $view = $this->ui->getWidget('details_view');
     foreach ($local_ui->getWidget('details_view')->getFields() as $field) {
         $view->appendField($field);
     }
 }
示例#3
0
 protected function initSearchForm()
 {
     $this->ui->loadFromXML($this->search_ui_xml, $this->ui->getWidget('header_content'));
 }