blueshoes php application framework and cms            core_html
[ class tree: core_html ] [ index: core_html ] [ all elements ]

Class: Bs_FormBuilder

Source Location: /core/html/form/Bs_FormBuilder.class.php

Class Overview

Bs_Object
   |
   --Bs_FormBuilder

Form Builder Class


Author(s):

Version:

  • 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:38 $

Copyright:

  • blueshoes.org

Variables

Methods


Inherited Variables

Inherited Methods

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 34]
Form Builder Class

dependencies: Bs_MySql, Bs_FormHandler (which starts a chain of includes), HtmlTable,

the method names in here might have strange, long name. i didn't come up with better ideas. also they may be bad documented. this is definitely not a class to be proud of. but it works.

the hard thing here is that we have to build a form to build a form, and build form elements (fields) to build form elements. get what i mean? it's like when you want to forge a hammer for the first time, and for this you need a hammer. me, i often mix them up and have to think which one i currently hold in my hand.




Tags:

copyright:  blueshoes.org
pattern:  singleton: (pseudostatic)
access:  public
version:  4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:38 $
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Variables

$persistType =  'db'

[line 61]

the way we persist the form/fields structure data.

one of 'db' (default) and 'file'. file is not implemented yet. the idea is to have an xml-style file implementation. that would be much easier to set up, understand and to modify by hand. the way the db implementation works now you have to take some time to get it to work. :/



Type:   mixed


[ Top ]



Class Methods


constructor Bs_FormBuilder [line 67]

Bs_FormBuilder Bs_FormBuilder( )

Constructor.



[ Top ]

method checkTableStructure [line 75]

void checkTableStructure( )



[ Top ]

method doItYourself [line 115]

void doItYourself( )



[ Top ]

method getElementsTable [line 477]

void getElementsTable( mixed $formId)



[ Top ]

method getFormsTable [line 440]

void getFormsTable( )



[ Top ]

method treatFormForm [line 203]

void treatFormForm( )



[ Top ]

method treatFormFormElement [line 248]

void treatFormFormElement( )



[ Top ]

method _addFormRecord [line 325]

void _addFormRecord( )



[ Top ]

method _elementSelectRowBuilder [line 579]

void _elementSelectRowBuilder( mixed $elementType, [mixed $fieldType = NULL])

internal helper method for _getPageElementSelector()



[ Top ]

method _getFormFormElementForAdd [line 373]

void _getFormFormElementForAdd( mixed $elementType, mixed $fieldType)



[ Top ]

method _getFormFormElementForEdit [line 363]

void _getFormFormElementForEdit( mixed $elementType, mixed $fieldType)



[ Top ]

method _getFormFormForAdd [line 353]

void _getFormFormForAdd( )



[ Top ]

method _getFormFormForEdit [line 333]

void _getFormFormForEdit( )



[ Top ]

method _getPageElementSelector [line 494]

void _getPageElementSelector( )



[ Top ]

method _getPageFormOverview [line 457]

void _getPageFormOverview( )



[ Top ]

method _getPageOverview [line 421]

void _getPageOverview( )



[ Top ]

method _getPreview [line 178]

void _getPreview( )



[ Top ]

method _loadFormForm [line 592]

void _loadFormForm( )



[ Top ]

method _loadFormFormElement [line 1133]

void _loadFormFormElement( mixed $elementType, mixed $fieldType)



[ Top ]

method _updateFormRecord [line 329]

void _updateFormRecord( )



[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:09:21 +0100 by phpDocumentor 1.2.3