PHP Class Dietcube\Events\ExecuteActionEvent

Inheritance: extends DietcubeEventAbstract
Show file Open project: mercari/dietcube

Protected Properties

Property Type Description
$executable
$result
$vars

Public Methods

Method Description
__construct ( Application $app, $executable, array $vars )
getApplication ( ) : Application
getExecutable ( ) : callable
getResult ( ) : string
getVars ( ) : array
setExecutable ( callable $executable )
setExecutableByHandler ( string $handler ) Set executable by valid handler.
setResult ( string $result )
setVars ( array $vars )

Method Details

__construct() public method

public __construct ( Application $app, $executable, array $vars )
$app Dietcube\Application
$vars array

getApplication() public method

public getApplication ( ) : Application
return Dietcube\Application

getExecutable() public method

public getExecutable ( ) : callable
return callable executable

getResult() public method

public getResult ( ) : string
return string

getVars() public method

public getVars ( ) : array
return array

setExecutable() public method

public setExecutable ( callable $executable )
$executable callable

setExecutableByHandler() public method

This is a shortcut method to create controller by shorter name. e.g. User::login
public setExecutableByHandler ( string $handler )
$handler string

setResult() public method

public setResult ( string $result )
$result string

setVars() public method

public setVars ( array $vars )
$vars array

Property Details

$executable protected property

protected $executable

$result protected property

protected $result

$vars protected property

protected $vars