Class Socialveo\Core\library\router\Route

InheritanceSocialveo\Core\library\router\Route » Phalcon\Mvc\Router\Route

Class Route

Property Details

$_allow protected property
protected array $_allow null
$_deny protected property
protected array $_deny null
$module protected property
protected string $module null
$whenMatch protected property
protected callable $whenMatch null

Method Details

__construct() public method

Phalcon\Mvc\Router\Route constructor

public void __construct ( $pattern, $paths null, $httpMethods null )
$pattern string
$paths mixed
$httpMethods mixed
checkMatch() public method

Match route

public boolean checkMatch ( )
getAccessRules() public method

Get access rules

public array getAccessRules ( )
getHttpMethods() public method

Return route available http methods

public string getHttpMethods ( )
isAllow() public method

Check is allow route access for current user

public boolean isAllow ( )
isDeny() public method

Check is deny route access for current user

public boolean isDeny ( )
setAllow() public method

public $this setAllow ( $roles )
$roles array|string
setDeny() public method

public $this setDeny ( $roles )
$roles array|string
whenMatch() public method

Set callable for match route

public mixed whenMatch ( $callback )
$callback