1 | <?php |
||
14 | class MetaBox extends Component |
||
15 | { |
||
16 | use Condition; |
||
17 | use Instruction; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | const ID = 'metaboxes'; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | public $metaboxes = []; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function init() |
||
42 | |||
43 | /** |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function filter() |
||
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | * @filter rwmb_meta_boxes |
||
56 | */ |
||
57 | public function register() |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | * @filter rwmb_outer_html |
||
71 | */ |
||
72 | public function renderField( $html, $field ) |
||
78 | |||
79 | /** |
||
80 | * @return bool |
||
81 | * @filter rwmb_show |
||
82 | */ |
||
83 | public function show( $bool, array $metabox ) |
||
92 | |||
93 | /** |
||
94 | * @return int |
||
95 | */ |
||
96 | protected function getPostId() |
||
103 | |||
104 | /** |
||
105 | * @return array |
||
106 | */ |
||
107 | protected function getPostTypes() |
||
116 | |||
117 | /** |
||
118 | * @return string|array |
||
119 | */ |
||
120 | protected function getValue( $key, $group ) |
||
126 | |||
127 | /** |
||
128 | * @return bool |
||
129 | */ |
||
130 | protected function hasPostType( array $metabox ) |
||
137 | |||
138 | /** |
||
139 | * @return void |
||
140 | */ |
||
141 | protected function normalize( array $metaboxes, array $defaults = [] ) |
||
156 | |||
157 | /** |
||
158 | * @param string $depends |
||
159 | * @param string $parentId |
||
160 | * @return string |
||
161 | */ |
||
162 | protected function normalizeDepends( $depends, array $data, $parentId ) |
||
168 | |||
169 | /** |
||
170 | * @param string $name |
||
171 | * @param string $parentId |
||
172 | * @return string |
||
173 | */ |
||
174 | protected function normalizeFieldName( $name, array $data, $parentId ) |
||
178 | |||
179 | /** |
||
180 | * @return array |
||
181 | */ |
||
182 | protected function normalizeFields( array $fields, array $data, $parentId ) |
||
197 | |||
198 | /** |
||
199 | * @param string $id |
||
200 | * @param string $parentId |
||
201 | * @return string |
||
202 | */ |
||
203 | protected function normalizeId( $id, array $data, $parentId ) |
||
207 | |||
208 | /** |
||
209 | * @param mixed $types |
||
210 | * @return array |
||
211 | */ |
||
212 | protected function normalizePostTypes( $types ) |
||
216 | |||
217 | /** |
||
218 | * @return array |
||
219 | */ |
||
220 | protected function normalizeValidation( array $validation, array $data, $parentId ) |
||
231 | |||
232 | /** |
||
233 | * @return array |
||
234 | */ |
||
235 | protected function setDependencies( array $metabox ) |
||
249 | } |
||
250 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.