Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/processors/main_processor.php
Show First 20 Lines • Show All 1170 Lines • ▼ Show 20 Line(s) | |||||
* @param Array $params | * @param Array $params | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
function PrintCurrentParams($params) | function PrintCurrentParams($params) | ||||
{ | { | ||||
$current_params = $this->Application->Parser->Params; | $current_params = $this->Application->Parser->Params; | ||||
foreach ($current_params as $param_name => $param_value) { | foreach ($current_params as $param_name => $param_value) { | ||||
if ( is_object($param_value) && !method_exists($param_value, '__toString') ) { | |||||
$param_value = 'ClassName: ' . get_class($param_value); | |||||
} | |||||
$current_params[$param_name] = $param_name . ' = "' . $param_value . '"'; | $current_params[$param_name] = $param_name . ' = "' . $param_value . '"'; | ||||
} | } | ||||
return '<pre>' . implode("\n", $current_params) . '</pre>'; | return '<pre>' . implode("\n", $current_params) . '</pre>'; | ||||
} | } | ||||
/** | /** | ||||
* Gets previously defined counter result | * Gets previously defined counter result | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |