root/trunk/examples/patExampleGen/sections_api.php

Revision 378, 3.5 kB (checked in by gerd, 2 years ago)

Added feature: addModuleDir / addModuleBaseDir in patForms

  • 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 API
4  *
5  * $Id$
6  *
7  * @package        patForms
8  * @subpackage    Examples
9  * @author        Sebastian Mordziol <argh@php-tools.net>
10  */
11  
12     $sections['API'] = array(
13         'descr'        =>    'These examples show the basic patForms API methods, and introduce you
14                         to the different ways to create forms and form elements.',
15         'basename'    =>    'example_api_',
16         'pages'        =>    array(
17             'factory_detailed' => array(
18                 'title'    =>    'Using the patForms factory - I',
19                 'descr'    =>    'Here you will see how to use the patForms factory methods
20                             to create elements and append them to a form, and create and
21                             set a renderer.',
22                 'tabs'  =>  array(
23                     'annotation' => array(
24                         'title' => 'Notes',
25                         'type'  => 'text',
26                         'text'  => 'In this example, you can see the different components a form
27                                     is made of (like elements and renderers for ex.), and how you
28                                     can bring these components together - we have built patForms so
29                                     that it does not matter where the components come from. Whether
30                                     you create an element via patForms\' createElement() method or
31                                     recycle an element object stored in a session does not matter at
32                                     all, everything is possible :)',
33                     ),
34                 ),
35             ),
36             'factory_simple' => array(
37                 'title'    =>    'Using the patForms factory - II',
38                 'descr'    =>    'Here you will see how you can automate element creation via
39                             the patForms factory methods.',
40             ),
41             'factory_customModule' => array(
42                 'title' =>  'Use custom modules in patForms',
43                 'descr' =>  'Tell patForms how to include your own modules - like rules, filter, elements and stuff.
44                             This feature allows you to keep project specific code separated from the &quot;officiel&quot;
45                             patForms distributen.',
46             ),
47             'setvalues' => array(
48                 'title'    =>    'Setting the values from your script',
49                 'descr'    =>    'This example shows how to create a form and set the values afterwards.',
50             ),
51             'replace_element' => array(
52                 'title'    =>    'Replacing an element',
53                 'descr'    =>    'This shows you how to replace an element in the form with another one.',
54             ),
55             'autovalidate' => array(
56                 'title'    =>    'Automatic form validation',
57                 'descr'    =>    'Here you can find the auto-validation feature
58                             of patForms, which enables the automatic checking whether
59                             the form has been submitted by checking for a variable in
60                             the request.'
61             ),
62             'default_attributes' => array(
63                 'title'    =>    'Setting default attributes',
64                 'descr'    =>    'This example shows how you can set default attributes for
65                             all elements in a form.'
66             ),
67             'locale' => array(
68                 'title'    =>    'Localized validation messages',
69                 'descr'    =>    'Here you can see how to set a locale for a form, to
70                             set the language in which validation errors will be returned.'
71             ),
72             'locale_custom' => array(
73                 'title'    =>    'Custom Localized validation messages',
74                 'descr'    =>    'Additional locale information is read from an INI file.'
75             ),
76             'toxml' => array(
77                 'title'    =>    'Serialize an element to XML I',
78                 'descr'    =>    'patForms gives you the possibility to serialize an element
79                             to XML - this is useful if you want to make an XML representation
80                             of your form elements.'
81             ),
82             'toxml_ns' => array(
83                 'title'    =>    'Serialize an element to XML II',
84                 'descr'    =>    'For easy integration in existing XML data, you can also
85                             serialize an element with a custom namespace.'
86             ),
87         )
88     );
89
90 ?>
Note: See TracBrowser for help on using the browser.