1 | <?php |
||
21 | class Document |
||
22 | { |
||
23 | public $id; |
||
24 | public $path; |
||
25 | public $title; |
||
26 | public $slug; |
||
27 | public $type; |
||
28 | public $documentType; |
||
29 | public $documentTypeSlug; |
||
30 | public $state; |
||
31 | public $lastModificationDate; |
||
32 | public $creationDate; |
||
33 | public $lastModifiedBy; |
||
34 | protected $fields; |
||
35 | protected $bricks; |
||
36 | protected $dynamicBricks; |
||
37 | protected $content; |
||
38 | |||
39 | protected $dbHandle; |
||
40 | |||
41 | protected $jsonEncodedFields = array('fields', 'bricks', 'dynamicBricks'); |
||
42 | protected $orderableFields = array('title', 'slug', 'type', 'documentType', 'documentTypeSlug', 'state', 'lastModificationDate', 'creationDate', 'lastModifiedBy'); |
||
43 | |||
44 | public static $DOCUMENT_STATES = array('published', 'unpublished'); |
||
45 | |||
46 | public function __get($name) { |
||
66 | |||
67 | public function __set($name, $value) { |
||
77 | |||
78 | /** |
||
79 | * @param string $orderBy |
||
80 | * @param string $order |
||
81 | * |
||
82 | * @return array |
||
83 | * @throws \Exception |
||
84 | */ |
||
85 | public function getContent($orderBy = 'title', $order = 'ASC') |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | public function __toString() |
||
102 | |||
103 | |||
104 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.