README.txt
Todo List
Highly extensible formgenerator with various rendering options, form validation and multipage support.
[line 57]
[line 69]
[line 51]
[line 45]
[line 63]
void __construct( [ $name = 'formagic'], [array $options = null])
void __destruct( )
Restores formerly manipulated include path.
object FormagicItem addItem( mixed $type, string $name, [array $args = null])
Creates new item object and adds this or adds passed FormagicItem object
boolean block( )
integer countItems( )
Counts total number of items recursively
Formagic_Item &createItem( string $type, string $name, [array $args = null])
Tries to load correct object class and creates new object. Returns object if successfull, false if not.
void execute( )
string fetch( )
Loads renderer class and calls renderer::fetch()
string getFormAction( )
array &getItemHolder( )
array getMessages( [string $level = null])
mixed &getValue( string $name)
array getValues( )
boolean isSubmitted( )
Check result is true for following rules:
boolean loadClass( string $class)
Skipped if class is already loaded. loadClass() tries to load from any extension directories defined. Returns true if successful, false if not.
array setDefaultValues( array $values)
void setExecuteCallback( mixed $callback)
$callback has to be a valid PHP callback variable.
string setMessage( string $message, string $level)
Predefined $levels:
boolean setOption( $options, [mixed $value = null], string $name)
Triggers warning if option $name is not supported.
boolean setRenderer( string $renderer)
boolean validate( )
Iterates through all items added to the form. If any rule is violated, iteration is stopped. Returns true if no rules are violated. The result of validate() is cached.
boolean _execEvent( string $event)
string __toString( )
[line 137]
[line 142]
[line 140]
[line 141]
[line 139]
[line 138]
[line 136]