Class RoutingPanel
Responsibility - render used routes by application router and mark and render matched route with request params.
- MvcCore\Ext\Debugs\Tracys\RoutingPanel implements Tracy\IBarPanel
Located at ext-debug-tracy-routing/src/MvcCore/Ext/Debugs/Tracys/RoutingPanel.php
public
string
|
|
public
string
|
|
public
string
|
|
public
object
|
#
getViewData( )
Set up view data, if data are completed, return them directly. - complete basic \MvcCore core objects to complete other view data - complete panel title - complete routes table items - set result data into static field |
protected
|
#
initMainApplicationProperties( )
Initialize main application properties into current |
protected
|
#
initViewPanelTitle( )
Initialize panel title. Set into panel title current route name
with optional |
protected
|
|
protected
stdClass
|
#
initViewPanelTableRow(
Complete single route table row view data. |
protected
array
|
#
completeParams(
Complete fourth column (and fifth if matched) params collection string for template. |
protected
string
|
#
completeFormatedPatternCharGroups( string $str, string[] $brackets )
Add into route regular expression pattern or reverse ($route->GetPattern() or $route->GetReverse()) around all detected character groups special html span elements to color them in template. |
protected
array[]
|
#
completeMatchingBracketsPositions( string $str, string $begin, string $end )
Complete collection with first level matching brackets, info about substrings between them and their opening and closing positions to complete task with character group colouring in local method $this->completeFormatedPatternOrReverseCharGroups(). |
protected
array
|
#
completeCtrlActionLink( string $ctrlName = '', string $actionName = '' )
Try to complete editor link by controller class name and it's action by PHP reflection object if controller class exist and it's possible by loaded controller class to create reflection object to complete link properties. Result is returned as array containing: 0 - editor link URL 1 - link text |
protected
string|array
|
#
getRouteLocalizedRecord(
Get route non-localized or localized record - 'Pattern' and 'Reverse' |
protected
|
|
private
|
string |
VERSION
MvcCore Extension - Debug - Tracy - Routing - version: Comparison by PHP function version_compare(); |
#
'5.0.0'
|
protected
|
$app
Reference to main application instance. |
#
NULL
|
protected
string|null
|
$toolClass
Full class name for configured core tools class. |
#
NULL
|
protected
|
$request
Reference to current application request instance. |
#
NULL
|
protected
string|null
|
$requestLang
Currently requested language. |
#
NULL
|
protected
array
|
$requestParams
Currently requested params with escaped |
#
[]
|
protected
|
$router
Reference to current application router instance. |
#
NULL
|
protected
|
$routes
Reference to all initialized application routes in router. |
#
[]
|
protected
|
$currentRoute
Reference to route matched by current request. |
#
NULL
|
protected
string|null
|
$defaultLang
Default language for possible multi-language router version. |
#
NULL
|
protected
stdClass|null
|
$view
Prepared view data, only once, to render debug tab and debug panel content. |
#
NULL
|
private
string
|
$_debugCode
Debug code for this panel, printed at panel bottom. |
#
''
|