PHP 클래스 QControlBase, qcodo

Please note that not every control will utilize every single one of these properties. Keep in mind that Controls that are not Enabled or not Visible will not go through the form's Validation routine. All Controls must implement the following abstract functions:
  • {@link QControlBase::GetControlHtml()}
  • {@link QControlBase::ParsePostData()}
  • {@link QControlBase::Validate()}
상속: extends QBaseClass
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$blnActionsMustTerminate
$blnDisplay
$blnEnabled
$blnFontBold
$blnFontItalic
$blnFontOverline
$blnFontStrikeout
$blnFontUnderline
$blnIsBlockElement
$blnModified
$blnMoveable
$blnOnPage
$blnRendered
$blnRendering
$blnRequired
$blnVisible
$blnWrapperModified
$intOpacity
$intTabIndex
$mixCausesValidation
$objActionArray
$objChildControlArray
$objForm
$objParentControl
$strAccessKey BEHAVIOR
$strActionParameter
$strBackColor APPEARANCE
$strBorderColor
$strBorderStyle
$strBorderWidth
$strControlId MISC
$strCssClass
$strCursor
$strCustomAttributeArray
$strCustomStyleArray
$strDisplayStyle
$strFontNames
$strFontSize
$strForeColor
$strFormAttributes
$strHeight LAYOUT
$strHtmlAfter
$strHtmlBefore
$strInstructions
$strJavaScripts SETTINGS
$strLeft
$strName
$strOverflow
$strPosition
$strRenderMethod
$strStyleSheets
$strToolTip
$strTop
$strValidationError
$strWarning
$strWidth

공개 메소드들

메소드 설명
AddAction ( $objEvent, $objAction )
AddActionArray ( $objEvent, $objActionArray )
AddChildControl ( QControl $objControl )
AddCssClass ( string $strCssClassName ) This will add a CssClass name to the CssClass property (if it does not yet exist), updating the CssClass property accordingly.
Blink ( $strFromColor = '#ffff66', $strToColor = '#ffffff' )
CountChildControls ( )
CreatePersistent ( $strClassName, $objParentObject, $strControlId )
Focus ( )
GetActionAttributes ( )
GetAllActions ( $strEventType, $strActionType = null )
GetAttributes ( $blnIncludeCustom = true, $blnIncludeAction = true ) (e.g. textbox will likely add the maxlength html attribute, etc.)
GetChildControl ( $strControlId )
GetChildControlIndex ( $strControlId )
GetChildControls ( $blnUseNumericIndexes = true )
GetCustomAttribute ( $strName )
GetCustomAttributes ( )
GetCustomStyle ( $strName )
GetEndHtml ( )
GetEndScript ( )
GetJavaScriptForEvent ( $strEventName )
GetStyleAttributes ( ) a control's HTML "style" attribute
MarkAsModified ( )
MarkAsRendered ( )
MarkAsWrapperModified ( )
MoveChildControlDown ( $strControlId )
MoveChildControlUp ( $strControlId )
MoveDownInParent ( )
MoveUpInParent ( )
ParsePostData ( ) $_POST data to update its own values/properties based on what was returned to via the postback.
Persist ( )
PrepForVarExport ( )
Refresh ( ) If not yet rendered during this server/ajax event, will force the control to redraw/refresh Otherwise, this will do nothing
RemoveAllActions ( string $strEventName ) Removes all events for a given event name.
RemoveChildControl ( $strControlId, $blnRemoveFromForm )
RemoveChildControls ( $blnRemoveFromForm )
RemoveCssClass ( string $strCssClassName ) This will remove a CssClass name from the CssClass property (if it exists), updating the CssClass property accordingly.
RemoveCustomAttribute ( $strName )
RemoveCustomStyle ( $strName )
Render ( $blnDisplayOutput = true ) it is by default), or it will return the rendered HTML as a string.
RenderAjax ( $blnDisplayOutput = true )
RenderWithError ( $blnDisplayOutput = true )
ResetFlags ( ) called by user code.
ResetOnPageStatus ( )
SetCustomAttribute ( $strName, $strValue )
SetCustomStyle ( $strName, $strValue )
SetFocus ( )
SetForm ( $objForm )
SetParentControl ( $objControl )
Validate ( ) have Validate() return true.
ValidationReset ( )
__construct ( $objParentObject, $strControlId = null )
__get ( $strName )
__set ( $strName, $mixValue )

