Trait InternalInits
Methods summary
public
MvcCore\Ext\Routers\Localizations\Route
|
#
InitAll( )
Initialize all possible protected values (match , reverse etc...) for
all configured localizations defined in localized router. This method is
not recommended to use in production mode, it's designed mostly for
development purposes, to see what could be inside route object.
Initialize all possible protected values (match , reverse etc...) for
all configured localizations defined in localized router. This method is
not recommended to use in production mode, it's designed mostly for
development purposes, to see what could be inside route object.
Returns
|
protected
|
#
initMatchAndReverse( string $localization = NULL )
Initialize properties match , reverse and other internal properties
about those values under specific localization key only. This method
is called when there is necessary to prepare localized pattern value
for: a) PHP preg_match_all() route match processing, b) for reverse
value for later self URL building. This method is usually called in core
request routing process from \MvcCore\Router::Matches(); method on each
route.
Initialize properties match , reverse and other internal properties
about those values under specific localization key only. This method
is called when there is necessary to prepare localized pattern value
for: a) PHP preg_match_all() route match processing, b) for reverse
value for later self URL building. This method is usually called in core
request routing process from \MvcCore\Router::Matches(); method on each
route.
Parameters
- $localization
Lower case language code, optionally with
dash and upper case locale code.
Throws
LogicException Route configuration property is missing.
InvalidArgumentException Wrong route pattern format.
|
protected
|
#
initReverse( string $localization = NULL )
Initialize property reverse and other internal properties about this
value under specific localization key only. This method is called, when
there is necessary to prepare it for: a) URL building, b) for request
routing, when there is configured match property directly an when is
necessary to initialize route flags from reverse to complete correctly
subject to match.
Initialize property reverse and other internal properties about this
value under specific localization key only. This method is called, when
there is necessary to prepare it for: a) URL building, b) for request
routing, when there is configured match property directly an when is
necessary to initialize route flags from reverse to complete correctly
subject to match.
Parameters
- $localization
Lower case language code, optionally with
dash and upper case locale code.
Throws
LogicException Route configuration property is missing.
InvalidArgumentException Wrong route pattern format.
|