@@ -64,6 +64,9 @@ |
||
64 | 64 | } |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param string $changefreq |
|
69 | + */ |
|
67 | 70 | private function add_paginated_pages($posts, $base_url, $changefreq, $rank) |
68 | 71 | { |
69 | 72 | switch($changefreq) |
@@ -133,6 +133,10 @@ |
||
133 | 133 | $this->addURL('about/', date('Y-01-01'), self::$ABOUT_PAGE_CHANGEFREQ, self::$ABOUT_PAGE_RANK); |
134 | 134 | } |
135 | 135 | |
136 | + /** |
|
137 | + * @param integer $items_per_page |
|
138 | + * @param string $type |
|
139 | + */ |
|
136 | 140 | private function add_paginated_pages($count, $items_per_page, $base_url, $type) |
137 | 141 | { |
138 | 142 | switch($type) { |
@@ -79,6 +79,9 @@ discard block |
||
79 | 79 | return $final_files; |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $type |
|
84 | + */ |
|
82 | 85 | private static function process_simple_pieces($type, $file) |
83 | 86 | { |
84 | 87 | $piece_path = self::get_piece_path($type, $file); |
@@ -101,6 +104,9 @@ discard block |
||
101 | 104 | return self::get_final_link($type, $file_name); |
102 | 105 | } |
103 | 106 | |
107 | + /** |
|
108 | + * @param string $type |
|
109 | + */ |
|
104 | 110 | private static function process_complex_pieces($type, $array) |
105 | 111 | { |
106 | 112 | if(in_array(404, $array)) |
@@ -152,6 +158,9 @@ discard block |
||
152 | 158 | return; |
153 | 159 | } |
154 | 160 | |
161 | + /** |
|
162 | + * @return string |
|
163 | + */ |
|
155 | 164 | private static function get_piece_path($type, $file) |
156 | 165 | { |
157 | 166 | $path = Loader::getRoot() . "/{$type}/piece/{$file}*"; |
@@ -162,6 +171,9 @@ discard block |
||
162 | 171 | return; |
163 | 172 | } |
164 | 173 | |
174 | + /** |
|
175 | + * @param string $contents |
|
176 | + */ |
|
165 | 177 | private static function make_final_file($type, $contents, $file_name, $exists = false) |
166 | 178 | { |
167 | 179 | if($exists) |
@@ -213,6 +225,9 @@ discard block |
||
213 | 225 | return $path; |
214 | 226 | } |
215 | 227 | |
228 | + /** |
|
229 | + * @param string $type |
|
230 | + */ |
|
216 | 231 | public static function getLastModified($type, $file) |
217 | 232 | { |
218 | 233 | $final_path = self::get_final_path($type, $file); |
@@ -24,6 +24,11 @@ |
||
24 | 24 | return Loader::getImagePath('photo', $path); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $string |
|
29 | + * @param boolean $is_absolute |
|
30 | + * @param string $size |
|
31 | + */ |
|
27 | 32 | private function get_thumb($string, $is_absolute, $size) |
28 | 33 | { |
29 | 34 | list($category, $file_name) = explode('/', $string); |
@@ -25,6 +25,9 @@ discard block |
||
25 | 25 | return; |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param string $content |
|
30 | + */ |
|
28 | 31 | private function wrap_in_list($content) |
29 | 32 | { |
30 | 33 | $content_array = explode("\n", $content); |
@@ -44,6 +47,9 @@ discard block |
||
44 | 47 | return $content; |
45 | 48 | } |
46 | 49 | |
50 | + /** |
|
51 | + * @param string $type |
|
52 | + */ |
|
47 | 53 | private function highlight_code($content, $type) |
48 | 54 | { |
49 | 55 | switch($type) |
@@ -62,6 +62,9 @@ |
||
62 | 62 | $this->is_trimmed = true; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $content |
|
67 | + */ |
|
65 | 68 | private function trim_html_string($content, $length) |
66 | 69 | { |
67 | 70 | $content = preg_replace(self::$PHOTO_PLACEHOLDER_MATCH, '', $content); |
@@ -14,9 +14,20 @@ discard block |
||
14 | 14 | $this->class_new = $class_name; |
15 | 15 | } |
16 | 16 | |
17 | + /** |
|
18 | + * @return string |
|
19 | + */ |
|
17 | 20 | abstract protected function getName(); |
18 | 21 | abstract protected function getDuration(); |
22 | + |
|
23 | + /** |
|
24 | + * @return string|null |
|
25 | + */ |
|
19 | 26 | abstract protected function getDomain(); |
27 | + |
|
28 | + /** |
|
29 | + * @return string|null |
|
30 | + */ |
|
20 | 31 | abstract protected function getPath(); |
21 | 32 | |
22 | 33 | public function setValue($value) |
@@ -28,6 +39,9 @@ discard block |
||
28 | 39 | return $this; |
29 | 40 | } |
30 | 41 | |
42 | + /** |
|
43 | + * @return string|null |
|
44 | + */ |
|
31 | 45 | public function getValue() |
32 | 46 | { |
33 | 47 | if(!$this->is_loaded) |
@@ -118,6 +132,9 @@ discard block |
||
118 | 132 | return $set_cookie; |
119 | 133 | } |
120 | 134 | |
135 | + /** |
|
136 | + * @param string $class_name |
|
137 | + */ |
|
121 | 138 | public static function instance($class_name) |
122 | 139 | { |
123 | 140 | return Loader::loadNew('utility', "cookie/{$class_name}Cookie", (array) $class_name); |
@@ -7,6 +7,9 @@ |
||
7 | 7 | |
8 | 8 | abstract public function activate(); |
9 | 9 | |
10 | + /** |
|
11 | + * @param string $value |
|
12 | + */ |
|
10 | 13 | protected function error($value) |
11 | 14 | { |
12 | 15 | trigger_error("Cron failed: {$value}"); |
@@ -59,6 +59,9 @@ discard block |
||
59 | 59 | $this->add_posts($youtube_result, 'youtube'); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $type |
|
64 | + */ |
|
62 | 65 | private function remove_existing($result, $type) |
63 | 66 | { |
64 | 67 | foreach($result as $key => $row) |
@@ -70,6 +73,9 @@ discard block |
||
70 | 73 | return $result; |
71 | 74 | } |
72 | 75 | |
76 | + /** |
|
77 | + * @param string $type |
|
78 | + */ |
|
73 | 79 | private function add_posts($result, $type) |
74 | 80 | { |
75 | 81 | foreach($result as $row) |