root/trunk/examples/patExampleGen/sections_observer.php

Revision 117, 1.6 kB (checked in by argh, 4 years ago)

Massive update of the examples collection; added the patExampleGen examples framework; commented all examples; reworked all the templates...

  • 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 Observer classes
4  *
5  * $Id$
6  *
7  * @package        patForms
8  * @subpackage    Examples
9  * @author        Sebastian Mordziol <argh@php-tools.net>
10  */
11
12     $sections['Observer'] =    array(
13         'descr'        =>    '',
14         'basename'    =>    'example_observer_',
15         'pages'        =>    array(
16             'attach_element' => array(
17                 'title'    =>    'Attach to an element',
18                 'descr'    =>    'This example shows how to attach an observer to a single element.'
19             ),
20             'attach_elements' => array(
21                 'title'    =>    'Attach to all elements',
22                 'descr'    =>    'This example shows how to attach an observer to all elements in the
23                             form in one go.'
24             ),
25             'attach_form' => array(
26                 'title'    =>    'Attach to the form',
27                 'descr'    =>    'This example shows how to attach an observer to the form itself.'
28             ),
29             'readonly' => array(
30                 'title'    =>    'Readonly finished',
31                 'descr'    =>    'This example shows how to display fields that have already been
32                             validated successfully as readonly.'
33             ),
34             'error_attributes' => array(
35                 'title'    =>    'Error attributes',
36                 'descr'    =>    'This example shows how to change any attribute of an element that
37                             has validation errors. By setting a different style, this can be
38                             easily used to mark such fields with a different background color for ex.'
39             ),
40             'combining' => array(
41                 'title'    =>    'Combining observers',
42                 'descr'    =>    'This example shows how you can combine several observers to create
43                             complex form behaviors. Here for example, an erroneous field is shown
44                             flashy red, and directly switched to readonly when it is complete.'
45             ),
46         )
47     );
48 ?>
Note: See TracBrowser for help on using the browser.