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

Public Member Functions

 __construct ()
 
 LinkScriptFromForm ($internal_array)
 
 GetAllScripts ()
 
 SetEqualityRestriction ($input1, $input2)
 
 ReplaceContent ($content)
 
 AddContent ($content)
 
 AddContentBefore ($newContent)
 
 AddContentAfter ($newContent)
 
 SetProperty ($name, $value)
 
 AddCSSClass ($classname)
 
 SetActionURI ($URI)
 
 SetMethod ($method)
 
- Public Member Functions inherited from xHTML_Item
 __construct ($content=NULL)
 
 GetID ()
 
 SetID ($id)
 
 Render ()
 
 ToString ()
 
 GetParent ()
 
 ClearContent ()
 
 SetIDVisibility ($visible)
 

Additional Inherited Members

- Protected Member Functions inherited from xHTML_Item
 ClearProperty ($name)
 
 CompactText ($text)
 
- Protected Attributes inherited from xHTML_Item
 $uniqid
 
 $tagname
 
 $contents
 
 $properties
 
 $autoclosed
 
 $bbenabled
 
 $parent
 

Constructor & Destructor Documentation

◆ __construct()

xHTML_Form::__construct ( )

Default constructor

Member Function Documentation

◆ AddContent()

xHTML_Form::AddContent (   $content)

Adds content to form

Parameters
mixed$content

Reimplemented from xHTML_Item.

◆ AddContentAfter()

xHTML_Form::AddContentAfter (   $newContent)

Adds content after this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddContentBefore()

xHTML_Form::AddContentBefore (   $newContent)

Adds content before this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddCSSClass()

xHTML_Form::AddCSSClass (   $classname)

Adds a CSS class to this object

Parameters
string$classnameCSS class name

Reimplemented from xHTML_Item.

◆ GetAllScripts()

xHTML_Form::GetAllScripts ( )

Gets all scripts and CREATE the whole parser one

Returns
xHTMLJavaScript[int]

◆ LinkScriptFromForm()

xHTML_Form::LinkScriptFromForm (   $internal_array)

Links scripts from a provided form INTERNAL USE ONLY

Parameters
array$internal_array['scriptdata']=xHTMLJavaScript, ['mainfunctionname']=string

◆ ReplaceContent()

xHTML_Form::ReplaceContent (   $content)

Replaces content

Parameters
string | xHTML_Item | array$contentContent to replace

Reimplemented from xHTML_Item.

◆ SetActionURI()

xHTML_Form::SetActionURI (   $URI)

Sets action URI

Parameters
string$URI

◆ SetEqualityRestriction()

xHTML_Form::SetEqualityRestriction (   $input1,
  $input2 
)

Set an equality restriction on several inputs (Should be called with param list)

◆ SetMethod()

xHTML_Form::SetMethod (   $method)

Sets method (get, post)

Parameters
string$method

◆ SetProperty()

xHTML_Form::SetProperty (   $name,
  $value 
)

Sets property

Parameters
string$name
string$value

Reimplemented from xHTML_Item.


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