| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
$sections['Parser'] = array( |
|---|
| 13 |
'descr' => 'These examples show how to manage forms via the patFormsParser, which |
|---|
| 14 |
|
|---|
| 15 |
, |
|---|
| 16 |
'basename' => 'example_parser_', |
|---|
| 17 |
'pages' => array( |
|---|
| 18 |
'intro' => array( |
|---|
| 19 |
'title' => 'Form templates', |
|---|
| 20 |
'descr' => 'Introducing patForm\'s form template syntax and parser' |
|---|
| 21 |
), |
|---|
| 22 |
'simple' => array( |
|---|
| 23 |
'title' => 'Quick form creation', |
|---|
| 24 |
'descr' => 'This example shows how to create a form from a form template in just two |
|---|
| 25 |
|
|---|
| 26 |
), |
|---|
| 27 |
'placeholder' => array( |
|---|
| 28 |
'title' => 'Setting element placeholders', |
|---|
| 29 |
'descr' => 'This example makes use of the setPlaceholder method to create working PHP |
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
), |
|---|
| 33 |
'pattemplate' => array( |
|---|
| 34 |
'state' => 'Stable', |
|---|
| 35 |
'title' => 'The patTemplate renderer', |
|---|
| 36 |
'descr' => 'Simple renderer based on patTemplate.' |
|---|
| 37 |
), |
|---|
| 38 |
'pattemplate_2forms' => array( |
|---|
| 39 |
'state' => 'Alpha', |
|---|
| 40 |
'title' => 'The patTemplate renderer using two forms', |
|---|
| 41 |
'descr' => 'This example shows how you may use more than one form in the same page.' |
|---|
| 42 |
), |
|---|
| 43 |
'pattemplate_group' => array( |
|---|
| 44 |
'state' => 'Alpha', |
|---|
| 45 |
'title' => 'The patTemplate renderer using groups', |
|---|
| 46 |
'descr' => 'Example that groups some elements' |
|---|
| 47 |
), |
|---|
| 48 |
'options' => array( |
|---|
| 49 |
'title' => 'The <patForms:Option> tag', |
|---|
| 50 |
'descr' => 'This example shows how to set the list of values for elements like the Enum or |
|---|
| 51 |
|
|---|
| 52 |
), |
|---|
| 53 |
'attributes' => array( |
|---|
| 54 |
'title' => 'The <patForms:Attribute> tag', |
|---|
| 55 |
'descr' => 'This example shows how to set element attributes dynamically.' |
|---|
| 56 |
), |
|---|
| 57 |
'datasource' => array( |
|---|
| 58 |
'title' => 'The <patForms:Datasource> tag', |
|---|
| 59 |
'descr' => 'This example shows how to set a datasource for the list of values for elements |
|---|
| 60 |
|
|---|
| 61 |
), |
|---|
| 62 |
'radiogroups' => array( |
|---|
| 63 |
'state' => 'Alpha', |
|---|
| 64 |
'title' => 'Working with radio groups', |
|---|
| 65 |
'descr' => 'This example shows how to use the RadioGroup element with the parser. Do not use |
|---|
| 66 |
|
|---|
| 67 |
), |
|---|
| 68 |
'ns_handler' => array( |
|---|
| 69 |
'title' => 'Custom namespace handlers', |
|---|
| 70 |
'descr' => 'This example shows you how to register any class as namespace handler in |
|---|
| 71 |
|
|---|
| 72 |
), |
|---|
| 73 |
'ns_auto' => array( |
|---|
| 74 |
'title' => 'Automatic namespace detection', |
|---|
| 75 |
'descr' => 'This example shows how to set the namespace for the patForms tags directly |
|---|
| 76 |
|
|---|
| 77 |
), |
|---|
| 78 |
'datanamespace' => array( |
|---|
| 79 |
'title' => 'Using a value namespace', |
|---|
| 80 |
'descr' => 'This example shows you how to assign a value namespace so you can have more than |
|---|
| 81 |
|
|---|
| 82 |
), |
|---|
| 83 |
'events' => array( |
|---|
| 84 |
'title' => 'Using event handlers', |
|---|
| 85 |
'descr' => 'This example shows how to add PHP callbacks to form events in the parser.' |
|---|
| 86 |
), |
|---|
| 87 |
'html' => array( |
|---|
| 88 |
'title' => 'The HTML parser', |
|---|
| 89 |
'descr' => 'This example shows how you can use the HTML form parser to create a patForms |
|---|
| 90 |
|
|---|
| 91 |
), |
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 |
?> |
|---|
| 95 |
|
|---|