| 1: | <?php
|
| 2: | namespace Sphp\tools{
|
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: |
|
| 8: | class SNode {
|
| 9: | public $children = array();
|
| 10: | public function getChildren() {}
|
| 11: | public function isChildren() {}
|
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 17: |
|
| 18: | public function iterateChildren($callback) {}
|
| 19: | |
| 20: | |
| 21: | |
| 22: |
|
| 23: | public function appendChildren($html) {}
|
| 24: | |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: |
|
| 30: | public function replaceChildren($html) {}
|
| 31: | public function parseObjectLoop($domNode,$parent = null) {}
|
| 32: | public function replaceChild($newnode,$oldnode) {}
|
| 33: | public function appendChild($node) {}
|
| 34: | public function setChildren($children) {}
|
| 35: | public function removeChildren() {}
|
| 36: | public function hasChildren() {}
|
| 37: | }
|
| 38: | |
| 39: | |
| 40: | |
| 41: | |
| 42: |
|
| 43: | class NodeText extends \Sphp\tools\SNode{
|
| 44: | public $type = "text";
|
| 45: | public $tagName = "";
|
| 46: | public $myclass = "Sphp\\tools\\NodeText";
|
| 47: | public function init($val){}
|
| 48: | public function render(){}
|
| 49: | }
|
| 50: | }
|
| 51: | |