@@ -74,6 +74,9 @@ discard block |
||
74 | 74 | self::send($array); |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param integer $timestamp |
|
79 | + */ |
|
77 | 80 | public static function sendCSS($timestamp) |
78 | 81 | { |
79 | 82 | $array = array( |
@@ -184,6 +187,9 @@ discard block |
||
184 | 187 | self::send($array); |
185 | 188 | } |
186 | 189 | |
190 | + /** |
|
191 | + * @param string[] $array |
|
192 | + */ |
|
187 | 193 | private static function send($array, $gzip = true) |
188 | 194 | { |
189 | 195 | if($gzip) |
@@ -69,6 +69,9 @@ discard block |
||
69 | 69 | return $extension; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $type |
|
74 | + */ |
|
72 | 75 | public static function getImagePath($type, $file) |
73 | 76 | { |
74 | 77 | if($type == 'photo') |
@@ -142,6 +145,10 @@ discard block |
||
142 | 145 | return new ReflectionClass($class_name); |
143 | 146 | } |
144 | 147 | |
148 | + /** |
|
149 | + * @param string $type |
|
150 | + * @param string $file |
|
151 | + */ |
|
145 | 152 | public static function loadInstance($type, $file) |
146 | 153 | { |
147 | 154 | self::load($type, $file); |
@@ -157,6 +164,9 @@ discard block |
||
157 | 164 | trigger_error("Requested class cannot be instance'd: {$type}, {$file}"); |
158 | 165 | } |
159 | 166 | |
167 | + /** |
|
168 | + * @param string $type |
|
169 | + */ |
|
160 | 170 | public static function loadNew($type, $file, $data = array()) |
161 | 171 | { |
162 | 172 | self::load($type, $file); |
@@ -18,6 +18,9 @@ discard block |
||
18 | 18 | $this->headers['Bcc'] = "Jacob <{$config->admin_email}>"; |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $person |
|
23 | + */ |
|
21 | 24 | public function setToAddress($email, $person = null) |
22 | 25 | { |
23 | 26 | if($person) |
@@ -27,12 +30,18 @@ discard block |
||
27 | 30 | return $this; |
28 | 31 | } |
29 | 32 | |
33 | + /** |
|
34 | + * @param string $subject |
|
35 | + */ |
|
30 | 36 | public function setSubject($subject) |
31 | 37 | { |
32 | 38 | $this->subject = $subject; |
33 | 39 | return $this; |
34 | 40 | } |
35 | 41 | |
42 | + /** |
|
43 | + * @param string $message |
|
44 | + */ |
|
36 | 45 | public function setMessage($message) |
37 | 46 | { |
38 | 47 | $this->message = $message; |
@@ -18,6 +18,9 @@ discard block |
||
18 | 18 | private $console; |
19 | 19 | private $profile = array(); |
20 | 20 | |
21 | + /** |
|
22 | + * @param Console $console |
|
23 | + */ |
|
21 | 24 | public function __construct($console) |
22 | 25 | { |
23 | 26 | $this->start_time = self::getMicrotime(); |
@@ -128,6 +131,9 @@ discard block |
||
128 | 131 | return $time[1] + $time[0]; |
129 | 132 | } |
130 | 133 | |
134 | + /** |
|
135 | + * @param integer $memory |
|
136 | + */ |
|
131 | 137 | private function get_readable_memory_usage($memory) |
132 | 138 | { |
133 | 139 | foreach(self::$MEMORY_SIZE_ARRAY as $key => $memory_size) |
@@ -34,6 +34,9 @@ |
||
34 | 34 | return false; |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param string $key |
|
39 | + */ |
|
37 | 40 | static function getGet($key = null) |
38 | 41 | { |
39 | 42 | if($key) |
@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | self::$array['pieces'] = (array) $uri_array; |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @return string |
|
43 | + */ |
|
41 | 44 | static function getSite() |
42 | 45 | { |
43 | 46 | return self::$array['site']; |
@@ -66,6 +69,9 @@ discard block |
||
66 | 69 | return substr($file, strrpos($file, '.') + 1);; |
67 | 70 | } |
68 | 71 | |
72 | + /** |
|
73 | + * @param integer $piece |
|
74 | + */ |
|
69 | 75 | static function getPiece($piece = null) |
70 | 76 | { |
71 | 77 | if(!$piece) |
@@ -72,6 +72,11 @@ |
||
72 | 72 | return $matches[0] == $string; |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $type |
|
77 | + * @param string $key |
|
78 | + * @param string $validation |
|
79 | + */ |
|
75 | 80 | public static function checkRequest($type, $key, $validation, $strict = false) |
76 | 81 | { |
77 | 82 | switch($type) |
@@ -239,6 +239,9 @@ |
||
239 | 239 | return $text; |
240 | 240 | } |
241 | 241 | |
242 | + /** |
|
243 | + * @param string $type |
|
244 | + */ |
|
242 | 245 | private function get_replace_text($entity_type, $entity, $type) |
243 | 246 | { |
244 | 247 | switch($entity_type) |
@@ -17,6 +17,9 @@ |
||
17 | 17 | return self::run_row_query($query); |
18 | 18 | } |
19 | 19 | |
20 | + /** |
|
21 | + * @param string $date |
|
22 | + */ |
|
20 | 23 | public static function getTweetByFields($date, $text) |
21 | 24 | { |
22 | 25 | $query = "SELECT * FROM `jpemeric_stream`.`twitter` WHERE `date` = '{$date}' && `text` = '{$text}' LIMIT 1"; |