예제 #1
0
파일: Edit.php 프로젝트: gauthierm/pinhole
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->ui->getWidget('status')->addOptionsByArray(PinholePhotographer::getStatuses());
 }
예제 #2
0
파일: Edit.php 프로젝트: nburka/blorg
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->buildFiles();
     $this->buildAuthors();
     // init image server for editors here since form_unique_id has been
     // processed as this point.
     if ($this->app->config->blorg->visual_editor) {
         $this->bodytext_control->image_server = $this->getBodytextEditorImageServer();
         $this->extended_bodytext_control->image_server = $this->getBodytextEditorImageServer();
     }
 }
예제 #3
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);
 }
예제 #4
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $message = $this->ui->getWidget('content_block');
     $message->content = $this->getMessage();
     $message->content_type = 'text/xml';
 }
예제 #5
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->buildTemplates();
     $this->buildSegments();
 }
예제 #6
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';
 }
예제 #7
0
파일: Edit.php 프로젝트: gauthierm/pinhole
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->buildPreview();
     $this->buildPendingCount();
     $this->buildSiteLinks();
     $this->ui->getWidget('edit_frame')->title = null;
     $toolbar = $this->ui->getWidget('toolbar');
     $toolbar->setToolLinkValues($this->photo->id);
 }