PHP Класс Redaxscript\Head\HeadAbstract

С версии: 3.0.0
Автор: Henry Ruhs
Наследование: extends Redaxscript\Singleton, implements Redaxscript\Head\HeadInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_collectionArray array collection of the head
$_namespace string collection namespace

Открытые методы

Метод Описание
__toString ( ) : string stringify the collection
append ( mixed $attribute = null, string $value = null ) : HeadAbstract append to the collection
clear ( ) clear the collection
init ( string $namespace = null ) : HeadAbstract init the class
prepend ( mixed $attribute = null, string $value = null ) : HeadAbstract prepend to the collection
remove ( string $attribute = null, string $value = null ) : HeadAbstract remove from to the collection

Описание методов

__toString() публичный Метод

stringify the collection
С версии: 3.0.0
public __toString ( ) : string
Результат string

append() публичный Метод

append to the collection
С версии: 3.0.0
public append ( mixed $attribute = null, string $value = null ) : HeadAbstract
$attribute mixed name or set of attributes
$value string value of the attribute
Результат HeadAbstract

clear() публичный Метод

clear the collection
С версии: 3.0.0
public clear ( )

init() публичный Метод

init the class
С версии: 3.0.0
public init ( string $namespace = null ) : HeadAbstract
$namespace string collection sub namespace
Результат HeadAbstract

prepend() публичный Метод

prepend to the collection
С версии: 3.0.0
public prepend ( mixed $attribute = null, string $value = null ) : HeadAbstract
$attribute mixed name or set of attributes
$value string value of the attribute
Результат HeadAbstract

remove() публичный Метод

remove from to the collection
С версии: 3.0.0
public remove ( string $attribute = null, string $value = null ) : HeadAbstract
$attribute string name of attribute
$value string value of the attribute
Результат HeadAbstract

Описание свойств

$_collectionArray защищенное статическое свойство

collection of the head
protected static array $_collectionArray
Результат array

$_namespace защищенное статическое свойство

collection namespace
protected static string $_namespace
Результат string