|
Revision 186, 2.6 kB
(checked in by schst, 4 years ago)
|
added a flexible function filter
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
$sections['Filter'] = array( |
|---|
| 13 |
'descr' => 'Filter allow you to modify the values that you get from the |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
, |
|---|
| 22 |
'basename' => 'example_filter_', |
|---|
| 23 |
'pages' => array( |
|---|
| 24 |
'trim' => array( |
|---|
| 25 |
'title' => 'Trim', |
|---|
| 26 |
'descr' => 'This example shows how to use the \'Trim\' filter to |
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
), |
|---|
| 31 |
'multiplier' => array( |
|---|
| 32 |
'title' => 'Multiplier', |
|---|
| 33 |
'descr' => 'This example automatically transform hours that have been |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
), |
|---|
| 38 |
'xss' => array( |
|---|
| 39 |
'title' => 'XSS (Cross-site-scripting attacks)', |
|---|
| 40 |
'descr' => 'This example demonstrates the use of the XSS filter to |
|---|
| 41 |
, |
|---|
| 42 |
'tabs' => array( |
|---|
| 43 |
'hilights' => array( |
|---|
| 44 |
'title' => 'Relevant parts', |
|---|
| 45 |
'type' => 'guide', |
|---|
| 46 |
'file' => '$exampleId.php', |
|---|
| 47 |
'guide' => array( |
|---|
| 48 |
|
|---|
| 49 |
'lines' => '35-51', |
|---|
| 50 |
'text' => 'The element definition with script tag as default value', |
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
'lines' => '65-72', |
|---|
| 54 |
'text' => 'Creating and adding the filter', |
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
'function' => array( |
|---|
| 61 |
'title' => 'Function', |
|---|
| 62 |
'descr' => 'This shows how to apply a filter that uses any PHP funtion to filter the data.' |
|---|
| 63 |
), |
|---|
| 64 |
'auto' => array( |
|---|
| 65 |
'title' => 'Automatic creation', |
|---|
| 66 |
'descr' => 'You can define filters for your elements and have them |
|---|
| 67 |
|
|---|
| 68 |
, |
|---|
| 69 |
'tabs' => array( |
|---|
| 70 |
'hilights' => array( |
|---|
| 71 |
'title' => 'Relevant parts', |
|---|
| 72 |
'type' => 'guide', |
|---|
| 73 |
'file' => '$exampleId.php', |
|---|
| 74 |
'guide' => array( |
|---|
| 75 |
|
|---|
| 76 |
'lines' => '36-61', |
|---|
| 77 |
'text' => 'The element definition with filters', |
|---|
| 78 |
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
?> |
|---|