1 | <?php |
||
16 | trait Instruction |
||
17 | { |
||
18 | /** |
||
19 | * @return string |
||
20 | */ |
||
21 | protected function generateInstructions() |
||
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | protected function getInstructionFields( $metabox ) |
||
47 | |||
48 | /** |
||
49 | * @return array |
||
50 | */ |
||
51 | protected function getInstructionGroups() |
||
58 | |||
59 | /** |
||
60 | * @return null|array |
||
61 | */ |
||
62 | protected function initInstructions() |
||
79 | |||
80 | /** |
||
81 | * @return bool |
||
82 | */ |
||
83 | protected function showInstructions() |
||
89 | |||
90 | /** |
||
91 | * @param string $name |
||
92 | * @param mixed ...$args |
||
93 | * @return mixed |
||
94 | */ |
||
95 | abstract public function filter( $name, ...$args ); |
||
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | * @filter rwmb_show |
||
100 | */ |
||
101 | abstract public function show( $bool, array $metabox ); |
||
102 | |||
103 | /** |
||
104 | * @return bool |
||
105 | */ |
||
106 | abstract public function validate( array $conditions ); |
||
107 | |||
108 | /** |
||
109 | * @return array |
||
110 | */ |
||
111 | abstract protected function getPostTypes(); |
||
112 | |||
113 | /** |
||
114 | * @return bool |
||
115 | */ |
||
116 | abstract protected function hasPostType( array $metabox ); |
||
117 | } |
||
118 |