@@ -113,6 +113,9 @@ discard block |
||
113 | 113 | exit; |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param string $method |
|
118 | + */ |
|
116 | 119 | protected function set_header_method($method) |
117 | 120 | { |
118 | 121 | $this->headers = $method; |
@@ -123,6 +126,9 @@ discard block |
||
123 | 126 | $this->set_head('title', $value); |
124 | 127 | } |
125 | 128 | |
129 | + /** |
|
130 | + * @param string $value |
|
131 | + */ |
|
126 | 132 | protected function set_author($value) |
127 | 133 | { |
128 | 134 | $this->set_head('author', $value); |
@@ -138,26 +144,41 @@ discard block |
||
138 | 144 | $this->set_head('keywords', implode(', ', $array)); |
139 | 145 | } |
140 | 146 | |
147 | + /** |
|
148 | + * @param string $url |
|
149 | + */ |
|
141 | 150 | protected function set_canonical($url) |
142 | 151 | { |
143 | 152 | $this->set_head('canonical', $url); |
144 | 153 | } |
145 | 154 | |
155 | + /** |
|
156 | + * @param string $set |
|
157 | + */ |
|
146 | 158 | protected function set_head($set, $value) |
147 | 159 | { |
148 | 160 | $this->data_array['head'][$set] = $value; |
149 | 161 | } |
150 | 162 | |
163 | + /** |
|
164 | + * @param string $set |
|
165 | + */ |
|
151 | 166 | protected function set_body($set, $value) |
152 | 167 | { |
153 | 168 | $this->data_array['body'][$set] = $value; |
154 | 169 | } |
155 | 170 | |
171 | + /** |
|
172 | + * @param string $file |
|
173 | + */ |
|
156 | 174 | protected function add_css($file, $version = 1) |
157 | 175 | { |
158 | 176 | $this->css_array[] = [$file, $version]; |
159 | 177 | } |
160 | 178 | |
179 | + /** |
|
180 | + * @param string $file |
|
181 | + */ |
|
161 | 182 | protected function add_js($file) |
162 | 183 | { |
163 | 184 | $this->js_array[] = $file; |
@@ -183,6 +204,9 @@ discard block |
||
183 | 204 | $this->set_head('js_link_array', $js_array); |
184 | 205 | } |
185 | 206 | |
207 | + /** |
|
208 | + * @param string $view |
|
209 | + */ |
|
186 | 210 | protected function set_body_view($view) |
187 | 211 | { |
188 | 212 | $this->body_view_array[] = $view; |
@@ -227,6 +251,10 @@ discard block |
||
227 | 251 | } |
228 | 252 | |
229 | 253 | private $comment_errors; |
254 | + |
|
255 | + /** |
|
256 | + * @param string $redirect_url |
|
257 | + */ |
|
230 | 258 | protected function handle_comment_submit($site_id, $path, $redirect_url, $page_title) |
231 | 259 | { |
232 | 260 | if(Request::hasPost() && Request::getPost('submit') == 'Submit Comment') |
@@ -238,6 +266,9 @@ discard block |
||
238 | 266 | return; |
239 | 267 | } |
240 | 268 | |
269 | + /** |
|
270 | + * @param string $site |
|
271 | + */ |
|
241 | 272 | protected function get_comment_array($site, $path) |
242 | 273 | { |
243 | 274 | global $container; |