public function getVersions()
{
$return = [];
$id = $this->param("id", false);
$colid = $this->param("colId", false);
if ($id && $colid) {
$versions = $this->app->helper("versions")->get("coentry:{$colid}-{$id}");
foreach ($versions as $uid => $data) {
$return[] = ["time" => $data["time"], "uid" => $uid];
}
}
return json_encode(array_reverse($return));
}