1 | <?php |
||
11 | abstract class HtmlNavElement extends HtmlDoubleElement { |
||
1 ignored issue
–
show
|
|||
12 | /** |
||
13 | * @var string the root site |
||
14 | */ |
||
15 | protected $root; |
||
16 | |||
17 | /** |
||
18 | * @var String the html attribute which contains the elements url. default : data-ajax |
||
19 | */ |
||
20 | protected $attr; |
||
21 | |||
22 | |||
23 | public function __construct($identifier,$tagName){ |
||
28 | |||
29 | /** |
||
30 | * Associate an ajax get to the elements, displayed in $targetSelector |
||
31 | * $attr member is used to build each element url |
||
32 | * @param string $targetSelector the target of the get |
||
33 | * @param string $attr the html attribute used to build the elements url |
||
34 | * @return HtmlNavElement |
||
35 | */ |
||
36 | public function autoGetOnClick($targetSelector){ |
||
39 | |||
40 | public function contentAsString(){ |
||
43 | |||
44 | /** |
||
45 | * Generate the jquery script to set the elements to the HtmlNavElement |
||
46 | * @param JsUtils $jsUtils |
||
47 | */ |
||
48 | public function jsSetContent(JsUtils $jsUtils){ |
||
51 | |||
52 | public function getRoot() { |
||
62 | |||
63 | /** |
||
64 | * Define the html attribute for each element url in ajax |
||
65 | * @param string $attr html attribute |
||
66 | * @return HtmlNavElement |
||
67 | */ |
||
68 | public function setAttr($attr) { |
||
72 | |||
73 | public function __call($method, $args) { |
||
81 | |||
82 | public abstract function fromDispatcher($dispatcher); |
||
83 | |||
84 | } |
||
1 ignored issue
–
show
|