ref Исправление типов
This commit is contained in:
parent
a09fc396d8
commit
28429039a4
8 changed files with 24 additions and 98 deletions
|
|
@ -101,9 +101,9 @@ class Action
|
|||
|
||||
/**
|
||||
* Создает представление
|
||||
* @param $name String
|
||||
* @param $viewClass String
|
||||
* @return View_Composite
|
||||
* @param string
|
||||
* @param string $viewClass
|
||||
* @return Composite
|
||||
*/
|
||||
public function getView($name, $viewClass = 'ctiso\\View\\Composite')
|
||||
{
|
||||
|
|
@ -163,7 +163,7 @@ class Action
|
|||
* Т.к действия являются методами класса то
|
||||
* 1. Можно переопределить действия
|
||||
* 2. Использовать наследование чтобы добавить к старому обработчику новое поведение
|
||||
* @param $request Обьект запроса
|
||||
* @param HttpRequest $request запроса
|
||||
*/
|
||||
public function preProcess(HttpRequest $request)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ class Component
|
|||
}
|
||||
}
|
||||
|
||||
public function getTemplateName($_registry/*: Settings*/) {
|
||||
public function getTemplateName($_registry/*: \ctiso\Settings*/) {
|
||||
return (isset($_COOKIE['with_template']) && preg_match('/^[\w\d-]{3,20}$/', $_COOKIE['with_template']))
|
||||
? $_COOKIE['with_template'] : ($_registry ? $_registry->get('site', 'template') : 'modern');
|
||||
}
|
||||
|
|
@ -147,7 +147,7 @@ class Component
|
|||
}
|
||||
|
||||
public function getTemplatePath($name) {
|
||||
$registry/*: Settings*/ = $this->config;
|
||||
$registry/*: \ctiso\Settings*/ = $this->config;
|
||||
// Брать настройки из куков если есть
|
||||
$template = ($this->template) ? $this->template : $this->getTemplateName($registry);
|
||||
foreach ($this->viewPath as $index => $viewPath) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue