Пример #1
0
 /**
  * pretizeno o nastaveni tree structure
  */
 public function __construct($id = NULL, $loaded = false)
 {
     try {
         // set tree structure
         $treeColNames = self::$treeColNames;
         $treeColNames = array_reverse(self::$treeColNames);
         foreach ($treeColNames as $treeColName) {
             array_unshift(self::$attributes, array("name" => $treeColName, "type" => "int"));
         }
         parent::__construct($id, $loaded);
     } catch (Exception $e) {
         throw $e;
     }
 }