PHP 클래스 Redaxscript\Html\Element

부터: 2.6.0
저자: Henry Ruhs
상속: extends HtmlAbstract
파일 보기 프로젝트 열기: redaxmedia/redaxscript 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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