Method |
Description |
|
appliesTo ( Node $node ) : boolean |
True if the given node (already executed) matches with the specs defined
in this action command. |
|
execute ( Closure $callback ) : NodeActionCommand |
As an action, execute the given callback. |
|
getActionData ( ) : array |
Returns the action information. |
|
hangup ( integer $cause ) : NodeActionCommand |
As an action, hangup the call with the given cause. |
|
isActionExecute ( ) : boolean |
True if a callback should be executed as an action. |
|
isActionHangup ( ) : boolean |
True if hangup should be done as an action. |
|
isActionJumpTo ( ) : boolean |
True if we have to jump to another node as an action. |
|
jumpAfterEval ( Closure $callback ) : NodeActionCommand |
As an action, evaluate the given callback and jump to the node (name)
returned by it. |
|
jumpTo ( string $name ) : NodeActionCommand |
As an action, jump to the given node (name). |
|
onCancel ( ) : NodeActionCommand |
Do the configured action when the node has been cancelled. |
|
onComplete ( ) : NodeActionCommand |
Do the configured action when the node has completed successfully. |
|
onMaxAttemptsReached ( ) : NodeActionCommand |
Do the configured action when the node finished without a valid input
from the user. |
|
whenNode ( string $name ) : NodeActionCommand |
Sets the controlled node. |
|
withInput ( string $input ) : NodeActionCommand |
Do the configured action when the node has completed successfully with
this specific input from the user. Very useful for menues. |
|