1 | <?php |
||
21 | class InlineRecord implements InlineElementHookInterface |
||
22 | { |
||
23 | /** |
||
24 | * Initializes this hook object. |
||
25 | * |
||
26 | * @param object $parentObject |
||
27 | */ |
||
28 | public function init(&$parentObject) |
||
31 | |||
32 | /** |
||
33 | * Pre-processing to define which control items are enabled or disabled. |
||
34 | * |
||
35 | * @param string $parentUid The uid of the parent (embedding) record (uid or NEW...) |
||
36 | * @param string $foreignTable The table (foreign_table) we create control-icons for |
||
37 | * @param array $childRecord The current record of that foreign_table |
||
38 | * @param array $childConfig TCA configuration of the current field of the child record |
||
39 | * @param bool $isVirtual Defines whether the current records is only virtually shown and not physically part of the parent record |
||
40 | * @param array $enabledControls (reference) Associative array with the enabled control items |
||
41 | */ |
||
42 | public function renderForeignRecordHeaderControl_preProcess( |
||
51 | |||
52 | /** |
||
53 | * Post-processing to define which control items to show. Possibly own icons can be added here. |
||
54 | * |
||
55 | * @param string $parentUid The uid of the parent (embedding) record (uid or NEW...) |
||
56 | * @param string $foreignTable The table (foreign_table) we create control-icons for |
||
57 | * @param array $childRecord The current record of that foreign_table |
||
58 | * @param array $childConfig TCA configuration of the current field of the child record |
||
59 | * @param bool $isVirtual Defines whether the current records is only virtually shown and not physically part of the parent record |
||
60 | * @param array $controlItems (reference) Associative array with the currently available control items |
||
61 | */ |
||
62 | public function renderForeignRecordHeaderControl_postProcess( |
||
126 | |||
127 | /** |
||
128 | * Check if the record is valid. |
||
129 | * |
||
130 | * @param string $table |
||
131 | * @param int $uid |
||
132 | * |
||
133 | * @return bool |
||
134 | */ |
||
135 | protected function isValidRecord($table, $uid) |
||
139 | |||
140 | /** |
||
141 | * Add a element with the given key in front of the array. |
||
142 | * |
||
143 | * @param $arr |
||
144 | * @param string $key |
||
145 | * @param string $val |
||
146 | */ |
||
147 | protected function arrayUnshiftAssoc(&$arr, $key, $val) |
||
153 | } |
||
154 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.