public function Info($pa_parameters)
 {
     parent::info($pa_parameters);
     $vn_item_id = isset($pa_parameters['item_id']) ? $pa_parameters['item_id'] : null;
     $t_set_item = new ca_set_items($vn_item_id);
     $this->view->setVar('t_set', $t_set = new ca_sets($t_set_item->get('set_id')));
     if ($t_set_item->getPrimaryKey()) {
         $t_row_instance = $this->opo_datamodel->getInstanceByTableNum($t_set->get('table_num'), true);
         $t_row_instance->load($t_set_item->get('row_id'));
         $this->view->setVar('t_row_instance', $t_row_instance);
     }
     return $this->render('widget_set_item_info_html.php', true);
 }
 public function info($pa_parameters)
 {
     parent::info($pa_parameters);
     if ($t_item = $this->view->getVar('t_item')) {
         if (!($vn_tour_id = $t_item->get('tour_id'))) {
             $t_parent = new ca_list_items($this->request->getParameter('parent_id', pInteger));
             $vn_tour_id = $t_parent->get('tour_id');
         }
     }
     $t_tour = new ca_tours($vn_tour_id);
     $this->view->setVar('t_tour', $t_tour);
     return $this->render('widget_tour_stop_info_html.php', true);
 }
 public function info($pa_parameters)
 {
     parent::info($pa_parameters);
     $t_ui = $this->view->getVar('t_item');
     if ($t_ui->getPrimaryKey()) {
         $va_labels = $t_ui->getDisplayLabels();
         $this->view->setVar('labels', $t_ui->getPrimaryKey() ? $va_labels : array());
         $this->view->setVar('idno', $t_ui->get('idno'));
     }
     $t_ui_item = new ca_editor_ui_screens();
     $t_ui_item->load(array('ui_id' => $t_ui->getPrimaryKey(), 'parent_id' => null));
     $this->view->setVar('t_ui_item', $t_ui_item);
     return $this->render('widget_interface_info_html.php', true);
 }
 public function info($pa_parameters)
 {
     parent::info($pa_parameters);
     $o_dm = Datamodel::load();
     $t_item = $this->view->getVar('t_item');
     $vn_item_id = $t_item->getPrimaryKey();
     // get parent items
     $va_ancestors = array_reverse(caExtractValuesByUserLocaleFromHierarchyAncestorList($t_item->getHierarchyAncestors(null, array('additionalTableToJoin' => 'ca_relationship_type_labels', 'additionalTableJoinType' => 'LEFT', 'additionalTableSelectFields' => array('typename', 'typename_reverse', 'description', 'description_reverse', 'locale_id'), 'includeSelf' => false)), 'type_id', 'typename', 'type_code'));
     $vn_rel_table_num = $t_item->get('table_num');
     array_shift($va_ancestors);
     // get rid of hierarchy root record, which should not be displayed
     $this->view->setVar('ancestors', $va_ancestors);
     return $this->render('widget_relationship_type_info_html.php', true);
 }
 public function info($pa_parameters)
 {
     AssetLoadManager::register('panel');
     parent::info($pa_parameters);
     $vn_annotation_id = isset($pa_parameters['annotation_id']) ? $pa_parameters['annotation_id'] : null;
     $t_annotation = new ca_representation_annotations($vn_annotation_id);
     $t_rep = new ca_object_representations($t_annotation->get('representation_id'));
     if ($vn_annotation_id) {
         $this->view->setVar('screen', $this->request->getActionExtra());
         // name of screen
         // find object editor screen with media bundle
         $t_ui = ca_editor_uis::loadDefaultUI('ca_object_representations', $this->request, $t_rep->getTypeID());
         $this->view->setVar('representation_editor_screen', $t_ui->getScreenWithBundle('ca_representation_annotations', $this->request));
     }
     return $this->render('widget_representation_annotation_info_html.php', true);
 }
 public function info($pa_parameters)
 {
     parent::info($pa_parameters);
     $t_tour = $this->view->getVar('t_item');
     if ($t_tour->getPrimaryKey()) {
         $va_labels = $t_tour->getDisplayLabels();
         $this->view->setVar('labels', $t_tour->getPrimaryKey() ? $va_labels : array());
         $this->view->setVar('idno', $t_tour->get('idno'));
     }
     $t_stop = new ca_tour_stops();
     $t_stop->load(array('tour_id' => $t_tour->getPrimaryKey(), 'parent_id' => null));
     $this->view->setVar('t_stop', $t_stop);
     if ($vn_stop_id = $t_stop->getPrimaryKey()) {
         $va_children = caExtractValuesByUserLocaleFromHierarchyChildList($t_stop->getHierarchyChildren(null, array('additionalTableToJoin' => 'ca_tour_stop_labels', 'additionalTableJoinType' => 'LEFT', 'additionalTableSelectFields' => array('name', 'locale_id'))), 'stop_id', 'name', 'idno');
         $this->view->setVar('children', $va_children);
     }
     return $this->render('widget_tour_info_html.php', true);
 }
 public function info($pa_parameters)
 {
     parent::info($pa_parameters);
     $t_list = $this->view->getVar('t_item');
     if ($t_list->getPrimaryKey()) {
         $va_labels = $t_list->getDisplayLabels();
         $this->view->setVar('labels', $t_list->getPrimaryKey() ? $va_labels : array());
         $this->view->setVar('idno', $t_list->get('idno'));
     }
     $t_list_item = new ca_list_items();
     $t_list_item->load(array('list_id' => $t_list->getPrimaryKey(), 'parent_id' => null));
     $this->view->setVar('t_list_item', $t_list_item);
     if ($vn_item_id = $t_list_item->getPrimaryKey()) {
         $va_children = caExtractValuesByUserLocaleFromHierarchyChildList($t_list_item->getHierarchyChildren(null, array('additionalTableToJoin' => 'ca_list_item_labels', 'additionalTableJoinType' => 'LEFT', 'additionalTableSelectFields' => array('name_plural', 'locale_id'), 'additionalTableWheres' => array('(ca_list_item_labels.is_preferred = 1 OR ca_list_item_labels.is_preferred IS NULL)'))), 'item_id', 'name_plural', 'item_value');
         $this->view->setVar('children', $va_children);
     }
     return $this->render('widget_list_info_html.php', true);
 }
 public function info($pa_parameters)
 {
     parent::info($pa_parameters);
     return $this->render('widget_object_info_html.php', true);
 }
