@@ -117,6 +117,9 @@ discard block |
||
| 117 | 117 | ( ( false === strpos( $pPath, '.' ) ) ? '.' . self::FORMAT : '' ) . $query; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | + /** |
|
| 121 | + * @param string $pCanonizedPath |
|
| 122 | + */ |
|
| 120 | 123 | abstract function MakeRequest( $pCanonizedPath, $pMethod = 'GET', $pParams = array() ); |
| 121 | 124 | |
| 122 | 125 | /** |
@@ -149,6 +152,9 @@ discard block |
||
| 149 | 152 | return $result; |
| 150 | 153 | } |
| 151 | 154 | |
| 155 | + /** |
|
| 156 | + * @param string $pPath |
|
| 157 | + */ |
|
| 152 | 158 | public function Api( $pPath, $pMethod = 'GET', $pParams = array() ) {
|
| 153 | 159 | return $this->_Api( $this->CanonizePath( $pPath ), $pMethod, $pParams ); |
| 154 | 160 | } |
@@ -523,6 +523,12 @@ |
||
| 523 | 523 | return $fields; |
| 524 | 524 | } |
| 525 | 525 | |
| 526 | + /** |
|
| 527 | + * @param string $key |
|
| 528 | + * @param string $default |
|
| 529 | + * |
|
| 530 | + * @return string |
|
| 531 | + */ |
|
| 526 | 532 | function get_setting_from_gallery( $gallery, $key, $default ) { |
| 527 | 533 | global $current_foogallery; |
| 528 | 534 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 33 | 33 | * @param $extensions |
| 34 | 34 | * |
| 35 | - * @return array |
|
| 35 | + * @return string[] |
|
| 36 | 36 | */ |
| 37 | 37 | function register_myself( $extensions ) { |
| 38 | 38 | $extensions[] = __FILE__; |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | * Build up the arguments needed for rendering this gallery template |
| 208 | 208 | * |
| 209 | 209 | * @param $args |
| 210 | - * @return array |
|
| 210 | + * @return boolean |
|
| 211 | 211 | */ |
| 212 | 212 | function build_gallery_template_arguments( $args ) { |
| 213 | 213 | $args = foogallery_gallery_template_setting( 'thumbnail_dimensions', array() ); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 52 | 52 | * @param $extensions |
| 53 | 53 | * |
| 54 | - * @return array |
|
| 54 | + * @return string[] |
|
| 55 | 55 | */ |
| 56 | 56 | function register_myself( $extensions ) { |
| 57 | 57 | $extensions[] = __FILE__; |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | * Build up the arguments needed for rendering this gallery template |
| 284 | 284 | * |
| 285 | 285 | * @param $args |
| 286 | - * @return array |
|
| 286 | + * @return boolean |
|
| 287 | 287 | */ |
| 288 | 288 | function build_gallery_template_arguments( $args ) { |
| 289 | 289 | $args = foogallery_gallery_template_setting( 'thumbnail_size', 'thumbnail' ); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 41 | 41 | * @param $extensions |
| 42 | 42 | * |
| 43 | - * @return array |
|
| 43 | + * @return string[] |
|
| 44 | 44 | */ |
| 45 | 45 | function register_myself( $extensions ) { |
| 46 | 46 | $extensions[] = __FILE__; |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | * Build up the arguments needed for rendering this gallery template |
| 294 | 294 | * |
| 295 | 295 | * @param $args |
| 296 | - * @return array |
|
| 296 | + * @return boolean |
|
| 297 | 297 | */ |
| 298 | 298 | function build_gallery_template_arguments( $args ) { |
| 299 | 299 | $args = foogallery_gallery_template_setting( 'thumbnail_dimensions', array() ); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 66 | 66 | * @param $extensions |
| 67 | 67 | * |
| 68 | - * @return array |
|
| 68 | + * @return string[] |
|
| 69 | 69 | */ |
| 70 | 70 | function register_myself( $extensions ) {
|
| 71 | 71 | $extensions[] = __FILE__; |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | * Build up the arguments needed for rendering this gallery template |
| 377 | 377 | * |
| 378 | 378 | * @param $args |
| 379 | - * @return array |
|
| 379 | + * @return boolean |
|
| 380 | 380 | */ |
| 381 | 381 | function build_gallery_template_arguments( $args ) {
|
| 382 | 382 | $args = foogallery_gallery_template_setting( 'thumbnail_size', array() ); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 41 | 41 | * @param $extensions |
| 42 | 42 | * |
| 43 | - * @return array |
|
| 43 | + * @return string[] |
|
| 44 | 44 | */ |
| 45 | 45 | function register_myself( $extensions ) { |
| 46 | 46 | $extensions[] = __FILE__; |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | * Build up the arguments needed for rendering this gallery template |
| 294 | 294 | * |
| 295 | 295 | * @param $args |
| 296 | - * @return array |
|
| 296 | + * @return boolean |
|
| 297 | 297 | */ |
| 298 | 298 | function build_gallery_template_arguments( $args ) { |
| 299 | 299 | $args = foogallery_gallery_template_setting( 'thumbnail_dimensions', array() ); |
@@ -200,6 +200,10 @@ discard block |
||
| 200 | 200 | die(); |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | + /** |
|
| 204 | + * @param string $shortcode |
|
| 205 | + * @param string $id_attrib |
|
| 206 | + */ |
|
| 203 | 207 | function echo_findings_for_shortcode( $shortcode, $id_attrib ) { |
| 204 | 208 | echo '<h3>[' . $shortcode . '] Shortcodes</h3>'; |
| 205 | 209 | |
@@ -232,6 +236,10 @@ discard block |
||
| 232 | 236 | } |
| 233 | 237 | } |
| 234 | 238 | |
| 239 | + /** |
|
| 240 | + * @param string $shortcode |
|
| 241 | + * @param string $id_attrib |
|
| 242 | + */ |
|
| 235 | 243 | function echo_replacements_for_shortcode( $shortcode, $id_attrib ) { |
| 236 | 244 | echo '<h3>[' . $shortcode . '] Shortcodes</h3>'; |
| 237 | 245 | |
@@ -342,10 +342,11 @@ |
||
| 342 | 342 | /** |
| 343 | 343 | * Build up a taxonomy field HTML |
| 344 | 344 | * |
| 345 | - * @param $taxonomy |
|
| 345 | + * @param string $taxonomy |
|
| 346 | 346 | * @param $post |
| 347 | + * @param string $value |
|
| 347 | 348 | * |
| 348 | - * @return array |
|
| 349 | + * @return string |
|
| 349 | 350 | */ |
| 350 | 351 | function build_taxonomy_html( $taxonomy, $post, $value ) { |
| 351 | 352 | $html = '<input type="text" data-attachment_id="' . $post->ID . '" class="foogallery-attachment-ignore-change" id="attachments-' . $post->ID .'-' . $taxonomy . '" name="attachments-' . $post->ID .'-' . $taxonomy . '" value="' . $value . '" data-original-value="' . $value . '" />'; |