PHP Interface Themosis\Ajax\IAjax

ファイルを表示 Open project: themosis/framework

Public Methods

Method Description
listen ( string $action, Closure | string $callback, string | boolean $logged = 'both' ) Listen to AJAX API calls.

Method Details

listen() public method

Listen to AJAX API calls.
public listen ( string $action, Closure | string $callback, string | boolean $logged = 'both' )
$action string The AJAX action name.
$callback Closure | string
$logged string | boolean true, false or 'both' type of users.