public function get_children() { if (!empty($_REQUEST['parentid'])) { $parent_id = $_REQUEST['parentid']; } $this->result[] = \Goteo\Model\Skill::getChildren($parent_id); return $this->output(); }