PHP 클래스 QFormBase, qcodo

상속: extends QBaseClass
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$EncryptionKey
$FormStateHandler

보호된 프로퍼티들

프로퍼티 타입 설명
$blnRenderedBodyTag
$blnRenderedCheckableControlArray
$intFormStatus
$intNextControlId
$objControlArray
$objDefaultWaitIcon
$objGroupingArray
$objPersistentControlArray
$strCallType
$strCssClass
$strFormAttributeArray
$strFormId
$strHtmlIncludeFilePath
$strIgnoreJavaScriptFileArray
$strIgnoreStyleSheetFileArray
$strIncludedJavaScriptFileArray
$strIncludedStyleSheetFileArray
$strPreviousRequestMode
$strUrlHash

공개 메소드들

메소드 설명
AddControl ( QControl $objControl )
AddGrouping ( QControlGrouping $objGrouping )
CallDataBinder ( $strMethodName, QPaginatedControl $objPaginatedControl, $objParentControl = null )
ClearPollingProcessor ( ) : void Stops polling of polling processor
ClearUrlHashProcessor ( ) : void Stops polling of URL hash processor
EvaluateTemplate ( $strTemplate )
GenerateControlId ( )
GetAllControls ( )
GetAllGroupings ( )
GetChildControls ( $objParentObject )
GetControl ( $strControlId )
GetCustomAttribute ( string $strName ) : string Looks up the custom attribute by name, returning NULL if not set
GetErrorControls ( boolean $blnErrorsOnly = false ) : QControl[] Will return an array of QControls from the form which have either an error or warning message.
GetErrorMessages ( boolean $blnErrorsOnly = false ) : string[] Will return an array of Strings which will show all the error and warning messages in all the controls in the form.
GetGrouping ( $strGroupingId )
IsCheckableControlRendered ( $strControlId )
IsPollingActive ( ) : boolean Returns whether or not Polling is currently active
IsPostBack ( ) : boolean Returns whether or not this Form is being run due to a PostBack event (e.g. a ServerAction or AjaxAction)
PersistControl ( $objControl )
PrepForVarExport ( )
RemoveControl ( $strControlId )
RemoveGrouping ( $strGroupingId )
Run ( $strFormId, $strAlternateHtmlFile = null )
Serialize ( QForm $objForm ) : string
SetCustomAttribute ( string $strName, string $strValue ) : void Allows you to set or clear custom attributes on the
tag, itself, e.g. things like autocomplete=false, etc.
SetPollingProcessor ( string $strMethodName, object $objParentControl = null, integer $intPollingInterval = 2500 ) : void Adds polling to the QForm
SetUrlHashProcessor ( string $strMethodName, Object $objParentControl = null, integer $intUrlHashPollingInterval = 250 ) : void If the QForm should process the URL hash value after initial rendering, set the PHP method name (and parent object) to be called to process the hash on initial load. Method specified should be an Event Handler, where the $strParameter passed in will be the value of the hash value (if any). If no parent object is specified, this QForm will be assumed.
TriggerMethod ( $strId, $strMethodName )
Unserialize ( $strPostDataState ) : Form
__get ( $strName )
__set ( $strName, $mixValue )

보호된 메소드들

메소드 설명
Form_Create ( )
Form_Exit ( )
Form_Load ( )
Form_PreRender ( )
Form_Run ( )
Form_Validate ( )
Polling_Process ( $strFormId, $strControlId, $strParameter )
ProcessJavaScriptList ( string $strJavaScriptFileList ) : string[] 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".
ProcessStyleSheetList ( string $strStyleSheetFileList ) : string[] 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".
Render ( )
RenderAjax ( )
RenderAjaxHelper ( $objControl )
RenderBegin ( $blnDisplayOutput = true )
RenderChildren ( $blnDisplayOutput = true )
RenderEnd ( $blnDisplayOutput = true )
TriggerActions ( $strControlIdOverride = null )
UrlHashProxy_Process ( $strFormId, $strControlId, $strParameter )
ValidateControlAndChildren ( QControl $objControl )
__construct ( ) This exists to prevent inadverant "New"

메소드 상세

AddControl() 공개 메소드

public AddControl ( QControl $objControl )
$objControl QControl

AddGrouping() 공개 메소드

public AddGrouping ( QControlGrouping $objGrouping )
$objGrouping QControlGrouping

CallDataBinder() 공개 메소드

