Constant Summary |
CONSTANT NAME | CONSTANT VALUE | DESCRIPTION |
---|
Constant Detail |
Function Detail |
sfTemplateStart ( $title, $comment )
HTML Form start code function that outputs the HTML code for form start. First it searchs for an element named 'FORM_START' in the wildweb template system. If wildweb is not present or FORM_START element doesnt exists, a function named FORM_START() is searched for. If the function doesnt exists then it outputs a hardcoded HTML block. grouphtml_generation
$title string Title to be used for the form
$comment string little text (can be used as coment, instructions, etc)
private
Nothing
sfTemplate ( $FH, $title, $field, $comment, ' )
HTML Form field code outputs HTML code responsible to hold title, the field itself and a comment. we use the same 'tries' of sfTemplateStart() to get that value, ie, wildweb template system first, the a function named 'FORM_FIELD', then a standard HTML block is used. grouphtml_generation
$FH array form handler
$title string Title of the current field
$field string The field itself
$comment string little text (can be used as coment, instructions, etc)
private
Nothing
sfTemplateError ( $title, $field, $comment, ' )
HTML Form invalid field code outputs HTML code responsible to hold title, the field itself and a comment for invalid fields. we use the same 'tries' of sfTemplateStart() to get that value, ie, wildweb template system first, the a function named 'FORM_FIELD', then a standard HTML block is used. grouphtml_generation
$title string Title of the current field
$field string The field itself
$comment string little text (can be used as coment, instructions, etc)
private
Nothing
sfNoTemplate ( $field )
outputs non-viewable fields of the form actually it only outputs the non-viewable fields. Its a placeholder for future needs. grouphtml_generation
$field string The field itself
private
Nothing
sfTemplateEnd ( $footnote, ' )
HTML Form end code function that outputs the HTML code for form end. First it searchs for an element named 'FORM_END' in the wildweb template system. If wildweb is not present or FORM_END element doesnt exists, a function named FORM_END() is searched for. If the function doesnt exists then it outputs a hardcoded HTML block. grouphtml_generation
$footnote string a footnote text (can be used as coment, instructions, etc)
private
Nothing
sfOpenForm ( $FH, $formname, form, $title, SmartForm, $comment, ', $action, $method, POST )
Creates the 'FORM HANDLER' creates the FORM_HANDLER used in all other functions to attach additional fields and validators. Some initial parameters are set, as the name of the PHP variable that will hold the field values, a title for the form, the method used to transmit the form, etcetera. grouppublic_interface
$FH array form handler
$formname string actual name of the PHP variable that will hold the form values, usually form_handler itself.
$title string title for the form
$comment string text comment usually some small text bellow title
$action string the URL that will receive the execution of this form, defaults to $PHP_SELF
$method string the used method to pass variables , 'GET' or 'POST', defaults to 'POST'
public
form_handler
sfCloseForm ( $FH, $footnote, ' )
sfButtons ( $FH, $buttons )
sfCorrectValue ( $fh, $name, $value )
sfText ( $FH, $title, $name, $value, ', $size, $maxl, $comment )
sfPassword ( $FH, $title, $name, $value, ', $size, $maxl, $comment )
sfTextArea ( $FH, $title, $name, $value, ', $cols, $rows, $comment )
sfTextAreaNoWrap ( $FH, $title, $name, $value, ', $cols, $rows, $comment )
sfHidden ( $FH, $name, $value, ', $outside )
sfRadio ( $FH, $title, $name, $value, radio, $label, Label, $checked, ', $comment )
sfDBLookup ( $FH, $title, $name, $value, ', $lktable, $lkid, $lkdescr, $comment )
sfMultDBLookup ( $FH, $title, $name, $value, ', $size, $lktable, $lkid, $lkdescr, $comment )
sfLookup ( $FH, $title, $name, $value, ', $values, $comment )
sfMultLookup ( $FH, $title, $name, $value, ', $size, $values, $comment )
sf_show ( $fh )
sfValidRegExp ( $fh, $regexp, $message, ', $value )
sfValidIRegExp ( $fh, $regexp, $message, ', $value )
sfValidNotEmpty ( $fh, $message, ', $value )
sf_validfield ( $fh, &$el, $value )
sf_validate ( $fh )
sf_exec ( $fh )
sf_Valid ( &$fh )