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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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