Mvc\Router\GroupInterface

Source on GitHub Methods abstract public setHostname (mixed $hostname) ... abstract public getHostname () ... abstract public setPrefix (mixed $prefix) ... abstract public getPrefix () ... abstract public beforeMatch (mixed $beforeMatch) ... abstract public getBeforeMatch () ... abstract public setPaths (mixed $paths) ... abstract public getPaths () ... abstract public getRoutes () ... abstract public add (mixed $pattern, [mixed $paths], [mixed $httpMethods]) ... abstract public addGet (mixed $

Mvc\Router\Group::getPaths

public getPaths () Returns the common paths defined for this group

Mvc\Router\Group::clear

public clear () Removes all the pre-defined routes

Mvc\Router\Group::beforeMatch

public beforeMatch (mixed $beforeMatch) Sets a callback that is called if the route is matched. The developer can implement any arbitrary conditions here If the callback returns false the route is treated as not matched

Mvc\Router\Group::getBeforeMatch

public getBeforeMatch () Returns the ‘before match’ callback if any

Mvc\Router\Group::getPrefix

public getPrefix () Returns the common prefix for all the routes

Mvc\Router\Group::getRoutes

public getRoutes () Returns the routes added to the group

Mvc\Router\Group::getHostname

public getHostname () Returns the hostname restriction

Mvc\Router\Group::addDelete

public Phalcon\Mvc\Router\Route addDelete (string $pattern, [string/array $paths]) Adds a route to the router that only match if the HTTP method is DELETE

Mvc\Router\Group::addPost

public Phalcon\Mvc\Router\Route addPost (string $pattern, [string/array $paths]) Adds a route to the router that only match if the HTTP method is POST