public function postToExpungeHiddenItems($r) { $list = new Dase_DBO_List($this->db); $list->uniq_id = $r->get('id'); if (!$list->findOne()) { $r->renderError(404); } foreach ($list->getItems() as $item) { if ($item->hidden) { $item->delete(); } } $r->renderRedirect($list->uniq_id); }