protected function buildInternal() { parent::buildInternal(); $view = $this->ui->getWidget('index_view'); if ($view->hasGroup('instance_group')) { $view->getGroup('instance_group')->visible = $this->app->isMultipleInstanceAdmin(); } }
protected function initInternal() { parent::initInternal(); $this->ui->loadFromXML($this->getUiXml()); $this->initStartDate(); $this->initProviders(); $this->initReportsByQuarter(); $this->initTableViewColumns(); }
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); } }
protected function initInternal() { parent::initInternal(); $this->ui->loadFromXML($this->ui_xml); }
protected function buildNavBar() { parent::buildNavBar(); $this->layout->navbar->createEntry($this->photo->getTitle(), 'Photo/Edit?id=' . $this->photo->id); }
protected function buildNavBar() { parent::buildNavBar(); $this->navbar->createEntry($this->newsletter->getCampaignTitle()); }
public function finalize() { parent::finalize(); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/blorg/admin/styles/blorg-post-details-page.css', Blorg::PACKAGE_ID)); }
<?php require_once 'AdminIndex.php'; require_once 'SimpleLayout.php'; require_once 'ModuleLoader.php'; $module_loader = new ModuleLoader(); $layout = new SimpleLayout(); $admin = new AdminIndex($layout, $module_loader); $admin->run();
public function finalize() { parent::finalize(); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-photo-tile.css', Pinhole::PACKAGE_ID)); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-photo-pending.css', Pinhole::PACKAGE_ID)); }
protected function buildInternal() { parent::buildInternal(); $this->ui->getWidget('status_flydown')->addOptionsByArray(PinholePhotographer::getStatuses()); }