
Public Member Functions | |
| __construct ($actions) | |
| Creates a new toggle action. | |
| getInvocation () | |
Static Public Member Functions | |
| static | createFromXML ($attrs, $children) |
A toggle action takes an array of other actions. Each time the toggle action is invoked by JavaScript, it executes another action in the array. When it reaches the end of the array, it goes back to the beginning. If you have two actions to execute, then you can create a traditional light-switch-like two-state toggle.
Definition at line 13 of file TKToggleAction.php5.
| TKToggleAction::__construct | ( | $ | actions | ) |
Creates a new toggle action.
| $actions | [array]: array of TKAction's to toggle between |
Definition at line 22 of file TKToggleAction.php5.
References TKAction::addExtraJS().
| static TKToggleAction::createFromXML | ( | $ | attrs, | |
| $ | children | |||
| ) | [static] |
For internal use only.
Reimplemented from TKAction.
Definition at line 60 of file TKToggleAction.php5.
| TKToggleAction::getInvocation | ( | ) |
For internal use only.
Reimplemented from TKAction.
Definition at line 55 of file TKToggleAction.php5.
1.5.6