setComponentPropertiesFromParameters -> setComponentPropertiesFromParams
This commit is contained in:
parent
a03d0cc8b4
commit
b95eb5b342
|
|
@ -431,7 +431,7 @@ class Controller extends BaseController
|
||||||
$this->vars[$alias] = $this->page->components[$alias] = $componentObj;
|
$this->vars[$alias] = $this->page->components[$alias] = $componentObj;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setComponentPropertiesFromParameters($componentObj);
|
$this->setComponentPropertiesFromParams($componentObj);
|
||||||
$componentObj->init();
|
$componentObj->init();
|
||||||
$componentObj->onInit(); // Deprecated: Remove ithis line if year >= 2015
|
$componentObj->onInit(); // Deprecated: Remove ithis line if year >= 2015
|
||||||
return $componentObj;
|
return $componentObj;
|
||||||
|
|
@ -793,7 +793,7 @@ class Controller extends BaseController
|
||||||
'obj' => $componentObj
|
'obj' => $componentObj
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->setComponentPropertiesFromParameters($componentObj, $parameters);
|
$this->setComponentPropertiesFromParams($componentObj, $parameters);
|
||||||
$componentObj->init();
|
$componentObj->init();
|
||||||
$componentObj->onInit(); // Deprecated: Remove ithis line if year >= 2015
|
$componentObj->onInit(); // Deprecated: Remove ithis line if year >= 2015
|
||||||
}
|
}
|
||||||
|
|
@ -1102,7 +1102,7 @@ class Controller extends BaseController
|
||||||
* @param array $parameters Specifies the partial parameters.
|
* @param array $parameters Specifies the partial parameters.
|
||||||
* @return Returns updated properties.
|
* @return Returns updated properties.
|
||||||
*/
|
*/
|
||||||
protected function setComponentPropertiesFromParameters($component, $parameters = [])
|
protected function setComponentPropertiesFromParams($component, $parameters = [])
|
||||||
{
|
{
|
||||||
$properties = $component->getProperties();
|
$properties = $component->getProperties();
|
||||||
$routerParameters = $this->router->getParameters();
|
$routerParameters = $this->router->getParameters();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue