1: <?php
2: namespace Sphp\tools{
3: /**
4: * Description of SNode
5: * Parent Class of NodeTag
6: * @author Sartaj
7: */
8: class SNode {
9: public $children = array();
10: public function getChildren() {}
11: public function isChildren() {}
12: /**
13: * Iterate through Children. Return Callback true to exit soon.
14: * Callback($event,$child);
15: * $event = true or false mean in and out
16: * @param function $callback
17: */
18: public function iterateChildren($callback) {}
19: /**
20: * Append children from string of html
21: * @param string $html
22: */
23: public function appendChildren($html) {}
24: /**
25: * parse html and Replace children from html text.
26: * It will not allow runas=holder type attributes.
27: * Use only for html tags, Component tags will not work. for Components use frontfile object.
28: * @param string $html
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: * Description of NodeText
40: *
41: * @author Sartaj
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: