Exemple #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();
     }
 }
Exemple #2
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->getUiXml());
     $this->initStartDate();
     $this->initProviders();
     $this->initReportsByQuarter();
     $this->initTableViewColumns();
 }
Exemple #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);
     }
 }
Exemple #4
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
 }
Exemple #5
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     $this->layout->navbar->createEntry($this->photo->getTitle(), 'Photo/Edit?id=' . $this->photo->id);
 }
Exemple #6
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     $this->navbar->createEntry($this->newsletter->getCampaignTitle());
 }
Exemple #7
0
 public function finalize()
 {
     parent::finalize();
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/blorg/admin/styles/blorg-post-details-page.css', Blorg::PACKAGE_ID));
 }
Exemple #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();
Exemple #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));
 }
Exemple #10
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->ui->getWidget('status_flydown')->addOptionsByArray(PinholePhotographer::getStatuses());
 }