Class: TTK_Actions

Source Location: Program_Root/ticatk/actions.inc

Class Overview

TTK_TKNode
   |
   --TTK_Actions

TicaTK Actions Management

Author(s):

Version:

  • $Revision: 1.7 $

Copyright:

  • © 2001, 2002, 2003 Coleebris

Variables

Methods


Child classes:

TTK_Execute, TTK_ActionDef

Inherited Variables

Inherited Methods

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

TicaTK Actions Management
Base class for TTK_ActionDef & TTK_Execute

Tags:

[ Top ]


Class Variables


Class Methods

add_acclose

DomNode add_acclose ( [$target = false] )

Add an action close

Tags:

Parameters:

  • string $target - Target object's id

[ Top ]

add_acexecuteactiondef

DomNode add_acexecuteactiondef ( $actiondef )

Execute an ActionDef

Tags:

Parameters:

  • string $actiondef - ActionDef id

[ Top ]

add_acexitttk

DomNode add_acexitttk ( )

Cleanup and close TicaTK Window

Tags:

Parameters:

[ Top ]

add_acloadxml

DomNode add_acloadxml ( $src, [$actiondef = false] )

Add an action load XML

Tags:

Parameters:

  • string $src - specify url to load
  • string $actiondef - TTK_ActionDef Id overwrite actiondef id sent on request (normaly, self id is sent)

[ Top ]

add_acmrginterface

DomNode add_acmrginterface ( [$mountpoint = false] )

Add an action merge interface

Tags:

Parameters:

  • string $mountpoint - Specify where to mount the childs object

[ Top ]

add_acmsgbox

DomNode add_acmsgbox ( $text, $type, $oklabel, $cancellabel )

Add an action Message Box
if a cancel label is set, users can interrupt actions execution with the cancel button

Tags:

Parameters:

  • string $text - Text to display
  • string $type - ("info" | "question" | "warning")
  • string $oklabel - Text to display in the ok button
  • string $cancellabel - Text to display in the cancel button

[ Top ]

add_acsetexthtmlcontent

DomNode add_acsetexthtmlcontent ( $target, $content, [$autoresizewidth = false], [$autoresizeheight = false] )

Inject html content inside an TTK_Container

Tags:

Parameters:

  • string $target - TTK_Container id
  • string $content - html data
  • boolean $autoresizewidth - Resize window's width to fully display content
  • boolean $autoresizeheight - Resize window's height to fully display content

[ Top ]

add_acsetformfield

DomNode add_acsetformfield ( $containerid, $formname, $fieldname, $value )

Update a form field value

Tags:

Parameters:

  • string $containerid - TTK_Container id
  • string $formname - form "name" attribute of form which contain the field
  • string $fieldname - field name == name attribute of "input" tag

[ Top ]

add_acset_attribute

DomNode add_acset_attribute ( $id, $attr, $value )

Add an action set attribute

Tags:

Parameters:

  • string $id - Target object's id
  • string $attr - attribute name
  • string $value - attribute value

[ Top ]

add_acsubmitform

DomNode add_acsubmitform ( $containerid, $formname, $submitor )

Submit a form

Tags:

Parameters:

  • string $containerid - TTK_Container id
  • string $formname - form "name" attribute
  • string $submitor - if the form contain an input named "TTK_SubmitorId", it's value will take the value of $submitor before submitting

[ Top ]


Documention generated on Mon, 17 Feb 2003 16:18:23 +0100 by phpDocumentor 1.1.0