Beispiel #1
0
 protected function initInternal()
 {
     $this->ui->loadFromXML($this->getUiXml());
     parent::initInternal();
     $this->initNewsletter();
     $this->initList();
 }
Beispiel #2
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
     $this->initPhoto();
     $this->initStatuses();
     $this->initCommentStatuses();
     if ($this->photo->status == PinholePhoto::STATUS_PENDING) {
         $this->pending = true;
     }
     $this->pending_photos = $this->getUpcomingPhotos();
     $this->ui->getWidget('for_sale_field')->visible = $this->app->config->clustershot->username !== null;
     if ($this->app->config->pinhole->enable_private_photos) {
         $this->ui->getWidget('private_field')->visible = true;
         $this->ui->getWidget('passphrase_field')->visible = $this->app->config->pinhole->passphrase === null;
     }
     // setup tag entry control
     $this->ui->getWidget('tags')->setApplication($this->app);
     $this->ui->getWidget('tags')->setAllTags();
     $replicator = $this->ui->getWidget('site_link_field');
     $replicators = array();
     $dimensions = $this->getDimensions();
     foreach ($dimensions as $dimension) {
         $replicators[$dimension->id] = $dimension->title;
     }
     $replicator->replicators = $replicators;
     $comment_status = $this->app->config->pinhole->global_comment_status;
     $this->ui->getWidget('comment_status_field')->visible = $comment_status === null;
     $this->ui->getWidget('comments_link')->visible = $comment_status === null || $comment_status == true;
     // this is temp until there's another toolbar option
     $this->ui->getWidget('toolbar')->visible = $comment_status === null || $comment_status == true;
 }
Beispiel #3
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->getUiXml());
     $this->initNewsletter();
     $this->initTemplates();
     $this->initCampaignSegments();
 }
Beispiel #4
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
     $this->initTag();
     if ($this->id === null) {
         $this->ui->getWidget('shortname_field')->visible = false;
     }
 }
Beispiel #5
0
 protected function initInternal()
 {
     $this->ui->loadFromXML($this->getUiXml());
     parent::initInternal();
     $this->initNewsletter();
     $this->initList();
     $this->initSendCount();
     // only allow dates in the future, and only a year out for sanity's sake
     $action_date = $this->ui->getWidget('send_date');
     $action_date->setValidRange(0, 1);
     $action_date->valid_range_start = new SwatDate();
     $action_date->valid_range_start->convertTZ($this->app->default_time_zone);
 }
Beispiel #6
0
 protected function initInternal()
 {
     AdminDBEdit::initInternal();
     $this->initCredit();
     $this->initInquisition();
     $this->initFrontMatter();
     $this->ui->loadFromXML($this->getUiXml());
     // hide question import field when editing an existing credit
     if ($this->credit->quiz instanceof CMEQuiz) {
         $this->ui->getWidget('questions_field')->visible = false;
     }
     $this->setDefaultValues();
 }
Beispiel #7
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
     $this->initPost();
     $this->initCommentStatuses();
     // shortname is not settable until this post has been enabled
     // (not hidden)
     if (!$this->post->enabled) {
         $this->ui->getWidget('shortname_field')->visible = false;
     }
     // setup tag entry control
     $this->ui->getWidget('tags')->setApplication($this->app);
     $this->ui->getWidget('tags')->setAllTags();
     // generate form uniqueid for file attachments
     $form = $this->ui->getWidget('edit_form');
     if ($this->id === null && $form->getHiddenField('unique_id') === null) {
         $form->addHiddenField('unique_id', uniqid());
     }
     $this->ui->getWidget('file_replicator')->replicators = $this->getFileReplicators();
     $this->initBodytextControls();
 }
Beispiel #8
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
     $this->initMetaData();
 }
Beispiel #9
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
     $this->initPhotographer();
 }