mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Use square arrays
This commit is contained in:
parent
0c684045f3
commit
05fb6fa217
@ -12,26 +12,26 @@ class ContentReviewLog extends DataObject
|
|||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $db = array(
|
private static $db = [
|
||||||
"Note" => "Text",
|
"Note" => "Text",
|
||||||
);
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $has_one = array(
|
private static $has_one = [
|
||||||
"Reviewer" => Member::class,
|
"Reviewer" => Member::class,
|
||||||
"SiteTree" => SiteTree::class,
|
"SiteTree" => SiteTree::class,
|
||||||
);
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $summary_fields = array(
|
private static $summary_fields = [
|
||||||
"Note" => array("title" => "Note"),
|
"Note" => ["title" => "Note"],
|
||||||
"Created" => array("title" => "Reviewed at"),
|
"Created" => ["title" => "Reviewed at"],
|
||||||
"Reviewer.Title" => array("title" => "Reviewed by"),
|
"Reviewer.Title" => ["title" => "Reviewed by"]
|
||||||
);
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
|
Loading…
Reference in New Issue
Block a user