*/ $sections['Parser'] = array( 'descr' => 'These examples show how to manage forms via the patFormsParser, which lets you create forms with special tags directly in your html code in so-called form templates. This gives you total layout control.', 'basename' => 'example_parser_', 'pages' => array( 'intro' => array( 'title' => 'Form templates', 'descr' => 'Introducing patForm\'s form template syntax and parser' ), 'simple' => array( 'title' => 'Quick form creation', 'descr' => 'This example shows how to create a form from a form template in just two method calls.' ), 'placeholder' => array( 'title' => 'Setting element placeholders', 'descr' => 'This example makes use of the setPlaceholder method to create working PHP code from your templates. This is for all you template haters out there, and it can be achieved with just one line of code!' ), 'pattemplate' => array( 'state' => 'Stable', 'title' => 'The patTemplate renderer', 'descr' => 'Simple renderer based on patTemplate.' ), 'pattemplate_2forms' => array( 'state' => 'Alpha', 'title' => 'The patTemplate renderer using two forms', 'descr' => 'This example shows how you may use more than one form in the same page.' ), 'pattemplate_group' => array( 'state' => 'Alpha', 'title' => 'The patTemplate renderer using groups', 'descr' => 'Example that groups some elements' ), 'options' => array( 'title' => 'The <patForms:Option> tag', 'descr' => 'This example shows how to set the list of values for elements like the Enum or Set elements.' ), 'attributes' => array( 'title' => 'The <patForms:Attribute> tag', 'descr' => 'This example shows how to set element attributes dynamically.' ), 'datasource' => array( 'title' => 'The <patForms:Datasource> tag', 'descr' => 'This example shows how to set a datasource for the list of values for elements like the Enum or Set elements.' ), 'radiogroups' => array( 'state' => 'Alpha', 'title' => 'Working with radio groups', 'descr' => 'This example shows how to use the RadioGroup element with the parser. Do not use this in a poductive environment, as it is still subject to change!' ), 'ns_handler' => array( 'title' => 'Custom namespace handlers', 'descr' => 'This example shows you how to register any class as namespace handler in patForms_Parser. This allows you to load datasources for Enum elements on-the-fly.' ), 'ns_auto' => array( 'title' => 'Automatic namespace detection', 'descr' => 'This example shows how to set the namespace for the patForms tags directly in the form template itself to have the patForms Parser detect it automatically.' ), 'datanamespace' => array( 'title' => 'Using a value namespace', 'descr' => 'This example shows you how to assign a value namespace so you can have more than one element with the same name in multiple forms of the same page.' ), 'events' => array( 'title' => 'Using event handlers', 'descr' => 'This example shows how to add PHP callbacks to form events in the parser.' ), 'html' => array( 'title' => 'The HTML parser', 'descr' => 'This example shows how you can use the HTML form parser to create a patForms object directly from a normal HTML form.' ), ) ); ?>