Overview

Namespaces

  • MvcCore
    • Ext
      • Auth
        • Virtual
      • Debug
        • Tracy
      • Form
        • Core
        • Validators
      • Request
      • Router
        • Lang
      • View
        • Helpers
  • None

Classes

  • AuthPanel
  • IncludePanel
  • MvcCorePanel
  • RoutingPanel
  • SessionPanel
  • Overview
  • Namespace
  • Class
  • Tree

Class RoutingPanel

MvcCore\Ext\Debug\Tracy\RoutingPanel implements Tracy\IBarPanel
Namespace: MvcCore\Ext\Debug\Tracy
Located at ext-debug-tracy-routing/src/MvcCore/Ext/Tracy/RoutingPanel.php
Methods summary
public string
# getId( )

Return unique panel id.

Return unique panel id.

Returns

string
public string
# getTab( )

Render tab (panel header). Set up view data if necessary.

Render tab (panel header). Set up view data if necessary.

Returns

string
public string
# getPanel( )

Render panel (panel content). Set up view data if necessary.

Render panel (panel content). Set up view data if necessary.

Returns

string
public static object
# SetUpViewData( )

Set up view data, if data are completed, return them directly. - complete basic \MvcCore core objects to complere other view data - complete panel title - complete routes table items - set result data into static field

Set up view data, if data are completed, return them directly. - complete basic \MvcCore core objects to complere other view data - complete panel title - complete routes table items - set result data into static field

Returns

object
protected static object
# completeItem( MvcCore\Route & $currentRoute = NULL, MvcCore\Route & $route = NULL, MvcCore\Request & $request = NULL )

Complete single route table row view data. In very special cases $currentRoute object shoud be null and also $route object shoud be null, those cases are mostly some combinations with server errors (500) or not found errors (404). - first column - second column - third column - fourth column only if route is the same ass current route - complete result collection and returns it

Complete single route table row view data. In very special cases $currentRoute object shoud be null and also $route object shoud be null, those cases are mostly some combinations with server errors (500) or not found errors (404). - first column - second column - third column - fourth column only if route is the same ass current route - complete result collection and returns it

Parameters

$currentRoute
$route
$request

Returns

object
protected static array
# completeParams( MvcCore\Route & $route, boolean $params = array(), $skipCtrlActionRecord = TRUE )

Complete third or fourth column params collection template string.

Complete third or fourth column params collection template string.

Parameters

$route
$params
$params
$skipCtrlActionRecord
$skipCtrlActionRecord

Returns

array
protected static string
# completeFormatedPatternOrReverseCharGroups( string $str, string[] $brackets )

Add into route regular expression pattern or reverse ($route->Pattern or $route->Reverse) around all detected character groups special html span elements to color them in template.

Add into route regular expression pattern or reverse ($route->Pattern or $route->Reverse) around all detected character groups special html span elements to color them in template.

Parameters

$str
route pattern string or reverse string
$brackets
array with specified opening bracket and closing bracket type

Returns

string
protected static array[]
# completeMatchingBracketsPositions( string $str, string $begin, string $end )

Complete collection with first level matching brackets, info about substrings between them and theur opening and closing positions to complete task with character group coloring in local method self::completeFormatedPatternOrReverseCharGroups().

Complete collection with first level matching brackets, info about substrings between them and theur opening and closing positions to complete task with character group coloring in local method self::completeFormatedPatternOrReverseCharGroups().

Parameters

$str
string to search brackets in
$begin
opening bracket char
$end
closing bracket char

Returns

array[]
protected static 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

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

Parameters

$ctrlName
$actionName

Returns

array
protected static string
# getRouteLocalizedRecord( MvcCore\Route & $route, string $routeRecordKey = '', string $lang = '', string $defaultLang = '' )

Get route non-localized or localized record - 'Pattern' and 'Reverse'

Get route non-localized or localized record - 'Pattern' and 'Reverse'

Parameters

$route
$routeRecordKey
$lang
$defaultLang

Returns

string
Constants summary
string VERSION

MvcCore Extension - Debug - Tracy Panel - Routing - version: Comparation by PHP function version_compare();

MvcCore Extension - Debug - Tracy Panel - Routing - version: Comparation by PHP function version_compare();

See

http://php.net/manual/en/function.version-compare.php
# '4.2.0'
Properties summary
public static string $Id

Debug panel id

Debug panel id

# 'routing-panel'
protected static stdClass $viewData

Prepared view data, only once, to render debug tab and debug panel content.

Prepared view data, only once, to render debug tab and debug panel content.

# NULL
MvcCore API documentation generated by ApiGen