| @@ 85-98 (lines=14) @@ | ||
| 82 | * @param JqueryUI $ui |
|
| 83 | * @return \Ajax\JqueryUI |
|
| 84 | */ |
|
| 85 | public function ui($ui=NULL) { |
|
| 86 | if ($ui!==NULL) { |
|
| 87 | $this->_ui=$ui; |
|
| 88 | if ($this->js!=null) { |
|
| 89 | $this->js->ui($ui); |
|
| 90 | $ui->setJs($this); |
|
| 91 | } |
|
| 92 | $bs=$this->bootstrap(); |
|
| 93 | if (isset($bs)) { |
|
| 94 | $this->conflict(); |
|
| 95 | } |
|
| 96 | } |
|
| 97 | return $this->_ui; |
|
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * |
|
| @@ 105-118 (lines=14) @@ | ||
| 102 | * @param Bootstrap $bootstrap |
|
| 103 | * @return \Ajax\Bootstrap |
|
| 104 | */ |
|
| 105 | public function bootstrap($bootstrap=NULL) { |
|
| 106 | if ($bootstrap!==NULL) { |
|
| 107 | $this->_bootstrap=$bootstrap; |
|
| 108 | if ($this->js!=null) { |
|
| 109 | $this->js->bootstrap($bootstrap); |
|
| 110 | $bootstrap->setJs($this); |
|
| 111 | } |
|
| 112 | $ui=$this->ui(); |
|
| 113 | if (isset($ui)) { |
|
| 114 | $this->conflict(); |
|
| 115 | } |
|
| 116 | } |
|
| 117 | return $this->_bootstrap; |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * |
|