public function getCollectionsJson($r) { if ($r->get('get_all')) { $public_only = false; } else { $public_only = true; } $r->renderResponse(Dase_DBO_Collection::listAsJson($this->db, $public_only, $r->app_root)); }