1 | <?php |
||
15 | trait Alert |
||
16 | { |
||
17 | /** |
||
18 | * |
||
19 | * |
||
20 | * @var boolean |
||
21 | */ |
||
22 | private $bReturn; |
||
23 | |||
24 | /** |
||
25 | * Set the library to return the javascript code or run it in the browser. |
||
26 | * |
||
27 | * @param boolean $bReturn Whether to return the code |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | public function setReturn($bReturn) |
||
35 | |||
36 | /** |
||
37 | * Check if the library should return the js code or run it in the browser. |
||
38 | * |
||
39 | * @return boolean |
||
40 | */ |
||
41 | public function getReturn() |
||
45 | } |
||
46 |