| Total Complexity | 9 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CommentableItem extends DataObject implements TestOnly |
||
| 13 | { |
||
| 14 | private static $db = array( |
||
|
|
|||
| 15 | 'Title' => 'Varchar' |
||
| 16 | ); |
||
| 17 | |||
| 18 | private static $extensions = array( |
||
| 19 | CommentsExtension::class |
||
| 20 | ); |
||
| 21 | |||
| 22 | private static $table_name = 'CommentableItem'; |
||
| 23 | |||
| 24 | public function RelativeLink() |
||
| 25 | { |
||
| 26 | return 'CommentableItemController'; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function canView($member = null) |
||
| 30 | { |
||
| 31 | return true; |
||
| 32 | } |
||
| 33 | |||
| 34 | // This is needed for canModerateComments |
||
| 35 | public function canEdit($member = null) |
||
| 49 | } |
||
| 50 | |||
| 51 | public function Link() |
||
| 54 | } |
||
| 55 | |||
| 56 | public function AbsoluteLink() |
||
| 61 |