Ajax/Jquery.php 1 location
|
@@ 76-82 (lines=7) @@
|
| 73 |
|
* @param boolean $cdata a CDATA section should be added |
| 74 |
|
* @return string |
| 75 |
|
*/ |
| 76 |
|
public function inline($script, $cdata=TRUE) { |
| 77 |
|
$str=$this->_open_script(); |
| 78 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
| 79 |
|
$str.=$this->_close_script(); |
| 80 |
|
|
| 81 |
|
return $str; |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
/** |
| 85 |
|
* Open Script |
Ajax/JsUtils.php 1 location
|
@@ 239-244 (lines=6) @@
|
| 236 |
|
* @param boolean $cdata If a CDATA section should be added |
| 237 |
|
* @return string |
| 238 |
|
*/ |
| 239 |
|
public function inline($script, $cdata=TRUE) { |
| 240 |
|
$str=$this->_open_script(); |
| 241 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
| 242 |
|
$str.=$this->_close_script(); |
| 243 |
|
return $str; |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
/** |
| 247 |
|
* Outputs an opening <script> |