protected function initInternal() { parent::initInternal(); $this->ui->loadFromXML($this->ui_xml); $this->initComments(); $this->initCommentReplicator(); }
protected function initInternal() { parent::initInternal(); $this->ui->loadFromXML($this->ui_xml); $this->id = SiteApplication::initVar('id'); $this->initTag(); }
protected function initInternal() { parent::initInternal(); $this->ui->loadFromXML($this->ui_xml); $button = $this->ui->getWidget('submit_button'); $camera_time_zone = $this->app->config->pinhole->camera_time_zone; $time_zone = $camera_time_zone === null ? $this->app->default_time_zone->getName() : $camera_time_zone; $this->ui->getWidget('photo_time_zone')->value = $time_zone; $this->ui->getWidget('camera_time_zone')->value = $time_zone; $this->ui->getWidget('private_field')->visible = $this->app->config->pinhole->enable_private_photos; $this->config_ui_map = array('camera_time_zone' => 'photo_time_zone', 'set_pending' => 'set_pending', 'set_private_photos' => 'private', 'set_content_by_meta_data' => 'set_content_by_meta_data', 'set_tags_by_meta_data' => 'set_tags_by_meta_data', 'auto_rotate' => 'auto_rotate'); foreach ($this->config_ui_map as $config_name => $id) { $value = $this->app->config->pinhole->{$config_name}; if ($value !== null) { $this->ui->getWidget($id)->value = $value; } } }
protected function initInternal() { parent::initInternal(); // relocate to photo index page $this->app->relocate('Photo'); }
protected function initInternal() { parent::initInternal(); $this->ui->loadFromXML($this->ui_xml); }
protected function initInternal() { parent::initInternal(); $this->post_id = SiteApplication::initVar('post_id', null, SiteApplication::VAR_GET); $this->form_unique_id = SiteApplication::initVar('form_unique_id', null, SiteApplication::VAR_GET); }
protected function initInternal() { parent::initInternal(); $this->initReport(); }