1 | <?php |
||
5 | class Javascript { |
||
6 | public static function containsCode($expression){ |
||
9 | |||
10 | /** |
||
11 | * Puts HTML element in quotes for use in jQuery code |
||
12 | * unless the supplied element is the Javascript 'this' |
||
13 | * object, in which case no quotes are added |
||
14 | * |
||
15 | * @param string $element |
||
16 | * @return string |
||
17 | */ |
||
18 | public static function prep_element($element) { |
||
24 | |||
25 | /** |
||
26 | * Puts HTML values in quotes for use in jQuery code |
||
27 | * unless the supplied value contains the Javascript 'this' or 'event' |
||
28 | * object, in which case no quotes are added |
||
29 | * |
||
30 | * @param string $value |
||
31 | * @return string |
||
32 | */ |
||
33 | public static function prep_value($value) { |
||
42 | } |