initiate ();
ob_start ();
?>
|
getRelation () ." r
LEFT JOIN ". $db->getSchema () ."._user u ON u._id = r._user
WHERE r._relation = '". $itemId ."'
ORDER BY r._version DESC";
$sth = $db->prepare ($sql);
$sth->execute ();
$control = array ();
while ($obj = $sth->fetch (PDO::FETCH_OBJ))
{
if (in_array ($obj->_id, $control) || !$field->docExists ($obj->_id))
continue;
$control [] = $obj->_id;
?>
= $field->getDocument ($obj->_id)->getLabel () ?> |
= $obj->_version ?> |
= is_null ($obj->author) ? __ ('Generated by the system') : $obj->author ?> |
= $obj->created ?> |
|
|