1 | <?php |
||
18 | class Scripts extends AbstractSeries |
||
19 | { |
||
20 | private $capture; |
||
21 | |||
22 | /** |
||
23 | * |
||
24 | * Adds a <script> tag to the stack. |
||
25 | * |
||
26 | * @param string $src The source href for the script. |
||
27 | * |
||
28 | * @param int $pos The script position in the stack. |
||
29 | * |
||
30 | * @return null |
||
31 | * |
||
32 | */ |
||
33 | 2 | public function add($src, $pos = 100) |
|
44 | |||
45 | /** |
||
46 | * |
||
47 | * Adds a conditional `<!--[if ...]><script><![endif] -->` tag to the |
||
48 | * stack. |
||
49 | * |
||
50 | * @param string $cond The conditional expression for the script. |
||
51 | * |
||
52 | * @param string $src The source href for the script. |
||
53 | * |
||
54 | * @param string $pos The script position in the stack. |
||
55 | * |
||
56 | * @return null |
||
57 | * |
||
58 | */ |
||
59 | 1 | public function addCond($cond, $src, $pos = 100) |
|
71 | |||
72 | /** |
||
73 | * Adds internal script |
||
74 | * |
||
75 | * @param mixed $script The script |
||
76 | * @param int $pos The script position in the stack. |
||
77 | * |
||
78 | * @return Scripts |
||
79 | * |
||
80 | * @access public |
||
81 | */ |
||
82 | 1 | public function addInternal($script, $pos = 100) |
|
91 | |||
92 | /** |
||
93 | * addCondInternal |
||
94 | * |
||
95 | * @param mixed $cond The conditional expression for the script. |
||
96 | * @param mixed $script The script |
||
97 | * @param int $pos The script position in the stack. |
||
98 | * |
||
99 | * @return mixed |
||
100 | * @throws exceptionclass [description] |
||
101 | * |
||
102 | * @access public |
||
103 | */ |
||
104 | 1 | public function addCondInternal($cond, $script, $pos = 100) |
|
115 | |||
116 | /** |
||
117 | * Adds internal script |
||
118 | * |
||
119 | * @param int $pos The script position in the stack. |
||
120 | * |
||
121 | * @return Scripts |
||
122 | * |
||
123 | * @access public |
||
124 | */ |
||
125 | 1 | public function beginInternal($pos = 100) |
|
130 | |||
131 | /** |
||
132 | * beginInternalCond |
||
133 | * |
||
134 | * @param mixed $cond DESCRIPTION |
||
135 | * @param int $pos DESCRIPTION |
||
136 | * |
||
137 | * @return mixed |
||
138 | * |
||
139 | * @access public |
||
140 | */ |
||
141 | 1 | public function beginCondInternal($cond, $pos = 100) |
|
146 | |||
147 | /** |
||
148 | * endInternal |
||
149 | * |
||
150 | * @return mixed |
||
151 | * |
||
152 | * @access public |
||
153 | */ |
||
154 | 1 | public function endInternal() |
|
167 | } |
||
168 |