chore: Аннотации к типам
This commit is contained in:
parent
09a61244ca
commit
1e27648a12
17 changed files with 217 additions and 81 deletions
|
|
@ -13,11 +13,22 @@ class Top extends Composite
|
|||
public $require = array();
|
||||
public $deps = array();
|
||||
|
||||
/**
|
||||
* Заголовок страницы
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle()
|
||||
{
|
||||
return implode(" - ", array_filter($this->doTree('_title', false), [$this, 'isNotNull']));
|
||||
}
|
||||
|
||||
/**
|
||||
* Идентификатор
|
||||
*
|
||||
* @param string $pref
|
||||
* @return string
|
||||
*/
|
||||
function getId($pref)
|
||||
{
|
||||
$this->mid++;
|
||||
|
|
@ -97,7 +108,7 @@ class Top extends Composite
|
|||
/**
|
||||
* Массив имен файлов скриптов
|
||||
*
|
||||
* return array
|
||||
* @return array
|
||||
*/
|
||||
public function getScripts()
|
||||
{
|
||||
|
|
@ -114,6 +125,11 @@ class Top extends Composite
|
|||
return implode("\n", $this->doTree('_scriptstring'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Строка со скриптом
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getScriptStartup()
|
||||
{
|
||||
return implode("\n", $this->doTree('_startup'));
|
||||
|
|
@ -122,7 +138,7 @@ class Top extends Composite
|
|||
/**
|
||||
* Массив имен файлов стилей
|
||||
*
|
||||
* return array
|
||||
* @return array
|
||||
*/
|
||||
public function getStyleSheet()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue