mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix coding standards errors.
Adding a private property allows fixing of 4 naming standards errors.
This commit is contained in:
parent
16a1a0ee79
commit
024e30eb42
1 changed files with 11 additions and 4 deletions
|
@ -289,6 +289,11 @@ class View extends Object {
|
||||||
*/
|
*/
|
||||||
protected $_eventManager = null;
|
protected $_eventManager = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The view file to be rendered, only used inside _execute()
|
||||||
|
*/
|
||||||
|
private $__viewFileName = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the event manager was already configured for this object
|
* Whether the event manager was already configured for this object
|
||||||
*
|
*
|
||||||
|
@ -897,17 +902,19 @@ class View extends Object {
|
||||||
/**
|
/**
|
||||||
* Sandbox method to evaluate a template / view script in.
|
* Sandbox method to evaluate a template / view script in.
|
||||||
*
|
*
|
||||||
* @param string $___viewFn Filename of the view
|
* @param string $viewFn Filename of the view
|
||||||
* @param array $___dataForView Data to include in rendered view.
|
* @param array $___dataForView Data to include in rendered view.
|
||||||
* If empty the current View::$viewVars will be used.
|
* If empty the current View::$viewVars will be used.
|
||||||
* @return string Rendered output
|
* @return string Rendered output
|
||||||
*/
|
*/
|
||||||
protected function _evaluate($___viewFn, $___dataForView) {
|
protected function _evaluate($viewFile, $dataForView) {
|
||||||
extract($___dataForView, EXTR_SKIP);
|
$this->__viewFile = $viewFile;
|
||||||
|
extract($dataForView);
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
include $___viewFn;
|
include $this->__viewFile;
|
||||||
|
|
||||||
|
unset($this->_viewFile);
|
||||||
return ob_get_clean();
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue