fix: Доп. проверки значений

This commit is contained in:
origami11@yandex.ru 2025-11-12 19:41:24 +03:00
parent 33565c9f7e
commit b20ea0e7dc
8 changed files with 45 additions and 39 deletions

View file

@ -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;
/**
* Класс компонента