Exemplo n.º 1
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
     $this->initComments();
     $this->initCommentReplicator();
 }
Exemplo n.º 2
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
     $this->id = SiteApplication::initVar('id');
     $this->initTag();
 }
Exemplo n.º 3
0
 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;
         }
     }
 }
Exemplo n.º 4
0
 protected function initInternal()
 {
     parent::initInternal();
     // relocate to photo index page
     $this->app->relocate('Photo');
 }
Exemplo n.º 5
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->ui->loadFromXML($this->ui_xml);
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->initReport();
 }