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 <script> tag to the stack with additional attributes |
||
48 | * |
||
49 | * @param string $src The source href for the script. |
||
50 | * |
||
51 | * @param string $attr The additional attributes |
||
52 | * |
||
53 | * @param int $pos The script position in the stack. |
||
54 | * |
||
55 | * @return null |
||
56 | * |
||
57 | */ |
||
58 | 1 | public function addAttr($src, array $attr = null, $pos = 100) |
|
77 | |||
78 | /** |
||
79 | * |
||
80 | * Adds a conditional `<!--[if ...]><script><![endif] -->` tag to the |
||
81 | * stack. |
||
82 | * |
||
83 | * @param string $cond The conditional expression for the script. |
||
84 | * |
||
85 | * @param string $src The source href for the script. |
||
86 | * |
||
87 | * @param string $pos The script position in the stack. |
||
88 | * |
||
89 | * @return null |
||
90 | * |
||
91 | */ |
||
92 | 1 | public function addCond($cond, $src, $pos = 100) |
|
104 | |||
105 | /** |
||
106 | * Adds internal script |
||
107 | * |
||
108 | * @param mixed $script The script |
||
109 | * @param int $pos The script position in the stack. |
||
110 | * |
||
111 | * @return Scripts |
||
112 | * |
||
113 | * @access public |
||
114 | */ |
||
115 | 1 | public function addInternal($script, $pos = 100) |
|
124 | |||
125 | /** |
||
126 | * addCondInternal |
||
127 | * |
||
128 | * @param mixed $cond The conditional expression for the script. |
||
129 | * @param mixed $script The script |
||
130 | * @param int $pos The script position in the stack. |
||
131 | * |
||
132 | * @return mixed |
||
133 | * @throws exceptionclass [description] |
||
134 | * |
||
135 | * @access public |
||
136 | */ |
||
137 | 1 | public function addCondInternal($cond, $script, $pos = 100) |
|
148 | |||
149 | /** |
||
150 | * Adds internal script |
||
151 | * |
||
152 | * @param int $pos The script position in the stack. |
||
153 | * |
||
154 | * @return Scripts |
||
155 | * |
||
156 | * @access public |
||
157 | */ |
||
158 | 1 | public function beginInternal($pos = 100) |
|
163 | |||
164 | /** |
||
165 | * beginInternalCond |
||
166 | * |
||
167 | * @param mixed $cond DESCRIPTION |
||
168 | * @param int $pos DESCRIPTION |
||
169 | * |
||
170 | * @return mixed |
||
171 | * |
||
172 | * @access public |
||
173 | */ |
||
174 | 1 | public function beginCondInternal($cond, $pos = 100) |
|
179 | |||
180 | /** |
||
181 | * endInternal |
||
182 | * |
||
183 | * @return mixed |
||
184 | * |
||
185 | * @access public |
||
186 | */ |
||
187 | 1 | public function endInternal() |
|
200 | } |
||
201 |