1 | <?php |
||
5 | class ModStub extends ItemWrapper |
||
6 | { |
||
7 | /* |
||
8 | |-------------------------------------------------------------------------- |
||
9 | | ItemWrapper Classes |
||
10 | |-------------------------------------------------------------------------- |
||
11 | | |
||
12 | | These classes are used to modify the returned key and value for a specific |
||
13 | | bundle item. The classname must end with 'Wrapper' and both key and value |
||
14 | | logic should be included. If one is not necessary, simply return the |
||
15 | | $key/$value. Parameters for wrapper classes are stored on the parent as |
||
16 | | $wrapperParameters. |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * Alter key and return. |
||
21 | * |
||
22 | * @param string $key |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | public function key($key) |
||
30 | |||
31 | /** |
||
32 | * Alter value and return. |
||
33 | * |
||
34 | * @param mixed $value |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function value($value) |
||
42 | } |
||
43 |