示例#1
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
     $this->initMetaData();
 }
示例#2
0
文件: Edit.php 项目: GervaisdeM/blorg
 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);
     }
 }
示例#3
0
文件: Edit.php 项目: nburka/blorg
 public function finalize()
 {
     parent::finalize();
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/blorg/admin/styles/blorg-post-edit-page.css', Blorg::PACKAGE_ID));
 }
示例#4
0
文件: Edit.php 项目: GervaisdeM/blorg
 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);
 }
示例#5
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->ui->getWidget('status')->addOptionsByArray(PinholePhotographer::getStatuses());
 }
示例#6
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $message = $this->ui->getWidget('content_block');
     $message->content = $this->getMessage();
     $message->content_type = 'text/xml';
 }
示例#7
0
 public function finalize()
 {
     parent::finalize();
     $this->layout->addHtmlHeadEntry('packages/deliverance/admin/styles/deliverance-newsletter-edit.css');
 }
示例#8
0
 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';
 }
示例#9
0
 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));
 }
示例#10
0
 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()));
 }