Exemplo n.º 9
0
 /**
  *
  */
 protected function _initView($pa_options = null)
 {
     $this->view->setVar('graphicsPath', $this->request->getBaseUrlPath() . "/app/plugins/Contribute/themes/" . $this->ops_theme . "/graphics");
     $this->view->setVar('viewPath', array_shift($this->view->getViewPaths()));
     return parent::_initView($pa_options);
 }
 public function info($pa_parameters)
 {
     AssetLoadManager::register('panel');
     parent::info($pa_parameters);
     $vn_representation_id = isset($pa_parameters['representation_id']) ? $pa_parameters['representation_id'] : null;
     if ($vn_representation_id) {
         // find object editor screen with media bundle
         $t_ui = ca_editor_uis::loadDefaultUI('ca_objects', $this->request);
         $this->view->setVar('object_editor_screen', $t_ui->getScreenWithBundle('ca_object_representations', $this->request));
     }
     return $this->render('widget_object_representation_info_html.php', true);
 }
 public function info($pa_parameters)
 {
     parent::info($pa_parameters);
     return $this->render('widget_storage_location_info_html.php', true);
 }
 public function Info($pa_parameters)
 {
     parent::info($pa_parameters);
     return $this->render('widget_bundle_display_info_html.php', true);
 }
 public function Info($pa_parameters)
 {
     parent::info($pa_parameters);
     return $this->render('widget_search_form_info_html.php', true);
 }