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