Class DOMNode
คลาสสำหรับ Dom Node.
Namespace: Kotchasan
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/DOMNode.php
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/DOMNode.php
public
|
#
__construct( string $nodeName,
class constructor. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
isInlineElement( )
ตรวจสอบว่าเป็น element แบบ Inline หรือไม่ คืนค่า true ถ้าเป็น Inline Elements หรือ false ถ้าเป็น Block-level Elements. |
public
string
|
|
public
string
|
public
array
|
$attributes
รายการคุณสมบัติของโหนด. |
#
array()
|
public
array
|
$childNodes
รายการของโหนดที่อยู่ภายใน
|
|
public
integer
|
$level
ลำดับของโหนด ชั้นนอกสุดคือ 0. |
|
public
|
$nextSibling
โหนดถัดไป (ลำดับเดียวกัน) ถ้าเป็นโหนดสุดท้ายจะเป็น null
|
|
public
mixed
|
$nodeName
|
|
public
string|null
|
$nodeValue
ข้อความภายในโหนด ถ้าเป็น tag ค่านี้จะเป็น null
|
|
public
|
$parentNode
โหนดแม่
|
|
public
|
$previousSibling
โหนดก่อนหน้า (ลำดับเดียวกัน) ถ้าเป็นโหนดแรกจะเป็น null
|