Перенес функции в класс
This commit is contained in:
parent
5e1362d103
commit
5e6d39d638
8 changed files with 488 additions and 491 deletions
|
|
@ -1,8 +1,5 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__ . '/../functions.php';
|
||||
// Переместить в фильтры!!
|
||||
|
||||
/**
|
||||
* Выбор макета страницы.
|
||||
* Выбор оформления страницы осуществляется если было совпадение с каким либо условием
|
||||
|
|
@ -22,7 +19,7 @@ class Layout_Manager extends Filter_Filter
|
|||
*/
|
||||
public function addConditionGet($get, Filter_Filter $layout)
|
||||
{
|
||||
$this->addCondition(rcurry(array($this, 'checkGet'), $get), $layout);
|
||||
$this->addCondition(Functions::rcurry(array($this, 'checkGet'), $get), $layout);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -30,7 +27,7 @@ class Layout_Manager extends Filter_Filter
|
|||
*/
|
||||
public function addConditionXHR($get, Filter_Filter $layout)
|
||||
{
|
||||
$this->addCondition(rcurry(array($this, 'checkXHR'), $get), $layout);
|
||||
$this->addCondition(Functions::rcurry(array($this, 'checkXHR'), $get), $layout);
|
||||
}
|
||||
|
||||
public function checkGet($request, $get)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue