public function __async_addchildren($structure_id)
 {
     if (dbQuery('\\samson\\cms\\web\\navigation\\CMSNav')->StructureID($structure_id)->first($db_structure)) {
         $tree = new \samson\treeview\SamsonTree('tree/tree-template', 0, 'structure/addchildren');
         return array('status' => 1, 'tree' => $tree->htmlTree($db_structure));
     }
     return array('status' => 0);
 }
Ejemplo n.º 2
0
 public function __async_addchildren($structure_id)
 {
     if ($this->query->entity('\\samson\\cms\\Navigation')->StructureID($structure_id)->first($db_structure)) {
         $tree = new \samson\treeview\SamsonTree('tree/tree-template', 0, 'product/addchildren');
         return array('status' => 1, 'tree' => $tree->htmlTree($db_structure));
     }
     return array('status' => 0);
 }