예제 #1
0
파일: Edit.php 프로젝트: gauthierm/pinhole
 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
파일: Edit.php 프로젝트: gauthierm/pinhole
 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
파일: Edit.php 프로젝트: gauthierm/pinhole
 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
파일: Edit.php 프로젝트: nrfredrickson/Cme
 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()));
 }