silverstripe-contentreview/code/models/ContentReviewLog.php
2015-11-02 12:53:31 +13:00

44 lines
819 B
PHP

<?php
class ContentReviewLog extends DataObject
{
/**
* @var array
*/
private static $db = array(
"Note" => "Text",
);
/**
* @var array
*/
private static $has_one = array(
"Reviewer" => "Member",
"SiteTree" => "SiteTree",
);
/**
* @var array
*/
private static $summary_fields = array(
"Note" => array("title" => "Note"),
"Created" => array("title" => "Reviewed at"),
"Reviewer.Title" => array("title" => "Reviewed by"),
);
/**
* @var string
*/
private static $default_sort = "Created DESC";
/**
* @param mixed $member
*
* @return bool
*/
public function canView($member = null)
{
return (bool) Member::currentUser();
}
}