fix: Определения типов

This commit is contained in:
origami11@yandex.ru 2025-10-01 12:37:39 +03:00
parent 9f6fd74b17
commit dd74a97894
28 changed files with 334 additions and 249 deletions

View file

@ -14,11 +14,12 @@ class Service
{
public $viewPath = [];
public $webPath = [];
public $config/*: Registry*/;
/** @var Registry */
public $config;
public $template;
public $templatePath;
public $COMPONENTS_WEB;
public $db;
public function getTemplatePath($name)
@ -53,7 +54,12 @@ class Service
return $model;
}
public function options($key, $val, $res/*: PDOStatement*/) {
/**
* @param string $key
* @param string $val
* @param PDOStatement $res
*/
public function options($key, $val, $res) {
$result = [];
while($res->next()) {
$result[] = ['value' => $res->getInt($key), 'name' => $res->getString($val)];
@ -68,7 +74,7 @@ class Service
}
return $result;
}
function getInfo() {
$filename = Path::join($this->viewPath[0], 'install.json');
if (file_exists($filename)) {