@@ -197,6 +197,12 @@ discard block |
||
197 | 197 | // (1) do a lookup in a table of trusted certs keyed off of consumer |
198 | 198 | // |
199 | 199 | // Either way should return a string representation of the certificate |
200 | + |
|
201 | + /** |
|
202 | + * @param OAuthRequest $request |
|
203 | + * |
|
204 | + * @return string |
|
205 | + */ |
|
200 | 206 | protected abstract function fetch_private_cert(&$request); |
201 | 207 | |
202 | 208 | public function build_signature($request, $consumer, $token) |
@@ -332,6 +338,9 @@ discard block |
||
332 | 338 | return new OAuthRequest($http_method, $http_url, $parameters); |
333 | 339 | } |
334 | 340 | |
341 | + /** |
|
342 | + * @param string $name |
|
343 | + */ |
|
335 | 344 | public function set_parameter($name, $value, $allow_duplicates = true) |
336 | 345 | { |
337 | 346 | if ($allow_duplicates && isset($this->parameters[$name])) { |
@@ -91,6 +91,7 @@ discard block |
||
91 | 91 | * Get a request_token from Twitter |
92 | 92 | * |
93 | 93 | * @returns a key/value array containing oauth_token and oauth_token_secret |
94 | + * @param string $oauth_callback |
|
94 | 95 | */ |
95 | 96 | function getRequestToken($oauth_callback) |
96 | 97 | { |
@@ -164,6 +165,7 @@ discard block |
||
164 | 165 | |
165 | 166 | /** |
166 | 167 | * GET wrapper for oAuthRequest. |
168 | + * @param string $url |
|
167 | 169 | */ |
168 | 170 | function get($url, $parameters = []) |
169 | 171 | { |
@@ -177,6 +179,7 @@ discard block |
||
177 | 179 | |
178 | 180 | /** |
179 | 181 | * POST wrapper for oAuthRequest. |
182 | + * @param string $url |
|
180 | 183 | */ |
181 | 184 | function post($url, $parameters = []) |
182 | 185 | { |
@@ -203,6 +206,7 @@ discard block |
||
203 | 206 | |
204 | 207 | /** |
205 | 208 | * Format and sign an OAuth / API request |
209 | + * @param string $method |
|
206 | 210 | */ |
207 | 211 | function oAuthRequest($url, $method, $parameters) |
208 | 212 | { |
@@ -222,6 +226,7 @@ discard block |
||
222 | 226 | /** |
223 | 227 | * Make an HTTP request |
224 | 228 | * |
229 | + * @param string $postfields |
|
225 | 230 | * @return API results |
226 | 231 | */ |
227 | 232 | function http($url, $method, $postfields = null) |
@@ -55,6 +55,9 @@ |
||
55 | 55 | return $root; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $xml |
|
60 | + */ |
|
58 | 61 | protected function _breakOutCdata($xml) |
59 | 62 | { |
60 | 63 | $patterns = [ |
@@ -265,6 +265,9 @@ |
||
265 | 265 | return $resetHash; |
266 | 266 | } |
267 | 267 | |
268 | + /** |
|
269 | + * @param string $hash |
|
270 | + */ |
|
268 | 271 | public function sendResetMail($hash) |
269 | 272 | { |
270 | 273 | // @todo exception |
@@ -53,6 +53,9 @@ |
||
53 | 53 | return $url; |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @return string |
|
58 | + */ |
|
56 | 59 | public function getFilename() |
57 | 60 | { |
58 | 61 | return $this->get('filename'); |
@@ -53,6 +53,9 @@ |
||
53 | 53 | return $url; |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @return string |
|
58 | + */ |
|
56 | 59 | public function getFilename() |
57 | 60 | { |
58 | 61 | return $this->get('filename'); |
@@ -2,6 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | class Ajde_Fs_Find extends Ajde_Object_Static |
4 | 4 | { |
5 | + /** |
|
6 | + * @param string $pattern |
|
7 | + */ |
|
5 | 8 | public static function findFile($dir, $pattern) |
6 | 9 | { |
7 | 10 | $search = Config::get("local_root") . DIRECTORY_SEPARATOR . $dir . $pattern; |
@@ -28,6 +31,10 @@ discard block |
||
28 | 31 | return $return; |
29 | 32 | } |
30 | 33 | |
34 | + /** |
|
35 | + * @param string $dir |
|
36 | + * @param string $pattern |
|
37 | + */ |
|
31 | 38 | public static function findFilenames($dir, $pattern, $flags = 0) |
32 | 39 | { |
33 | 40 | $files = self::findFiles($dir, $pattern, $flags); |
@@ -30,6 +30,11 @@ |
||
30 | 30 | return true; |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $className |
|
35 | + * |
|
36 | + * @return string |
|
37 | + */ |
|
33 | 38 | public static function getClassname($className) |
34 | 39 | { |
35 | 40 | $config = Config::getInstance(); |
@@ -79,6 +79,9 @@ |
||
79 | 79 | return $this->_originalRoute; |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $route |
|
84 | + */ |
|
82 | 85 | public function setRoute($route) |
83 | 86 | { |
84 | 87 | $this->_route = $route; |