protected function initInternal() { parent::initInternal(); $this->ui->loadFromXML($this->ui_xml); $this->initMetaData(); }
protected function buildNavBar() { parent::buildNavBar(); if ($this->id !== null) { $edit = $this->navbar->popEntry(); $this->navbar->addEntry(new SwatNavBarEntry($this->tag->title, $this->getComponentName() . '/Details?id=' . $this->id)); $this->navbar->addEntry($edit); } }
public function finalize() { parent::finalize(); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/blorg/admin/styles/blorg-post-edit-page.css', Blorg::PACKAGE_ID)); }
protected function buildInternal() { parent::buildInternal(); if ($this->author->shortname === null) { $uri = Blorg::_('this author’s public page'); } else { $uri = $this->app->getFrontendBaseHref() . $this->app->config->blorg->path . 'author/' . $this->author->shortname; $uri = '<em>' . SwatString::minimizeEntities($uri) . '</em>'; } $note = $this->ui->getWidget('openid_note'); $note->content = sprintf($note->content, $uri); }
protected function buildInternal() { parent::buildInternal(); $this->ui->getWidget('status')->addOptionsByArray(PinholePhotographer::getStatuses()); }
protected function buildInternal() { parent::buildInternal(); $message = $this->ui->getWidget('content_block'); $message->content = $this->getMessage(); $message->content_type = 'text/xml'; }
public function finalize() { parent::finalize(); $this->layout->addHtmlHeadEntry('packages/deliverance/admin/styles/deliverance-newsletter-edit.css'); }
protected function buildInternal() { parent::buildInternal(); $message = $this->ui->getWidget('confirmation_message'); $message->content = $this->getConfirmationMessage(); $message->content_type = 'text/xml'; $date = new SwatDate(); $date->setTZ($this->app->default_time_zone); $note = sprintf(Deliverance::_('Scheduled times in ' . '<strong>%s</strong>. Leave date and time blank to send ' . 'immediately.'), $date->formatTZ(SwatDate::TZ_COMBINED)); $this->ui->getWidget('send_date_field')->note = $note; $this->ui->getWidget('send_date_field')->note_content_type = 'txt/xml'; }
public function finalize() { parent::finalize(); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-photo-edit-page.css', Pinhole::PACKAGE_ID)); $this->layout->addHtmlHeadEntry(new SwatJavascriptHtmlHeadEntry('packages/pinhole/admin/javascript/pinhole-photo-edit-page.js', Pinhole::PACKAGE_ID)); }
protected function buildNavBar() { AdminDBEdit::buildNavBar(); $this->navbar->popEntry(); $title = $this->isNew() ? CME::_('New %s') : CME::_('Edit %s'); $this->navbar->createEntry(sprintf($title, $this->credit->getTitle())); }