function remove() { $ids = explode(",", $this->dbh->escape_string($_REQUEST["ids"])); foreach ($ids as $id) { Pref_Feeds::remove_feed($id, $_SESSION["uid"]); } return; }
function getFeedTree() { $include_empty = sql_bool_to_bool($_REQUEST['include_empty']); $pf = new Pref_Feeds($_REQUEST); $_REQUEST['mode'] = 2; $_REQUEST['force_show_empty'] = $include_empty; if ($pf) { $data = $pf->makefeedtree(); $this->wrap(self::STATUS_OK, array("categories" => $data)); } else { $this->wrap(self::STATUS_ERR, array("error" => 'UNABLE_TO_INSTANTIATE_OBJECT')); } }