public function removeentry() { $collection = $this->param("collection", null); $entryId = $this->param("entryId", null); if ($collection && $entryId) { $colid = $collection["_id"]; $col = "collection" . $collection["_id"]; $this->app->db->remove("collections/{$col}", ["_id" => $entryId]); $this->app->helper("versions")->remove("coentry:{$colid}-{$entryId}"); } return $collection && $entryId ? '{"success":true}' : '{"success":false}'; }