Beispiel #1
0
 /**
  * extends the $item_data array
  *
  * This function fills the $item_data array with fields from the according database table (is of no use in the base class)
  * @abstract 
  * @access private
  */
 function initItemDetail()
 {
     if ($type = $this->item_data['studip_object']) {
         $view = DbView::getView('range_tree');
         $view->params = array($this->tree->studip_objects[$type]['table'], $this->tree->studip_objects[$type]['pk'], $this->item_data['studip_object_id']);
         $snap = new DbSnapshot($view->get_query("view:TREE_OBJECT_DETAIL"));
         if ($snap->numRows) {
             $fields = $snap->getFieldList();
             $snap->nextRow();
             for ($i = 0; $i < count($fields); ++$i) {
                 $this->item_data[$fields[$i]] = $snap->getField($fields[$i]);
             }
         }
         return true;
     }
     return false;
 }