xHTML-o-MATIC
A mini framework for handling PHP web frontends.
Loading...
Searching...
No Matches
xHTML_InputText Class Reference
+ Inheritance diagram for xHTML_InputText:
+ Collaboration diagram for xHTML_InputText:

Public Member Functions

 __construct ($parent)
 
 CreateCharValidatorHandler ($acceptedchars, $allowempty=FALSE, $isemail=FALSE, $setmaxchars=0, $isdate=FALSE, $ajaxtestscript=NULL)
 
 CreateEqualValidatorHandler ($forms)
 
 Render ()
 
 GetAllScriptDataForForm ()
 
- Public Member Functions inherited from xHTML_Input
 SetValue ($text)
 
 SetProperty ($name, $value)
 
 AddCSSClass ($classname)
 
- Public Member Functions inherited from xHTML_Item
 GetID ()
 
 SetID ($id)
 
 ToString ()
 
 GetParent ()
 
 ClearContent ()
 
 SetIDVisibility ($visible)
 

Protected Attributes

 $img
 
 $hasfilter
 
 $javascript_function_name
 
 $javascriptElement
 
- Protected Attributes inherited from xHTML_Input
 $parentForm
 
- Protected Attributes inherited from xHTML_Item
 $uniqid
 
 $tagname
 
 $contents
 
 $properties
 
 $autoclosed
 
 $bbenabled
 
 $parent
 

Additional Inherited Members

- Protected Member Functions inherited from xHTML_Item
 ClearProperty ($name)
 
 ReplaceContent ($content)
 
 AddContent ($content)
 
 CompactText ($text)
 
 AddContentBefore ($newContent)
 
 AddContentAfter ($newContent)
 

Constructor & Destructor Documentation

◆ __construct()

xHTML_InputText::__construct (   $parent)

Default constructor

Reimplemented from xHTML_Input.

Reimplemented in xHTML_InputPassword.

Member Function Documentation

◆ CreateCharValidatorHandler()

xHTML_InputText::CreateCharValidatorHandler (   $acceptedchars,
  $allowempty = FALSE,
  $isemail = FALSE,
  $setmaxchars = 0,
  $isdate = FALSE,
  $ajaxtestscript = NULL 
)

Creates a new filter to only accept provided characters

Parameters
string$acceptedcharsString containint accepted chars

◆ CreateEqualValidatorHandler()

xHTML_InputText::CreateEqualValidatorHandler (   $forms)

Creates a handler

Parameters
xHTML_Input[int]$forms

◆ GetAllScriptDataForForm()

xHTML_InputText::GetAllScriptDataForForm ( )

Gets all script data to be handled by a form

Returns
array ['functiondata']=HTMLJavascriptItem, ['fullfunctionname']=string with the full validator name

◆ Render()

xHTML_InputText::Render ( )

Renders this element

Reimplemented from xHTML_Item.


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