src/MvcCore/Ext/Debugs/Tracys/RoutingPanel.php
protected function initViewPanelTableRow (\MvcCore\IRoute & $route, $matched) {
		$route->InitAll();
		$row = new \stdClass;

		// first column
		$row->matched = $matched;

		// second column
		$row->method = $route->GetMethod();
		$row->method = $row->method === NULL ? '*' : $row->method;

		// third column
		$row->className = htmlSpecialChars('\\'.get_class($route), ENT_QUOTES, 'UTF-8');
		$routeMatch = $this->getRouteLocalizedRecord($route, 'GetMatch');
		$routeMatch = rtrim($routeMatch, 'imsxeADSUXJu'); // remove all modifiers
		$routeReverse = $this->getRouteLocalizedRecord($route, 'GetReverse');
		$routeDefaults = $this->getRouteLocalizedRecord($route, 'GetDefaults');
		$row->match = $this->completeFormatedPatternCharGroups($routeMatch, ['(', ')']);
		if ($routeReverse !== NULL) {
			$row->reverse = $this->completeFormatedPatternCharGroups($routeReverse, ['<', '>']);
		} else {
			$row->reverse = NULL;
		}

		// fourth column
		$row->routeName = $route->GetName();
		$row->ctrlActionName = $route->GetControllerAction();
		if ($row->ctrlActionName !== ':') {
			$row->ctrlActionLink = $this->completeCtrlActionLink($route->GetController(), $route->GetAction());
		} else {
			$row->ctrlActionName = NULL;
			$row->ctrlActionLink = NULL;
		}
		$routeReverseParams = $route->GetReverseParams() ?: []; // route could NULL reverse params when redirect route defined
		$paramsKeys = array_unique(array_merge($routeReverseParams, array_keys($routeDefaults)));
		$row->defaults = $this->completeParams($route, $paramsKeys, TRUE);

		// fifth column (only for matched route)
		$row->params = [];
		if ($matched) {
			$paramsAndReqestParams = array_merge($routeDefaults, $this->requestParams);
			$row->params = $this->completeParams($route, array_keys($paramsAndReqestParams), FALSE);
		}

		return $row;
	}
protected function initViewPanelTableRow (\MvcCore\IRoute & $route, $matched) {
		$route->InitAll();
		$row = new \stdClass;

		// first column
		$row->matched = $matched;

		// second column
		$row->method = $route->GetMethod();
		$row->method = $row->method === NULL ? '*' : $row->method;

		// third column
		$row->className = htmlSpecialChars('\\'.get_class($route), ENT_QUOTES, 'UTF-8');
		$routeMatch = $this->getRouteLocalizedRecord($route, 'GetMatch');
		$routeMatch = rtrim($routeMatch, 'imsxeADSUXJu'); // remove all modifiers
		$routeReverse = $this->getRouteLocalizedRecord($route, 'GetReverse');
		$routeDefaults = $this->getRouteLocalizedRecord($route, 'GetDefaults');
		$row->match = $this->completeFormatedPatternCharGroups($routeMatch, ['(', ')']);
		if ($routeReverse !== NULL) {
			$row->reverse = $this->completeFormatedPatternCharGroups($routeReverse, ['<', '>']);
		} else {
			$row->reverse = NULL;
		}

		// fourth column
		$row->routeName = $route->GetName();
		$row->ctrlActionName = $route->GetControllerAction();
		if ($row->ctrlActionName !== ':') {
			$row->ctrlActionLink = $this->completeCtrlActionLink($route->GetController(), $route->GetAction());
		} else {
			$row->ctrlActionName = NULL;
			$row->ctrlActionLink = NULL;
		}
		$routeReverseParams = $route->GetReverseParams() ?: []; // route could NULL reverse params when redirect route defined
		$paramsKeys = array_unique(array_merge($routeReverseParams, array_keys($routeDefaults)));
		$row->defaults = $this->completeParams($route, $paramsKeys, TRUE);

		// fifth column (only for matched route)
		$row->params = [];
		if ($matched) {
			$paramsAndReqestParams = array_merge($routeDefaults, $this->requestParams);
			$row->params = $this->completeParams($route, array_keys($paramsAndReqestParams), FALSE);
		}

		return $row;
	}
protected function initViewPanelTableRow ( \ MvcCore \ IRoute & $ route , $ matched ) { $ route -> InitAll ( ) ; $ row = new \ stdClass ; // first column $ row -> matched = $ matched ; // second column $ row -> method = $ route -> GetMethod ( ) ; $ row -> method = $ row -> method === NULL ? '*' : $ row -> method ; // third column $ row -> className = htmlSpecialChars ( '\\' . get_class ( $ route ) , ENT_QUOTES , 'UTF-8' ) ; $ routeMatch = $ this -> getRouteLocalizedRecord ( $ route , 'GetMatch' ) ; $ routeMatch = rtrim ( $ routeMatch , 'imsxeADSUXJu' ) ; // remove all modifiers $ routeReverse = $ this -> getRouteLocalizedRecord ( $ route , 'GetReverse' ) ; $ routeDefaults = $ this -> getRouteLocalizedRecord ( $ route , 'GetDefaults' ) ; $ row -> match = $ this -> completeFormatedPatternCharGroups ( $ routeMatch , [ '(' , ')' ] ) ; if ( $ routeReverse !== NULL ) { $ row -> reverse = $ this -> completeFormatedPatternCharGroups ( $ routeReverse , [ '<' , '>' ] ) ; } else { $ row -> reverse = NULL ; } // fourth column $ row -> routeName = $ route -> GetName ( ) ; $ row -> ctrlActionName = $ route -> GetControllerAction ( ) ; if ( $ row -> ctrlActionName !== ':' ) { $ row -> ctrlActionLink = $ this -> completeCtrlActionLink ( $ route -> GetController ( ) , $ route -> GetAction ( ) ) ; } else { $ row -> ctrlActionName = NULL ; $ row -> ctrlActionLink = NULL ; } $ routeReverseParams = $ route -> GetReverseParams ( ) ? : [ ] ; // route could NULL reverse params when redirect route defined $ paramsKeys = array_unique ( array_merge ( $ routeReverseParams , array_keys ( $ routeDefaults ) ) ) ; $ row -> defaults = $ this -> completeParams ( $ route , $ paramsKeys , TRUE ) ; // fifth column (only for matched route) $ row -> params = [ ] ; if ( $ matched ) { $ paramsAndReqestParams = array_merge ( $ routeDefaults , $ this -> requestParams ) ; $ row -> params = $ this -> completeParams ( $ route , array_keys ( $ paramsAndReqestParams ) , FALSE ) ; } return $ row ; }
Complete single route table row view data.
@param \MvcCore\IRoute $route
@param bool $matched
@return \stdClass
Complete single route table row view data .