보호된 메소드들

메소드 설명
GetControlHtml ( ) This method will render the control, itself, and will return the rendered HTML as a string
GetNonWrappedHtml ( )
PersistPrepare ( )
RenderChildren ( $blnDisplayOutput = true )
RenderHelper ( $mixParameterArray, $strRenderMethod ) if ($this->RenderHelper(func_get_args())) return;
RenderOutput ( $strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false )

메소드 상세

AddAction() 공개 메소드

public AddAction ( $objEvent, $objAction )

AddActionArray() 공개 메소드

public AddActionArray ( $objEvent, $objActionArray )

AddChildControl() 공개 메소드

public AddChildControl ( QControl $objControl )
$objControl QControl

AddCssClass() 공개 메소드

This will add a CssClass name to the CssClass property (if it does not yet exist), updating the CssClass property accordingly.
public AddCssClass ( string $strCssClassName )
$strCssClassName string

CountChildControls() 공개 메소드

public CountChildControls ( )

CreatePersistent() 공개 정적인 메소드

public static CreatePersistent ( $strClassName, $objParentObject, $strControlId )

Focus() 공개 메소드

public Focus ( )

GetActionAttributes() 공개 메소드

public GetActionAttributes ( )

GetAllActions() 공개 메소드

public GetAllActions ( $strEventType, $strActionType = null )

GetAttributes() 공개 메소드

(e.g. textbox will likely add the maxlength html attribute, etc.)
public GetAttributes ( $blnIncludeCustom = true, $blnIncludeAction = true )

GetChildControl() 공개 메소드

public GetChildControl ( $strControlId )

GetChildControlIndex() 공개 메소드

public GetChildControlIndex ( $strControlId )

GetChildControls() 공개 메소드

public GetChildControls ( $blnUseNumericIndexes = true )

GetControlHtml() 추상적인 보호된 메소드

This method will render the control, itself, and will return the rendered HTML as a string
abstract protected GetControlHtml ( )

GetCustomAttribute() 공개 메소드

public GetCustomAttribute ( $strName )

GetCustomAttributes() 공개 메소드

public GetCustomAttributes ( )

GetCustomStyle() 공개 메소드

public GetCustomStyle ( $strName )

GetEndHtml() 공개 메소드

public GetEndHtml ( )

GetEndScript() 공개 메소드

public GetEndScript ( )

GetJavaScriptForEvent() 공개 메소드

public GetJavaScriptForEvent ( $strEventName )

GetNonWrappedHtml() 보호된 메소드

protected GetNonWrappedHtml ( )

GetStyleAttributes() 공개 메소드

a control's HTML "style" attribute
public GetStyleAttributes ( )

MarkAsModified() 공개 메소드

public MarkAsModified ( )

MarkAsRendered() 공개 메소드

public MarkAsRendered ( )

MarkAsWrapperModified() 공개 메소드

MoveChildControlDown() 공개 메소드

public MoveChildControlDown ( $strControlId )

MoveChildControlUp() 공개 메소드

public MoveChildControlUp ( $strControlId )

MoveDownInParent() 공개 메소드

public MoveDownInParent ( )

MoveUpInParent() 공개 메소드

public MoveUpInParent ( )

ParsePostData() 추상적인 공개 메소드

$_POST data to update its own values/properties based on what was returned to via the postback.
abstract public ParsePostData ( )

Persist() 공개 메소드

public Persist ( )

PersistPrepare() 보호된 메소드

protected PersistPrepare ( )

PrepForVarExport() 공개 메소드

public PrepForVarExport ( )

Refresh() 공개 메소드

If not yet rendered during this server/ajax event, will force the control to redraw/refresh Otherwise, this will do nothing
public Refresh ( )

RemoveAllActions() 공개 메소드

Be sure and use a QFooEvent::EventName constant here.
public RemoveAllActions ( string $strEventName )
$strEventName string

