1 | <?php |
||
16 | class AuditLogModel extends BaseElementModel |
||
17 | { |
||
18 | /** |
||
19 | * Statuses. |
||
20 | */ |
||
21 | const CREATED = 'live'; |
||
22 | const MODIFIED = 'pending'; |
||
23 | const DELETED = 'expired'; |
||
24 | |||
25 | /** |
||
26 | * Fieldtypes. |
||
27 | */ |
||
28 | const FieldTypeEntries = 'Entries'; |
||
29 | const FieldTypeCategories = 'Categories'; |
||
30 | const FieldTypeAssets = 'Assets'; |
||
31 | const FieldTypeUsers = 'Users'; |
||
32 | const FieldTypeLightswitch = 'Lightswitch'; |
||
33 | |||
34 | /** |
||
35 | * Element Type name. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $elementType = 'AuditLog'; |
||
40 | |||
41 | /** |
||
42 | * Return the title of this model. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getTitle() |
||
50 | |||
51 | /** |
||
52 | * Return the model's attributes. |
||
53 | * |
||
54 | * @return array |
||
55 | */ |
||
56 | protected function defineAttributes() |
||
69 | |||
70 | /** |
||
71 | * Return the model's status. |
||
72 | * |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getStatus() |
||
79 | |||
80 | /** |
||
81 | * Return the model's user. |
||
82 | * |
||
83 | * @return UserModel |
||
84 | */ |
||
85 | public function getUser() |
||
89 | } |
||
90 |