Topics

Class Route

Information about current request route

Namespace: Ip

Constants:

string ENVIRONMENT_ADMIN 'admin'
string ENVIRONMENT_PUBLIC 'public'

Methods:

string plugin( )

Get plugin name which controller is being executed

Return values:

string
setPlugin( mixed $plugin )

Parameters:

mixed $plugin

Private

string controller( )

Gets controller file name relative to plugin dir

Return values:

string
string controllerClass( )

Get controller class

Return values:

string
setController( mixed $controller )

Parameters:

mixed $controller

Private

string action( )

Gets Controller action

Return values:

string controller action name
setAction( mixed $action )

Private

Sets MVC controller action
string environment( )

Get environment. 'admin' or 'public'

Return values:

string
setEnvironment( mixed $environment )

Set route environment 'admin' or public'

Parameters:

mixed $environment

Private

boolean isAdmin( )

Check if current route is of admin environment

Return values:

boolean
comments powered by Disqus