root/trunk/examples/patExampleGen/sections_parser.php

Revision 320, 3.6 kB (checked in by schst, 3 years ago)

Parser now uses the element's id for the placeholder. Parser_patTemplateRenderer and Parser_SimpleRenderer now use the matching renderers as delegates (fixes bug #184 and #185). This commit may break some scripts, but the parser was labelled alpha before.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /**
3  * Definitions for the examples on the patForms Parser class
4  *
5  * $Id$
6  *
7  * @package        patForms
8  * @subpackage    Examples
9  * @author        Sebastian Mordziol <argh@php-tools.net>
10  */
11
12     $sections['Parser']    =    array(
13         'descr'        =>    'These examples show how to manage forms via the patFormsParser, which
14                         lets you create forms with special tags directly in your html code in so-called
15                         form templates. This gives you total layout control.',
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                             method calls.'
26             ),
27             'placeholder' => array(
28                 'title'    =>    'Setting element placeholders',
29                 'descr'    =>    'This example makes use of the setPlaceholder method to create working PHP
30                             code from your templates. This is for all you template haters out there, and it
31                             can be achieved with just one line of code!'
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 &lt;patForms:Option&gt; tag',
50                 'descr'    =>    'This example shows how to set the list of values for elements like the Enum or
51                             Set elements.'
52             ),
53             'attributes' => array(
54                 'title'    =>    'The &lt;patForms:Attribute&gt; tag',
55                 'descr'    =>    'This example shows how to set element attributes dynamically.'
56             ),
57             'datasource' => array(
58                 'title'    =>    'The &lt;patForms:Datasource&gt; tag',
59                 'descr'    =>    'This example shows how to set a datasource for the list of values for elements
60                             like the Enum or Set elements.'
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                             this in a poductive environment, as it is still subject to change!'
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                             patForms_Parser. This allows you to load datasources for Enum elements on-the-fly.'
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                             in the form template itself to have the patForms Parser detect it automatically.'
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                              one element with the same name in multiple forms of the same page.'
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                             object directly from a normal HTML form.'
91             ),
92         )
93     );
94 ?>
95
Note: See TracBrowser for help on using the browser.