public CallDataBinder ( $strMethodName, QPaginatedControl $objPaginatedControl, $objParentControl = null )
$objPaginatedControl QPaginatedControl

ClearPollingProcessor() 공개 메소드

Stops polling of polling processor
public ClearPollingProcessor ( ) : void
리턴 void

ClearUrlHashProcessor() 공개 메소드

Stops polling of URL hash processor
public ClearUrlHashProcessor ( ) : void
리턴 void

EvaluateTemplate() 공개 메소드

public EvaluateTemplate ( $strTemplate )

Form_Create() 보호된 메소드

protected Form_Create ( )

Form_Exit() 보호된 메소드

protected Form_Exit ( )

Form_Load() 보호된 메소드

protected Form_Load ( )

Form_PreRender() 보호된 메소드

protected Form_PreRender ( )

Form_Run() 보호된 메소드

protected Form_Run ( )

Form_Validate() 보호된 메소드

protected Form_Validate ( )

GenerateControlId() 공개 메소드

public GenerateControlId ( )

GetAllControls() 공개 메소드

public GetAllControls ( )

GetAllGroupings() 공개 메소드

public GetAllGroupings ( )

GetChildControls() 공개 메소드

public GetChildControls ( $objParentObject )

GetControl() 공개 메소드

public GetControl ( $strControlId )

GetCustomAttribute() 공개 메소드

Looks up the custom attribute by name, returning NULL if not set
public GetCustomAttribute ( string $strName ) : string
$strName string
리턴 string

GetErrorControls() 공개 메소드

Will return an array of QControls from the form which have either an error or warning message.
public GetErrorControls ( boolean $blnErrorsOnly = false ) : QControl[]
$blnErrorsOnly boolean Return controls that have just errors (otherwise, show both warnings and errors)
리턴 QControl[] an array of controls representing the (multiple) errors and warnings

GetErrorMessages() 공개 메소드

Will return an array of Strings which will show all the error and warning messages in all the controls in the form.
public GetErrorMessages ( boolean $blnErrorsOnly = false ) : string[]
$blnErrorsOnly boolean Show only the errors (otherwise, show both warnings and errors)
리턴 string[] an array of strings representing the (multiple) errors and warnings

GetGrouping() 공개 메소드

public GetGrouping ( $strGroupingId )

IsCheckableControlRendered() 공개 메소드

public IsCheckableControlRendered ( $strControlId )

IsPollingActive() 공개 메소드

Returns whether or not Polling is currently active
public IsPollingActive ( ) : boolean
리턴 boolean

IsPostBack() 공개 메소드

Returns whether or not this Form is being run due to a PostBack event (e.g. a ServerAction or AjaxAction)
public IsPostBack ( ) : boolean
리턴 boolean

PersistControl() 공개 메소드

public PersistControl ( $objControl )

Polling_Process() 보호된 메소드

protected Polling_Process ( $strFormId, $strControlId, $strParameter )

PrepForVarExport() 공개 메소드

public PrepForVarExport ( )

ProcessJavaScriptList() 보호된 메소드

This WILL update the internal $strIncludedJavaScriptFileArray array.
protected ProcessJavaScriptList ( string $strJavaScriptFileList ) : string[]
$strJavaScriptFileList string
리턴 string[] array of script files to include or NULL if none

ProcessStyleSheetList() 보호된 메소드

This WILL update the internal $strIncludedStyleSheetFileArray array.
protected ProcessStyleSheetList ( string $strStyleSheetFileList ) : string[]
$strStyleSheetFileList string
리턴 string[] array of stylesheet files to include or NULL if none

RemoveControl() 공개 메소드

public RemoveControl ( $strControlId )

RemoveGrouping() 공개 메소드

public RemoveGrouping ( $strGroupingId )

Render() 보호된 메소드

protected Render ( )

RenderAjax() 보호된 메소드

protected RenderAjax ( )

RenderAjaxHelper() 보호된 메소드

protected RenderAjaxHelper ( $objControl )

RenderBegin() 보호된 메소드

protected RenderBegin ( $blnDisplayOutput = true )

RenderChildren() 보호된 메소드

protected RenderChildren ( $blnDisplayOutput = true )

RenderEnd() 보호된 메소드

protected RenderEnd ( $blnDisplayOutput = true )

Run() 공개 정적인 메소드

public static Run ( $strFormId, $strAlternateHtmlFile = null )

Serialize() 공개 정적인 메소드

