PHP Класс Redaxscript\Html\Element

С версии: 2.6.0
Автор: Henry Ruhs
Наследование: extends HtmlAbstract
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_attributeArray array attributes of the element
$_singletonTags array array of singleton tags
$_tag string tag of the element

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

Метод Описание
__toString ( ) : string stringify the element
addClass ( string $className = null ) : Element add class to the element
attr ( mixed $attribute = null, string $value = null ) : Element set attribute to the element
copy ( ) : Element copy the element
init ( string $tag = null, array $attributeArray = [] ) : Element init the class
removeAttr ( string $attribute = null ) : Element remove attribute from the element
removeClass ( string $className = null ) : Element remove class from the element
render ( ) : string render the element
text ( string $text = null ) : Element set text to the element
val ( string $value = null ) : Element set value to the element

Защищенные методы

Метод Описание
_editClass ( string $className = null, string $type = null ) : Element edit class helper

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

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

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

_editClass() защищенный Метод

edit class helper
С версии: 2.2.0
protected _editClass ( string $className = null, string $type = null ) : Element
$className string name of the classes
$type string add or remove
Результат Element

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

add class to the element
С версии: 2.2.0
public addClass ( string $className = null ) : Element
$className string name of the classes
Результат Element

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

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

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

copy the element
С версии: 2.2.0
public copy ( ) : Element
Результат Element

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

init the class
С версии: 2.2.0
public init ( string $tag = null, array $attributeArray = [] ) : Element
$tag string tag of the element
$attributeArray array attributes of the element
Результат Element

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

remove attribute from the element
С версии: 2.2.0
public removeAttr ( string $attribute = null ) : Element
$attribute string name of attributes
Результат Element

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

remove class from the element
С версии: 2.2.0
public removeClass ( string $className = null ) : Element
$className string name of the classes
Результат Element

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

render the element
С версии: 2.2.0
public render ( ) : string
Результат string

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

set text to the element
С версии: 2.2.0
public text ( string $text = null ) : Element
$text string text of the element
Результат Element

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

set value to the element
С версии: 2.2.0
public val ( string $value = null ) : Element
$value string value of the element
Результат Element

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

$_attributeArray защищенное свойство

attributes of the element
protected array $_attributeArray
Результат array

$_singletonTags защищенное свойство

array of singleton tags
protected array $_singletonTags
Результат array

$_tag защищенное свойство

tag of the element
protected string $_tag
Результат string