Property | Type | Description | |
---|---|---|---|
$action | Action instance. |
Method | Description | |
---|---|---|
__construct ( Themosis\Hook\IHook $action ) | ||
listen ( string $name, Closure | string $callback, string | boolean $logged = 'both' ) : Themosis\Ajax\IAjax | Listen to AJAX API calls. | |
run ( $name, $logged, $callback ) : Themosis\Ajax\IAjax | Function in place for backwards compatibility. |
public __construct ( Themosis\Hook\IHook $action ) | ||
$action | Themosis\Hook\IHook |
public listen ( string $name, Closure | string $callback, string | boolean $logged = 'both' ) : Themosis\Ajax\IAjax | ||
$name | string | The AJAX action name. |
$callback | Closure | string | A callback function name, a closure or a string defining a class and its method. |
$logged | string | boolean | true, false or 'both' type of users. |
return | Themosis\Ajax\IAjax |
public run ( $name, $logged, $callback ) : Themosis\Ajax\IAjax | ||
$name | ||
$logged | ||
$callback | ||
return | Themosis\Ajax\IAjax |