| Formagic |
| [ class tree: Formagic ] [ index: Formagic ] [ all elements ] |
|
Packages: Formagic Filter Item Renderer Rule Translator Files: Classes: |
[ Top ] $_formAction =[line 114] Action for form tagTags:
[ Top ] $_itemHolder =[line 102] Container item holding all items added to Formagic objectTags:
[ Top ] $_method = 'post'[line 62] Form submission method (POST or GET)Tags:
[ Top ] $_name = 'formagic'[line 108] Form nameTags:
[ Top ] $_renderer =[line 90] Type of renderer used to display formTags:
[ Top ] $_submissionItem =[line 120] Track submission itemTags:
[ Top ] $_submitValues = array()[line 68] Array of submitted valuesTags:
[ Top ] $_supportedMethods = array('get', 'post')[line 83] Submit methods supported by FormagicTags:
[ Top ] $_trackSubmission = true[line 96] Enables or disables submission trackingTags:
[ Top ] Class Methodsstatic method addBaseDir [line 327]
Adds a directory to base dir stack (globally for all Formagic instances). Tags:
Parameters:
[ Top ]
static method createItem [line 527]
Creates and returns FormagicItem object Tries to load correct object class and creates new object. Returns object if successfull, false if not. Tags:
Parameters:
[ Top ]
static method getBaseDirs [line 340]
Returns current plugin base directory stack. Tags:
[ Top ]
static method getTranslator [line 492]
Returns translator object. If no translator is specified, an empty translator object is returned. Tags:
[ Top ]
static method loadClass [line 708]
Loads a class located in defined baseDir locations. Skipped if class is already loaded. loadClass() tries to load from any extension directories defined. Returns true if successful, false if not. Tags:
Parameters:
[ Top ]
static method setTranslator [line 463]
Sets translator object and method if present. $translator has to be either an array with two members, the first one beeing the translator object and the second one the name of the translator method, or a translator object. In the latter case the translator method is assumed '$translatorObject->_($string)'. Tags:
Parameters:
[ Top ]
constructor __construct [line 150]
Constructor. Tags:
Parameters:
[ Top ]
method getFormAction [line 566]
Returns current form action Tags:
[ Top ]
method getInfo [line 505]
Returns form information string. Tags:
[ Top ]
method getItemHolder [line 540]
Returns root container. Tags:
[ Top ]
method getMethod [line 424]
Returns the form method. Tags:
[ Top ]
method getRaw [line 645]
Returns undvalidated and unfiltered submit values. Tags:
[ Top ]
method getRenderer [line 381]
Returns the current renderer object. Tags:
[ Top ]
method getTrackSubmission [line 446]
Returns submission tracking status. Tags:
[ Top ]
method getValues [line 635]
Returns array with values from all added items. Tags:
[ Top ]
method isSubmitted [line 661]
Checks if HTML form is submitted Check result is true for following rules:
Tags:
[ Top ]
method render [line 603]
Returns output generated by renderer Loads renderer class and calls renderer::fetch() Tags:
[ Top ]
method setFormAction [line 551]
Sets the form action URL. Tags:
Parameters:
[ Top ]
method setMethod [line 408]
Sets the form's submit method. Tags:
Parameters:
[ Top ]
method setRenderer [line 352]
Defines renderer for current Formagic object Tags:
Parameters:
[ Top ]
method setTrackSubmission [line 435]
Enables or disables submission tracking. Tags:
Parameters:
[ Top ]
method setValues [line 624]
Sets default values. Tags:
Parameters:
[ Top ]
method validate [line 584]
Checks if form is submitted and all rules apply 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. Tags:
[ Top ]
method _getTrackSubmissionItem [line 682]
Returns the track submission item. Tags:
[ Top ]
method _init [line 203]method _setName [line 392]
Sets form name and thus name of trackSubmission item. Tags:
Parameters:
[ Top ]
method _setOptions [line 269]
Sets Formagic option $name to $value Triggers warning if option $name is not supported. Tags:
Parameters:
[ Top ]
method __call [line 225]
Proxies method calls to underlying container $this->_itemHolder. Tags:
Parameters:
[ Top ]
method __get [line 241]
Member overloading: Tries to return a form item with member's name. Tags:
Parameters:
[ Top ]
method __set [line 254]
Will throw an Formagic_Exception, because member overloading is not allowed. Tags:
Parameters:
[ Top ]
method __toString [line 212]
Returns result for string casting of Formagic object. Tags:
[ Top ]
Class ConstantsAPI_VERSION = '2.0'[line 142] Formagic API version[ Top ] VERSION = '1.0'[line 137] Formagic version[ Top ] Documentation generated on Sun, 22 May 2011 22:40:11 +0200 by phpDocumentor 1.4.3 |