PHP Class Redaxscript\Head\HeadAbstract

Since: 3.0.0
Author: Henry Ruhs
Inheritance: extends Redaxscript\Singleton, implements Redaxscript\Head\HeadInterface
Show file Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_collectionArray array collection of the head
$_namespace string collection namespace

Public Methods

Method Description
__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

Method Details

__toString() public method

stringify the collection
Since: 3.0.0
public __toString ( ) : string
return string

append() public method

append to the collection
Since: 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
return HeadAbstract

clear() public method

clear the collection
Since: 3.0.0
public clear ( )

init() public method

init the class
Since: 3.0.0
public init ( string $namespace = null ) : HeadAbstract
$namespace string collection sub namespace
return HeadAbstract

prepend() public method

prepend to the collection
Since: 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
return HeadAbstract

remove() public method

remove from to the collection
Since: 3.0.0
public remove ( string $attribute = null, string $value = null ) : HeadAbstract
$attribute string name of attribute
$value string value of the attribute
return HeadAbstract

Property Details

$_collectionArray protected static property

collection of the head
protected static array $_collectionArray
return array

$_namespace protected static property

collection namespace
protected static string $_namespace
return string