RemoveChildControl() 공개 메소드

public RemoveChildControl ( $strControlId, $blnRemoveFromForm )

RemoveChildControls() 공개 메소드

public RemoveChildControls ( $blnRemoveFromForm )

RemoveCssClass() 공개 메소드

This will remove a CssClass name from the CssClass property (if it exists), updating the CssClass property accordingly.
public RemoveCssClass ( string $strCssClassName )
$strCssClassName string

RemoveCustomAttribute() 공개 메소드

public RemoveCustomAttribute ( $strName )

RemoveCustomStyle() 공개 메소드

public RemoveCustomStyle ( $strName )

Render() 공개 메소드

it is by default), or it will return the rendered HTML as a string.
public Render ( $blnDisplayOutput = true )

RenderAjax() 공개 메소드

public RenderAjax ( $blnDisplayOutput = true )

RenderChildren() 보호된 메소드

protected RenderChildren ( $blnDisplayOutput = true )

RenderHelper() 보호된 메소드

if ($this->RenderHelper(func_get_args())) return;
protected RenderHelper ( $mixParameterArray, $strRenderMethod )

RenderOutput() 보호된 메소드

protected RenderOutput ( $strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false )

RenderWithError() 공개 메소드

public RenderWithError ( $blnDisplayOutput = true )

ResetFlags() 공개 메소드

called by user code.
public ResetFlags ( )

ResetOnPageStatus() 공개 메소드

public ResetOnPageStatus ( )

SetCustomAttribute() 공개 메소드

..... onfocus="alert('You are about to edit this field')" nowrap="nowrap" blah="foo" />
public SetCustomAttribute ( $strName, $strValue )

SetCustomStyle() 공개 메소드

public SetCustomStyle ( $strName, $strValue )

SetFocus() 공개 메소드

public SetFocus ( )

SetForm() 공개 메소드

public SetForm ( $objForm )

SetParentControl() 공개 메소드

public SetParentControl ( $objControl )

Validate() 추상적인 공개 메소드

have Validate() return true.
abstract public Validate ( )

ValidationReset() 공개 메소드

public ValidationReset ( )

__construct() 공개 메소드

public __construct ( $objParentObject, $strControlId = null )

__get() 공개 메소드

public __get ( $strName )

__set() 공개 메소드

public __set ( $strName, $mixValue )

프로퍼티 상세

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

protected $blnActionsMustTerminate

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

protected $blnDisplay

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

protected $blnEnabled

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

protected $blnFontBold

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

protected $blnFontItalic

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

protected $blnFontOverline

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

protected $blnFontStrikeout

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

protected $blnFontUnderline

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

protected $blnIsBlockElement

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

protected $blnModified

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

protected $blnMoveable

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

protected $blnOnPage

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

protected $blnRendered

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

protected $blnRendering

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

protected $blnRequired

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

protected $blnVisible

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

protected $blnWrapperModified

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

protected $intOpacity

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

protected $intTabIndex

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

protected $mixCausesValidation

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

protected $objActionArray

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

protected $objChildControlArray

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

protected $objForm

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

protected $objParentControl

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

BEHAVIOR
protected $strAccessKey

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

protected $strActionParameter

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

APPEARANCE
protected $strBackColor

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

protected $strBorderColor

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

protected $strBorderStyle

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

protected $strBorderWidth

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

MISC
protected $strControlId

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

protected $strCssClass

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

protected $strCursor

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

protected $strCustomAttributeArray

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

protected $strCustomStyleArray

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

protected $strDisplayStyle

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

protected $strFontNames

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

protected $strFontSize

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

protected $strForeColor

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

protected $strFormAttributes

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

LAYOUT
protected $strHeight

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

protected $strHtmlAfter

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

protected $strHtmlBefore

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

protected $strInstructions

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

SETTINGS
protected $strJavaScripts

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

protected $strLeft

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

protected $strName

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

protected $strOverflow

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

protected $strPosition

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

protected $strRenderMethod

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

protected $strStyleSheets

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

protected $strToolTip

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

protected $strTop

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

protected $strValidationError

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

protected $strWarning

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

protected $strWidth