1 | <?php |
||
15 | class Test |
||
16 | { |
||
17 | /** |
||
18 | * This function is going to be called second |
||
19 | * It has priority 1. |
||
20 | * |
||
21 | * @Filter("prepend_at", priority=1) |
||
22 | * @param string $text |
||
23 | * @return string |
||
24 | */ |
||
25 | public function prependAt($text = '') |
||
29 | |||
30 | /** |
||
31 | * This is the first function going to be called. |
||
32 | * It has priority 0. |
||
33 | * |
||
34 | * @Filter("prepend_at", priority=0) |
||
35 | * @param string $text |
||
36 | * @return string |
||
37 | */ |
||
38 | public function prependAtSecond($text = '') |
||
42 | } |
||
43 | Filters::registerFilterObject(new Test()); |
||
56 |