public static Serialize ( QForm $objForm ) : string
$objForm QForm
리턴 string the Serialized Form

SetCustomAttribute() 공개 메소드

Allows you to set or clear custom attributes on the tag, itself, e.g. things like autocomplete=false, etc.
public SetCustomAttribute ( string $strName, string $strValue ) : void
$strName string the name of the attribute
$strValue string the value of the attribute, or NULL if you no longer want the attribute
리턴 void

SetPollingProcessor() 공개 메소드

Adds polling to the QForm
public SetPollingProcessor ( string $strMethodName, object $objParentControl = null, integer $intPollingInterval = 2500 ) : void
$strMethodName string name of the event handling method to be called
$objParentControl object optional object that contains the method (uses the QForm if none is specified)
$intPollingInterval integer the interval (in ms) the polling will occur (optional, default is 2500ms)
리턴 void

SetUrlHashProcessor() 공개 메소드

If the QForm should process the URL hash value after initial rendering, set the PHP method name (and parent object) to be called to process the hash on initial load. Method specified should be an Event Handler, where the $strParameter passed in will be the value of the hash value (if any). If no parent object is specified, this QForm will be assumed.
public SetUrlHashProcessor ( string $strMethodName, Object $objParentControl = null, integer $intUrlHashPollingInterval = 250 ) : void
$strMethodName string name of the event handling method to be called
$objParentControl Object optional object that contains the method
$intUrlHashPollingInterval integer the interval (in ms) on how often the URL is reprocessed (optional, default is 250ms)
리턴 void

TriggerActions() 보호된 메소드

protected TriggerActions ( $strControlIdOverride = null )

TriggerMethod() 공개 메소드

public TriggerMethod ( $strId, $strMethodName )

Unserialize() 공개 정적인 메소드

public static Unserialize ( $strPostDataState ) : Form
리턴 Form the Form object

UrlHashProxy_Process() 보호된 메소드

protected UrlHashProxy_Process ( $strFormId, $strControlId, $strParameter )

ValidateControlAndChildren() 보호된 메소드

protected ValidateControlAndChildren ( QControl $objControl )
$objControl QControl

__construct() 보호된 메소드

This exists to prevent inadverant "New"
protected __construct ( )

__get() 공개 메소드

public __get ( $strName )

__set() 공개 메소드

public __set ( $strName, $mixValue )

프로퍼티 상세

$EncryptionKey 공개적으로 정적으로 프로퍼티

public static $EncryptionKey

$FormStateHandler 공개적으로 정적으로 프로퍼티

public static $FormStateHandler

$blnRenderedBodyTag 보호되어 있는 프로퍼티

protected $blnRenderedBodyTag

$blnRenderedCheckableControlArray 보호되어 있는 프로퍼티

protected $blnRenderedCheckableControlArray

$intFormStatus 보호되어 있는 프로퍼티

protected $intFormStatus

$intNextControlId 보호되어 있는 프로퍼티

protected $intNextControlId

$objControlArray 보호되어 있는 프로퍼티

protected $objControlArray

$objDefaultWaitIcon 보호되어 있는 프로퍼티

protected $objDefaultWaitIcon

$objGroupingArray 보호되어 있는 프로퍼티

protected $objGroupingArray

$objPersistentControlArray 보호되어 있는 프로퍼티

protected $objPersistentControlArray

$strCallType 보호되어 있는 프로퍼티

protected $strCallType

$strCssClass 보호되어 있는 프로퍼티

protected $strCssClass

$strFormAttributeArray 보호되어 있는 프로퍼티

protected $strFormAttributeArray

$strFormId 보호되어 있는 프로퍼티

protected $strFormId

$strHtmlIncludeFilePath 보호되어 있는 프로퍼티

protected $strHtmlIncludeFilePath

$strIgnoreJavaScriptFileArray 보호되어 있는 프로퍼티

protected $strIgnoreJavaScriptFileArray

$strIgnoreStyleSheetFileArray 보호되어 있는 프로퍼티

protected $strIgnoreStyleSheetFileArray

$strIncludedJavaScriptFileArray 보호되어 있는 프로퍼티

protected $strIncludedJavaScriptFileArray

$strIncludedStyleSheetFileArray 보호되어 있는 프로퍼티

protected $strIncludedStyleSheetFileArray

$strPreviousRequestMode 보호되어 있는 프로퍼티

protected $strPreviousRequestMode

$strUrlHash 보호되어 있는 프로퍼티

protected $strUrlHash