1 | <?php |
||
14 | abstract class ContentAbstract extends ModelAbstract |
||
15 | { |
||
16 | /** |
||
17 | * get all by order |
||
18 | * |
||
19 | * @since 4.0.0 |
||
20 | * |
||
21 | * @param string $orderColumn name of the column to order |
||
22 | * |
||
23 | * @return object|null |
||
24 | */ |
||
25 | |||
26 | 2 | public function getAllByOrder(string $orderColumn = 'rank') : ?object |
|
30 | |||
31 | /** |
||
32 | * get the content by language and order |
||
33 | * |
||
34 | * @since 4.0.0 |
||
35 | * |
||
36 | * @param string $language |
||
37 | * @param string $orderColumn name of the column to order |
||
38 | * |
||
39 | * @return object|null |
||
40 | */ |
||
41 | |||
42 | 3 | public function getByLanguageAndOrder(string $language = null, string $orderColumn = 'rank') : ?object |
|
51 | |||
52 | /** |
||
53 | * get the sibling by id and language and order |
||
54 | * |
||
55 | * @since 4.0.0 |
||
56 | * |
||
57 | * @param int $contentId |
||
58 | * @param string $language |
||
59 | * @param string $orderColumn name of the column to order |
||
60 | * |
||
61 | * @return object|null |
||
62 | */ |
||
63 | |||
64 | 3 | public function getSiblingByIdAndLanguageAndOrder(int $contentId = null, string $language = null, string $orderColumn = 'rank') : ?object |
|
74 | |||
75 | /** |
||
76 | * get sibling array by id |
||
77 | * |
||
78 | * @param int $contentId identifier of the content |
||
79 | * |
||
80 | * @return array|null |
||
81 | */ |
||
82 | |||
83 | 7 | public function getSiblingArrayById(int $contentId = null) : ?array |
|
99 | |||
100 | /** |
||
101 | * publish by date |
||
102 | * |
||
103 | * @since 3.3.0 |
||
104 | * |
||
105 | * @param string $date |
||
106 | * |
||
107 | * @return int |
||
108 | */ |
||
109 | |||
110 | 2 | public function publishByDate(string $date = null) : int |
|
121 | } |
||
122 |