/** * 获取相册分类 */ public function show() { require_once ROOT_PATH . 'frm/node_frm.php'; $node = new nodeFrm(); $node->setXmlNode('nodes', 'node'); $node->setNodeTable('category'); $node->setNodeID(intval($this->input['fid'])); $node->addExcludeNodeId($this->input['_exclude']); $data = $this->filter_data(); $condition = $this->api->get_conditions($data); $node->getNodeChilds($condition, false); $node->output(); }
/** * 获取相册分类 */ public function show() { if ($this->user['group_type'] > MAX_ADMIN_TYPE) { //权限验证 $this->verify_content_prms(array('_action' => 'show')); } require_once ROOT_PATH . 'frm/node_frm.php'; $node = new nodeFrm(); $node->setXmlNode('nodes', 'node'); $node->setNodeTable('category'); $node->setNodeID(intval($this->input['fid'])); $node->addExcludeNodeId($this->input['_exclude']); $data = $this->filter_data(); $condition = $this->api->get_conditions($data); $node->getNodeChilds($condition); $node->output(); }