QCubed - A PHP5 rapid development MVC framework.
Home  |  Updates

classQFormBase

QFormBase Class Reference

Inherits QBaseClass.

Inherited by QForm.

Collaboration diagram for QFormBase:

List of all members.

Public Member Functions

Static Public Member Functions

Public Attributes

Static Public Attributes

Protected Member Functions

Protected Attributes


Constructor & Destructor Documentation

QFormBase::__construct (  )  [protected]


Member Function Documentation

QFormBase::__get ( strName  ) 

Override method to perform a property "Get" This will get the value of $strName All inhereted objects that call __get() should always fall through to calling parent::__get() in a try/catch statement catching for CallerExceptions.

Parameters:
string $strName Name of the property to get
Returns:
mixed the returned property

Reimplemented from QBaseClass.

References QCallerException::IncrementOffset().

QFormBase::__set ( strName,
mixValue 
)

Override method to perform a property "Set" This will set the property $strName to be $mixValue All inhereted objects that call __set() should always fall through to calling parent::__set() in a try/catch statement catching for CallerExceptions.

Parameters:
string $strName Name of the property to set
string $mixValue New value of the property
Returns:
mixed the property that was set

Reimplemented from QBaseClass.

References QType::Cast(), QCallerException::IncrementOffset(), and QType::String.

QFormBase::AddControl ( QControl objControl  ) 

QFormBase::AddGrouping ( QControlGrouping objGrouping  ) 

QFormBase::CallDataBinder ( strMethodName,
QPaginatedControl objPaginatedControl,
objParentControl = null 
)

QFormBase::EvaluateTemplate ( strTemplate  ) 

References $_CONTROL.

QFormBase::Form_Create (  )  [protected]

QFormBase::Form_Exit (  )  [protected]

QFormBase::Form_Load (  )  [protected]

QFormBase::Form_PreRender (  )  [protected]

QFormBase::Form_Run (  )  [protected]

QFormBase::Form_Validate (  )  [protected]

Referenced by TriggerActions().

QFormBase::GenerateControlId (  ) 

QFormBase::GetAllControls (  ) 

QFormBase::GetAllGroupings (  ) 

QFormBase::GetChildControls ( objParentObject  ) 

Referenced by RenderChildren(), and TriggerActions().

QFormBase::GetControl ( strControlId  ) 

QFormBase::GetErrorControls ( blnErrorsOnly = false  ) 

Will return an array of QControls from the form which have either an error or warning message.

Parameters:
bool $blnErrorsOnly Return controls that have just errors (otherwise, show both warnings and errors)
Returns:
QControl[] an array of controls representing the (multiple) errors and warnings

References GetAllControls().

QFormBase::GetErrorMessages ( blnErrorsOnly = false  ) 

Will return an array of Strings which will show all the error and warning messages in all the controls in the form.

Parameters:
bool $blnErrorsOnly Show only the errors (otherwise, show both warnings and errors)
Returns:
string[] an array of strings representing the (multiple) errors and warnings

References GetAllControls().

QFormBase::GetGrouping ( strGroupingId  ) 

QFormBase::IsCheckableControlRendered ( strControlId  ) 

QFormBase::IsPostBack (  ) 

Returns whether or not this Form is being run due to a PostBack event (e.g. a ServerAction or AjaxAction)

Returns:
bool

References QCallType::None.

QFormBase::PersistControl ( objControl  ) 

QFormBase::ProcessJavaScriptList ( strJavaScriptFileList  )  [protected]

Primarily used by RenderBegin and by RenderAjax Given a comma-delimited list of javascript files, this will return an array of file that NEED to still be included because (1) it hasn't yet been included and (2) it hasn't been specified to be "ignored".

This WILL update the internal $strIncludedJavaScriptFileArray array.

Parameters:
string $strJavaScriptFileList
Returns:
string[] array of script files to include or NULL if none

Referenced by RenderAjax(), RenderBegin(), and RenderEnd().

QFormBase::ProcessStyleSheetList ( strStyleSheetFileList  )  [protected]

Primarily used by RenderBegin and by RenderAjax Given a comma-delimited list of stylesheet files, this will return an array of file that NEED to still be included because (1) it hasn't yet been included and (2) it hasn't been specified to be "ignored".

This WILL update the internal $strIncludedStyleSheetFileArray array.

Parameters:
string $strStyleSheetFileList
Returns:
string[] array of stylesheet files to include or NULL if none

Referenced by RenderAjax(), RenderBegin(), and RenderEnd().

QFormBase::RemoveControl ( strControlId  ) 

QFormBase::RemoveGrouping ( strGroupingId  ) 

QFormBase::Render (  )  [protected]

QFormBase::RenderAjaxHelper ( objControl  )  [protected]

Referenced by RenderAjax().

QFormBase::RenderChildren ( blnDisplayOutput = true  )  [protected]

References GetChildControls().

static QFormBase::Serialize ( QForm objForm  )  [static]

Parameters:
Form $objForm
Returns:
string the Serialized Form

References QForm::$FormStateHandler, $strPreviousRequestMode, and QRequestMode::Ajax.

Referenced by RenderAjax(), and RenderEnd().

QFormBase::TriggerMethod ( strId,
strMethodName 
)

Referenced by TriggerActions().

static QFormBase::Unserialize ( strPostDataState  )  [static]

Parameters:
string $strSerializedForm
Returns:
Form the Form object

References QForm::$FormStateHandler, and QType::Cast().

Referenced by Run().

QFormBase::ValidateControlAndChildren ( QControl objControl  )  [protected]

QFormBase::VarExport ( blnReturn = true  ) 


Member Data Documentation

QFormBase::$blnRenderedBodyTag = false [protected]

QFormBase::$blnRenderedCheckableControlArray [protected]

QFormBase::$EncryptionKey = null [static]

Reimplemented in QForm.

QFormBase::$FormStateHandler = 'QFormStateHandler' [static]

Reimplemented in QForm.

QFormBase::$intFormStatus [protected]

QFormBase::$intNextControlId = 1 [protected]

QFormBase::$objControlArray [protected]

QFormBase::$objDefaultWaitIcon = null [protected]

QFormBase::$objGroupingArray [protected]

QFormBase::$objPersistentControlArray = array() [protected]

QFormBase::$strCallType [protected]

QFormBase::$strCssClass [protected]

QFormBase::$strFormAttributeArray = array() [protected]

QFormBase::$strFormId [protected]

Referenced by Run().

QFormBase::$strHtmlIncludeFilePath [protected]

QFormBase::$strIgnoreJavaScriptFileArray = array() [protected]

Reimplemented in QForm.

QFormBase::$strIgnoreStyleSheetFileArray = array() [protected]

Reimplemented in QForm.

QFormBase::$strIncludedJavaScriptFileArray = array() [protected]

QFormBase::$strIncludedStyleSheetFileArray = array() [protected]

QFormBase::$strPreviousRequestMode = false [protected]

Referenced by Serialize().


The documentation for this class was generated from the following file: