| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class SolrLog extends DataObject |
||
| 17 | { |
||
| 18 | private static $table_name = 'SolrLog'; |
||
| 19 | |||
| 20 | private static $db = [ |
||
| 21 | 'Timestamp' => 'Varchar(50)', |
||
| 22 | 'Message' => 'Text', |
||
| 23 | 'Index' => 'Varchar(255)', |
||
| 24 | 'Type' => 'Enum("Config,Index,Query")', |
||
| 25 | 'Level' => 'Varchar(10)' |
||
| 26 | ]; |
||
| 27 | |||
| 28 | private static $summary_fields = [ |
||
|
1 ignored issue
–
show
|
|||
| 29 | 'Created', |
||
| 30 | 'Index', |
||
| 31 | 'Type' |
||
| 32 | ]; |
||
| 33 | |||
| 34 | private static $indexes = [ |
||
|
1 ignored issue
–
show
|
|||
| 35 | 'Timestamp' => true, |
||
| 36 | ]; |
||
| 37 | |||
| 38 | private static $sort = 'Created DESC'; |
||
|
1 ignored issue
–
show
|
|||
| 39 | |||
| 40 | /** |
||
| 41 | * @param null|Member $member |
||
| 42 | * @return bool|mixed |
||
| 43 | */ |
||
| 44 | public function canCreate($member = null, $context = []) |
||
| 45 | { |
||
| 46 | return false; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param null|Member $member |
||
| 51 | * @return bool|mixed |
||
| 52 | */ |
||
| 53 | public function canEdit($member = null) |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param null|Member $member |
||
| 60 | * @return bool|mixed |
||
| 61 | */ |
||
| 62 | public function canView($member = null) |
||
| 63 | { |
||
| 64 | return parent::canView($member); // TODO: Change the autogenerated stub |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param null|Member $member |
||
| 69 | * @return bool|mixed |
||
| 70 | */ |
||
| 71 | public function canDelete($member = null) |
||
| 74 | } |
||
| 75 | } |
||
| 76 |