fix: Доп. проверки значений
This commit is contained in:
parent
33565c9f7e
commit
b20ea0e7dc
8 changed files with 45 additions and 39 deletions
|
|
@ -16,35 +16,7 @@ use ctiso\Controller\SiteInterface;
|
|||
use ctiso\Database\PDOStatement;
|
||||
use PHPTAL;
|
||||
use PHPTAL_PreFilter_Normalize;
|
||||
|
||||
class FakeTemplate {
|
||||
/** @var array */
|
||||
public $_data = [];
|
||||
/** @var string */
|
||||
public $_name = '';
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*/
|
||||
function __construct($name) {
|
||||
$this->_name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
*/
|
||||
function __set($key, $value): void {
|
||||
$this->_data[$key] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
function execute() {
|
||||
return json_encode($this->_data);
|
||||
}
|
||||
}
|
||||
use ctiso\View\FakeTemplate;
|
||||
|
||||
/**
|
||||
* Класс компонента
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue