PHP 클래스 Pop\Dom\Child

저자: Nick Sagona, III ([email protected])
상속: extends Pop\Dom\AbstractNode
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes array Child element attributes
$childrenFirst boolean Flag to render children before node value or not.
$nodeName string Child element node name
$nodeValue string Child element node value

공개 메소드들

메소드 설명
__construct ( string $name, string $value = null, mixed $childNode = null, boolean $first = false, string $indent = null ) : Child Constructor
__toString ( ) : string Render Dom child object to string
factory ( array $c ) : Child Static factory method to create child objects
getAttribute ( string $name ) : string Get the attribute of the child object.
getAttributes ( ) : array Get the attributes of the child object.
getNodeName ( ) : string Method to return the child node name.
getNodeValue ( ) : string Method to return the child node value.
render ( boolean $ret = false, integer $depth, string $indent = null ) : void Method to render the child and its child nodes.
setAttributes ( array | string $a, string $v = null ) : Child Set an attribute or attributes for the child element object.
setNodeName ( string $name ) : Child Method to set the child node name.
setNodeValue ( string $value ) : Child Method to set the child node value.

메소드 상세

__construct() 공개 메소드

Instantiate the form element object
public __construct ( string $name, string $value = null, mixed $childNode = null, boolean $first = false, string $indent = null ) : Child
$name string
$value string
$childNode mixed
$first boolean
$indent string
리턴 Child

__toString() 공개 메소드

Render Dom child object to string
public __toString ( ) : string
리턴 string

factory() 공개 정적인 메소드

Static factory method to create child objects
public static factory ( array $c ) : Child
$c array
리턴 Child

getAttribute() 공개 메소드

Get the attribute of the child object.
public getAttribute ( string $name ) : string
$name string
리턴 string

getAttributes() 공개 메소드

Get the attributes of the child object.
public getAttributes ( ) : array
리턴 array

getNodeName() 공개 메소드

Method to return the child node name.
public getNodeName ( ) : string
리턴 string

getNodeValue() 공개 메소드

Method to return the child node value.
public getNodeValue ( ) : string
리턴 string

render() 공개 메소드

Method to render the child and its child nodes.
public render ( boolean $ret = false, integer $depth, string $indent = null ) : void
$ret boolean
$depth integer
$indent string
리턴 void

setAttributes() 공개 메소드

Set an attribute or attributes for the child element object.
public setAttributes ( array | string $a, string $v = null ) : Child
$a array | string
$v string
리턴 Child

setNodeName() 공개 메소드

Method to set the child node name.
public setNodeName ( string $name ) : Child
$name string
리턴 Child

setNodeValue() 공개 메소드

Method to set the child node value.
public setNodeValue ( string $value ) : Child
$value string
리턴 Child

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

Child element attributes
protected array $attributes
리턴 array

$childrenFirst 보호되어 있는 프로퍼티

Flag to render children before node value or not.
protected bool $childrenFirst
리턴 boolean

$nodeName 보호되어 있는 프로퍼티

Child element node name
protected string $nodeName
리턴 string

$nodeValue 보호되어 있는 프로퍼티

Child element node value
protected string $nodeValue
리턴 string