fix: Определения типов
This commit is contained in:
parent
9f6fd74b17
commit
dd74a97894
28 changed files with 334 additions and 249 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue