@@ -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,21 +144,33 @@ 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]; |
@@ -183,6 +201,9 @@ discard block |
||
183 | 201 | $this->set_head('js_link_array', $js_array); |
184 | 202 | } |
185 | 203 | |
204 | + /** |
|
205 | + * @param string $view |
|
206 | + */ |
|
186 | 207 | protected function set_body_view($view) |
187 | 208 | { |
188 | 209 | $this->body_view_array[] = $view; |
@@ -227,6 +248,10 @@ discard block |
||
227 | 248 | } |
228 | 249 | |
229 | 250 | private $comment_errors; |
251 | + |
|
252 | + /** |
|
253 | + * @param string $redirect_url |
|
254 | + */ |
|
230 | 255 | protected function handle_comment_submit($site_id, $path, $redirect_url, $page_title) |
231 | 256 | { |
232 | 257 | if(Request::hasPost() && Request::getPost('submit') == 'Submit Comment') |
@@ -238,6 +263,9 @@ discard block |
||
238 | 263 | return; |
239 | 264 | } |
240 | 265 | |
266 | + /** |
|
267 | + * @param string $site |
|
268 | + */ |
|
241 | 269 | protected function get_comment_array($site, $path) |
242 | 270 | { |
243 | 271 | global $container; |