Class QTextBoxBase
This class will render an HTML Textbox -- which can either be [input type="text"], [input type="password"] or [textarea] depending on the TextMode (see below).
Direct known subclasses
QTextBoxIndirect known subclasses
QAutocomplete, QAutocompleteBase, QFloatTextBox, QIntegerTextBox, QNumericTextBox, QSpinner, QSpinnerBase, QSpinnerGen, QUrlTextBox, QWriteBox, QAutocompleteGen, QCalendar, QCsvTextBox, QDatepickerBox, QDatepickerBoxBase, QDatepickerBoxGen, QDateTimeTextBox, QEmailTextBox
public
|
#
__construct(
Constructor for the QTextBox[Base] |
protected
|
|
public
|
#
SetPurifierConfig( strParameter $strParameter, mixValue $mixValue )
This function allows to set the Configuration for HTMLPurifier similar to the HTMLPurifierConfig::set() method from the HTMLPurifier API. |
public
|
#
ParsePostData( )
Parse the data posted back via the control. This function basically test for the Crossscripting rules applied to the QTextBox |
protected
|
|
protected
string
|
|
public
string|
|
#
RenderHtmlAttributes( null $attributeOverrides = null, null $styleOverrides = null )
Render HTML attributes for the purpose of drawing the tag. Text objects have a number of parameters specific to them, some of which we use for validation, and some of which are dual purpose. We render those here, rather than setting the attributes when those are set. |
public
boolean
|
|
public
|
|
protected
mixed
|
|
protected
|
|
public
array|boolean|integer|mixed|null|
|
|
public
mixed
|
|
public static
|
#
GetModelConnectorParams( )
Returns an description of the options available to modify by the designer for the code generator. |
OverrideAttributes(),
__call()
|
CommentEnd,
CommentStart
|
protected
integer
|
$intColumns
|
#
0
|
protected
string
|
$strText
|
#
null
|
protected
string
|
$strLabelForRequired
|
|
protected
string
|
$strLabelForRequiredUnnamed
|
|
protected
string
|
$strLabelForTooShort
|
|
protected
string
|
$strLabelForTooShortUnnamed
|
|
protected
string
|
$strLabelForTooLong
|
|
protected
string
|
$strLabelForTooLongUnnamed
|
|
protected
string
|
$strPlaceholder
|
#
''
|
protected
string
|
$strFormat
|
#
'%s'
|
protected
integer
|
$intMaxLength
|
#
0
|
protected
integer
|
$intMinLength
|
#
0
|
protected
integer
|
$intRows
|
#
0
|
protected
string
|
$strTextMode
Subclasses should not set this directly, but rather use the TextMode accessor |
|
protected
string
|
$strCrossScripting
|
|
protected
null
|
$objHTMLPurifierConfig
|
#
null
|
protected
boolean
|
$blnAutoTrim
|
#
false
|
protected
integer
|
$intSanitizeFilter
|
#
null
|
protected
mixed
|
$mixSanitizeFilterOptions
|
#
null
|
protected
integer
|
$intValidateFilter
|
#
null
|
protected
mixed
|
$mixValidateFilterOptions
|
#
null
|
protected
string
|
$strLabelForInvalid
|
#
null
|
$attributes,
$styles
|
public
integer
|
$Columns
is the "cols" html attribute (applicable for MultiLine textboxes) |
public
string
|
$Format
|
public
string
|
$Text
is the contents of the textbox, itself |
public
string|null
|
$Value
Returns the value of the text. If the text is empty, will return null. Subclasses can use this to return a specific type of data. |
public
string
|
$LabelForRequired
|
public
string
|
$LabelForRequiredUnnamed
|
public
string
|
$LabelForTooShort
|
public
string
|
$LabelForTooShortUnnamed
|
public
string
|
$LabelForTooLong
|
public
string
|
$LabelForTooLongUnnamed
|
public
string
|
$Placeholder
HTML5 Only. Placeholder text that gets erased once a user types. |
public
string
|
$CrossScripting
can be Allow, HtmlEntities, or Deny. Deny is the default. Prevents cross scripting hacks. HtmlEntities causes framework to automatically call php function htmlentities on the input data. Allow allows everything to come through without altering at all. USE "ALLOW" judiciously: using ALLOW on text entries, and then outputting that data WILL allow hackers to perform cross scripting hacks. |
public
integer
|
$MaxLength
is the "maxlength" html attribute (applicable for SingleLine textboxes) |
public
integer
|
$MinLength
is the minimum requred length to pass validation |
public
integer
|
$Rows
is the "rows" html attribute (applicable for MultiLine textboxes) |
public
string
|
$TextMode
a QTextMode item. Determines if its a single or multi-line textbox, and the "type" property of the input. |
public
boolean
|
$AutoTrim
to automatically remove white space from beginning and end of data |
public
integer
|
$SanitizeFilter
PHP filter constant to apply to incoming data |
public
mixed
|
$SanitizeFilterOptions
PHP filter constants or array to apply to SanitizeFilter option |
public
integer
|
$ValidateFilter
PHP filter constant to apply to validate with |
public
mixed
|
$ValidateFilterOptions
PHP filter constants or array to apply to ValidateFilter option |
public
mixed
|
$LabelForInvalid
PHP filter constants or array to apply to ValidateFilter option |
$AccessKey,
$AltText,
$BackColor,
$BorderCollapse,
$BorderColor,
$BorderStyle,
$BorderWidth,
$CssClass,
$Cursor,
$Data,
$Display,
$DisplayStyle,
$Enabled,
$FontBold,
$FontItalic,
$FontNames,
$FontOverline,
$FontSize,
$FontStrikeout,
$FontUnderline,
$ForeColor,
$Height,
$HorizontalAlign,
$Left,
$Margin,
$NoWrap,
$Opacity,
$OrderedListType,
$Overflow,
$Padding,
$Position,
$ReadOnly,
$TabIndex,
$ToolTip,
$Top,
$UnorderedListStyle,
$VerticalAlign,
$Width
|