2014-02-18 03:39:13 +01:00
|
|
|
<?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(
|
2014-02-19 02:31:47 +01:00
|
|
|
'Note' => array('title' => 'Note'),
|
|
|
|
'Created' => array('title' => 'Reviewed at'),
|
|
|
|
'Reviewer.Title' => array('title' => 'Reviewed by')
|
2014-02-18 03:39:13 +01:00
|
|
|
);
|
2014-02-19 02:31:47 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
private static $default_sort = 'Created DESC';
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function canView($member = null) {
|
|
|
|
return (bool)Member::currentUser();
|
|
|
|
}
|
2014-02-18 03:39:13 +01:00
|
|
|
}
|