Child classes:
Inherited Variables
Inherited Methods
Class: TTK_Widget
- constructor TTK_Widget ( &$ticatk, [$id = false] )
- TTK_Widget constructor
- label_format ( $v )
- Html format trim() + htmlentities()
- set_img ( $attname, $imgsrc, [$local = false] )
- As set_attr() with automatic adding of image size
- watch_attr ( $attr, $callback )
- Register a callback which will be called whenever this widget have specified attribute modified by the client The callback will be called with two arguments : this object and the attribute name
- watch_close ( $callback )
- Register a callback which will be called whenever this widget is closed by the client The callback will be called with one argument : this object id
Class: TTK_TKNode
- constructor TTK_TKNode ( &$ticatk, &$doc, [$id = false] )
- TTK_TKNode Constructor
- &append_child ( $obj )
- Append a node
- close ( )
- Delete the node
- get_attr ( $attr )
- Get value of a node attribute
- get_bool_attr ( $attr )
- Get boolean value of a node attribute
- &get_child ( $id )
- Get a child by id.
- get_childs ( )
- Get node's childs
- get_id ( )
- Get the node's id
- get_id_attr ( $attr, [$return_object = true] )
- Get value of a node attribute with optional automatic from value to an instance of TTK_TKNode (or subclass)
- &get_parent ( )
- Get the parent node
- &get_ttk_object ( $node, $ticatk )
- Map and return a TTK object from a DomNode
- remove ( )
- Remove the node from parent
- set_attr ( $attr, $value, [$local = false] )
- Set value of a node attribute
- set_bool_attr ( $attr, $value, [$local = false] )
- Set boolean value of a node attribute
- set_id_attr ( $attr, $value, [$local = false] )
- Set value of a node attribute with automatic conversion of value to id if value is an instance of TTK_TKNode (or subclass)
- _associate ( $ticatk, $domnode )
- Associate a DomNode to this node
Class Details
TTK_Form
Tags:
- Package - TicaTK
- Author - CS <csollet@coleebris.com>
- Version - $Revision: 1.6 $
- Copyright - © 2001, 2002, 2003 Coleebris
[ Top ]
Class Variables
Class Methods
end_record
boolean end_record ( [$flush = true] )
Stop content recording and set buffered outputs as the form content
Tags:
Parameters:
- boolean $flush - Discard the buffered outputs
[ Top ]
get_action
string get_action ( )
Get the form's action
Tags:
Parameters:
[ Top ]
get_actiondef
mixed get_actiondef ( [$return_object = true] )
Set the actiondef to be launched on click if any
Tags:
Parameters:
- boolean $return_object - If set to false, the id of the ActionDef will be returned
[ Top ]
get_content
string get_content ( )
Get the form's content
Tags:
Parameters:
[ Top ]
get_enctype
string get_enctype ( )
Get the form's enctype
Tags:
Parameters:
[ Top ]
get_method
string get_method ( )
Get the form's method
Tags:
Parameters:
[ Top ]
get_submit_code
string get_submit_code ( [$quote = "'"] )
Must be used with input of type "submit" and in place to any call to "submit()" for processing thru TicaTK
Return the javascript string to execute
Tags:
Parameters:
[ Top ]
record_content
boolean record_content ( )
Start content recording
All subsequent outputs will be buffered to use as form content.
Tags:
- See - TTK_Form::end_record()
Parameters:
[ Top ]
set_action
void set_action ( [$value = false] )
Set the form's action
Tags:
Parameters:
- string $value - Default to $_SERVER["PHP_SELF"]
[ Top ]
set_actiondef
void set_actiondef ( $value )
Set the actiondef to be launched on click
Tags:
Parameters:
- mixed $value - TTK_ActionDef object or TTK_ActionDef id
[ Top ]
set_content
void set_content ( $value )
Set the form's content
Tags:
Parameters:
- string $value -
[ Top ]
set_enctype
void set_enctype ( $value )
Set the form's enctype
Tags:
Parameters:
- string $value -
[ Top ]
set_method
void set_method ( [$value = false] )
Set the form's method
Only POST should be used as TicaTK adds content that may overflow GET method.
Tags:
Parameters:
- string $value - Default to POST
[ Top ]
constructor TTK_Form
void constructor TTK_Form ( $ticatk, [$id = false], [$actiondef = false], [$content = false], [$action = false], [$method = false], [$enctype = false] )
TTK_Form constructor
Tags:
Parameters:
- object $ticatk - @see TTK_TicaTK
- string $id - the Form id (used as form's name)
- mixed $actiondef - TTK_ActionDef object or TTK_ActionDef id
- string $content -
- string $action - The ACTION form's attribute. Default to $_SERVER["PHP_SELF"]
- string $method - The METHOD form's attribute. Default to POST
- string $enctype - The ENCTYPE form's attribute. Default to none
[ Top ]
