Пример #1
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $view = $this->ui->getWidget('index_view');
     if ($view->hasGroup('instance_group')) {
         $view->getGroup('instance_group')->visible = $this->app->isMultipleInstanceAdmin();
     }
 }
Пример #2
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->getUiXml());
     $this->initStartDate();
     $this->initProviders();
     $this->initReportsByQuarter();
     $this->initTableViewColumns();
 }
Пример #3
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);
     }
 }
Пример #4
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
 }
Пример #5
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     $this->layout->navbar->createEntry($this->photo->getTitle(), 'Photo/Edit?id=' . $this->photo->id);
 }
Пример #6
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     $this->navbar->createEntry($this->newsletter->getCampaignTitle());
 }
Пример #7
0
 public function finalize()
 {
     parent::finalize();
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/blorg/admin/styles/blorg-post-details-page.css', Blorg::PACKAGE_ID));
 }
Пример #8
0
<?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();
Пример #9
0
 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));
 }
Пример #10
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->ui->getWidget('status_flydown')->addOptionsByArray(PinholePhotographer::getStatuses());
 }