HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
TbFormButtonElement Class Reference

Public Member Functions

 getOn ()
 setOn ($value)
 render ()

Public Attributes

 $name

Protected Member Functions

 evaluateVisible ()

Private Attributes

 $_on

Detailed Description

TbActiveForm class file. New BSD License For available attributes and values read TbButton documentation.

See Also
TbButton

Definition at line 11 of file TbFormButtonElement.php.

Member Function Documentation

TbFormButtonElement::evaluateVisible ( )
protected

Evaluates the visibility of this element. This method will check the on property to see if the model is in a scenario that should have this string displayed.

Returns
boolean whether this element is visible.

Definition at line 59 of file TbFormButtonElement.php.

TbFormButtonElement::getOn ( )

Returns a value indicating under which scenarios this button is visible. If the value is empty, it means the button is visible under all scenarios. Otherwise, only when the model is in the scenario whose name can be found in this value, will the button be visible. See CModel::scenario for more information about model scenarios.

Returns
string scenario names separated by commas. Defaults to null.

Definition at line 29 of file TbFormButtonElement.php.

TbFormButtonElement::render ( )
Returns
string The rendered button.

Definition at line 45 of file TbFormButtonElement.php.

TbFormButtonElement::setOn (   $value)
Parameters
string$valuescenario names separated by commas.

Definition at line 37 of file TbFormButtonElement.php.

Member Data Documentation

TbFormButtonElement::$_on
private

Definition at line 19 of file TbFormButtonElement.php.

TbFormButtonElement::$name

Definition at line 17 of file TbFormButtonElement.php.


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