/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/View
NameSizeModeActions
Exception/-0755rm
Form/-0755rm
Helper/-0755rm
Widget/-0755rm
AjaxView.php10880644editdlrm
Cell.php90450644editdlrm
CellTrait.php44460644editdlrm
Helper.php73290644editdlrm
HelperRegistry.php48600644editdlrm
JsonView.php58780644editdlrm
NegotiationRequiredView.php18360644editdlrm
SerializedView.php36900644editdlrm
StringTemplate.php115640644editdlrm
StringTemplateTrait.php28640644editdlrm
View.php523500644editdlrm
ViewBlock.php64040644editdlrm
ViewBuilder.php176020644editdlrm
ViewVarsTrait.php30690644editdlrm
XmlView.php47980644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/View/ViewVarsTrait.php (3069B)
_viewBuilder)) { $this->_viewBuilder = new ViewBuilder(); } return $this->_viewBuilder; } /** * Constructs the view class instance based on the current configuration. * * @param string|null $viewClass Optional namespaced class name of the View class to instantiate. * @return \Cake\View\View * @throws \Cake\View\Exception\MissingViewException If view class was not found. */ public function createView(?string $viewClass = null): View { $builder = $this->viewBuilder(); if ($viewClass) { $builder->setClassName($viewClass); } foreach (['name', 'plugin'] as $prop) { if (isset($this->{$prop})) { $method = 'set' . ucfirst($prop); $builder->{$method}($this->{$prop}); } } /** @psalm-suppress RedundantPropertyInitializationCheck */ return $builder->build( [], $this->request ?? null, $this->response ?? null, $this instanceof EventDispatcherInterface ? $this->getEventManager() : null ); } /** * Saves a variable or an associative array of variables for use inside a template. * * @param array|string $name A string or an array of data. * @param mixed $value Value in case $name is a string (which then works as the key). * Unused if $name is an associative array, otherwise serves as the values to $name's keys. * @return $this */ public function set($name, $value = null) { if (is_array($name)) { if (is_array($value)) { $data = array_combine($name, $value); } else { $data = $name; } } else { $data = [$name => $value]; } $this->viewBuilder()->setVars($data); return $this; } }