class RouteMock in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony-cmf/routing/Tests/Routing/RouteMock.php \Symfony\Cmf\Component\Routing\Tests\Routing\RouteMock
Hierarchy
- class \Symfony\Component\Routing\Route implements \Symfony\Component\Routing\Serializable
- class \Symfony\Cmf\Component\Routing\Tests\Routing\RouteMock implements RouteObjectInterface
Expanded class hierarchy of RouteMock
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ RouteMock.php, line 18
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingView source
class RouteMock extends SymfonyRoute implements RouteObjectInterface {
private $locale;
public function setLocale($locale) {
$this->locale = $locale;
}
public function getContent() {
return null;
}
public function getDefaults() {
$defaults = array();
if (!is_null($this->locale)) {
$defaults['_locale'] = $this->locale;
}
return $defaults;
}
public function getRequirement($key) {
if (!$key == '_locale') {
throw new \Exception();
}
return $this->locale;
}
public function getRouteKey() {
return null;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Route:: |
private | property | ||
Route:: |
private | property | ||
Route:: |
private | property | ||
Route:: |
private | property | ||
Route:: |
private | property | ||
Route:: |
private | property | ||
Route:: |
private | property | ||
Route:: |
private | property | ||
Route:: |
private | property | ||
Route:: |
public | function | Adds defaults. | |
Route:: |
public | function | Adds options. | |
Route:: |
public | function | Adds requirements. | |
Route:: |
public | function | Compiles the route. | |
Route:: |
public | function | Returns the condition. | |
Route:: |
public | function | Gets a default value. | |
Route:: |
public | function | Returns the pattern for the host. | |
Route:: |
public | function | Returns the uppercased HTTP methods this route is restricted to. So an empty array means that any method is allowed. | |
Route:: |
public | function | Get an option value. | |
Route:: |
public | function | Returns the options. | |
Route:: |
public | function | Returns the pattern for the path. | |
Route:: |
public | function | Returns the pattern for the path. | |
Route:: |
public | function | Returns the requirements. | |
Route:: |
public | function | Returns the lowercased schemes this route is restricted to. So an empty array means that any scheme is allowed. | |
Route:: |
public | function | Checks if a default value is set for the given variable. | |
Route:: |
public | function | Checks if an option has been set. | |
Route:: |
public | function | Checks if a requirement is set for the given key. | |
Route:: |
public | function | Checks if a scheme requirement has been set. | |
Route:: |
private | function | ||
Route:: |
public | function | ||
Route:: |
public | function | Sets the condition. | |
Route:: |
public | function | Sets a default value. | |
Route:: |
public | function | Sets the defaults. | |
Route:: |
public | function | Sets the pattern for the host. | |
Route:: |
public | function | Sets the HTTP methods (e.g. 'POST') this route is restricted to. So an empty array means that any method is allowed. | |
Route:: |
public | function | Sets an option value. | |
Route:: |
public | function | Sets the options. | |
Route:: |
public | function | Sets the pattern for the path. | |
Route:: |
public | function | Sets the pattern for the path. | |
Route:: |
public | function | Sets a requirement for the given key. | |
Route:: |
public | function | Sets the requirements. | |
Route:: |
public | function | Sets the schemes (e.g. 'https') this route is restricted to. So an empty array means that any scheme is allowed. | |
Route:: |
public | function | ||
Route:: |
public | function | Constructor. | |
RouteMock:: |
private | property | ||
RouteMock:: |
public | function |
Get the content document this route entry stands for. If non-null,
the ControllerClassMapper uses it to identify a controller and
the content is passed to the controller. Overrides RouteObjectInterface:: |
|
RouteMock:: |
public | function |
Returns the defaults. Overrides Route:: |
|
RouteMock:: |
public | function |
Returns the requirement for the given key. Overrides Route:: |
|
RouteMock:: |
public | function |
Get the route key. Overrides RouteObjectInterface:: |
|
RouteMock:: |
public | function | ||
RouteObjectInterface:: |
constant | Field name for the content of the current route, if any. | ||
RouteObjectInterface:: |
constant | Field name for an explicit controller name to be used with this route | ||
RouteObjectInterface:: |
constant | Field name that will hold the route name that was matched. | ||
RouteObjectInterface:: |
constant | Field name of the route object that was matched. | ||
RouteObjectInterface:: |
constant | Field name for an explicit template to be used with this route. i.e. CmfContentBundle:StaticContent:index.html.twig |