Media Library Assistant - Version 0.70

Version Description

  • New: "Gallery in" and "MLA Gallery in" columns show where the item appears in [gallery] and [mla_gallery] shortcode output.
  • New: Post titles in the where-used columns contain a link to the Edit Post/Page screen.
  • New: Title/Name column distinguishes between "BAD PARENT" (no where-used references to the item) and "INVALID PARENT" (does not exist).
  • Fix: [mla_gallery] queries are modified to avoid a conflict with the Role Scoper plugin.
  • Fix: Undefined taxonomies are now bypassed when defining table columns, avoiding (!) Notice displays after changing taxonomy support settings.
Download this release

Release Info

Developer dglingren
Plugin Icon 128x128 Media Library Assistant
Version 0.70
Comparing to
See all releases

Code changes from version 0.60 to 0.70

includes/class-mla-data.php CHANGED
@@ -834,9 +834,190 @@ class MLAData {
834
  } // !empty
835
  } // foreach $file
836
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
837
  return $references;
838
  }
839
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
840
  /**
841
  * Returns information about an attachment's parent, if found
842
  *
834
  } // !empty
835
  } // foreach $file
836
 
837
+ /*
838
+ * Look for [mla_gallery] references
839
+ */
840
+ if ( self::_build_mla_galleries( self::$mla_galleries, '[mla_gallery', $exclude_revisions ) ) {
841
+ $galleries = self::_search_mla_galleries( self::$mla_galleries, $ID );
842
+ if ( !empty( $galleries ) ) {
843
+ $references['found_reference'] = true;
844
+ $references['mla_galleries'] = $galleries;
845
+
846
+ foreach ( $galleries as $post_id => $gallery ) {
847
+ if ( $post_id == $parent ) {
848
+ $references['found_parent'] = true;
849
+ $references['parent_type'] = $gallery['post_type'];
850
+ $references['parent_title'] = $gallery['post_title'];
851
+ }
852
+ } // foreach $gallery
853
+ } // !empty
854
+ else
855
+ $references['mla_galleries'] = array( );
856
+ }
857
+
858
+ /*
859
+ * Look for [gallery] references
860
+ */
861
+ if ( self::_build_mla_galleries( self::$galleries, '[gallery', $exclude_revisions ) ) {
862
+ $galleries = self::_search_mla_galleries( self::$galleries, $ID );
863
+ if ( !empty( $galleries ) ) {
864
+ $references['found_reference'] = true;
865
+ $references['galleries'] = $galleries;
866
+
867
+ foreach ( $galleries as $post_id => $gallery ) {
868
+ if ( $post_id == $parent ) {
869
+ $references['found_parent'] = true;
870
+ $references['parent_type'] = $gallery['post_type'];
871
+ $references['parent_title'] = $gallery['post_title'];
872
+ }
873
+ } // foreach $gallery
874
+ } // !empty
875
+ else
876
+ $references['galleries'] = array( );
877
+ }
878
+
879
  return $references;
880
  }
881
 
882
+ /**
883
+ * Objects containing [gallery] shortcodes
884
+ *
885
+ * This array contains all of the objects containing one or more [gallery] shortcodes
886
+ * and array(s) of which attachments each [gallery] contains. The arrays are built once
887
+ * each page load and cached for subsequent calls.
888
+ *
889
+ * The outer array is keyed by post_id. It contains an array of [gallery] entries numbered from one (1).
890
+ * Each inner array has these elements:
891
+ * ['parent_title'] post_title of the gallery parent,
892
+ * ['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
893
+ * ['query'] contains a string with the arguments of the [gallery],
894
+ * ['results'] contains an array of post_ids for the objects in the gallery.
895
+ *
896
+ * @since 0.70
897
+ *
898
+ * @var array
899
+ */
900
+ private static $galleries = null;
901
+
902
+ /**
903
+ * Objects containing [mla_gallery] shortcodes
904
+ *
905
+ * This array contains all of the objects containing one or more [mla_gallery] shortcodes
906
+ * and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
907
+ * each page load and cached for subsequent calls.
908
+ *
909
+ * @since 0.70
910
+ *
911
+ * @var array
912
+ */
913
+ private static $mla_galleries = null;
914
+
915
+ /**
916
+ * Builds the $mla_galleries or $galleries array
917
+ *
918
+ * @since 0.70
919
+ *
920
+ * @param array by reference to the private static galleries array variable
921
+ * @param string the shortcode to be searched for and processed
922
+ * @param boolean true to exclude revisions from the search
923
+ *
924
+ * @return boolean true if the galleries array is not empty
925
+ */
926
+ private static function _build_mla_galleries( &$galleries_array, $shortcode, $exclude_revisions ) {
927
+ global $wpdb, $post;
928
+
929
+ if ( is_array( $galleries_array ) ) {
930
+ if ( ! empty( $galleries_array ) ) {
931
+ return true;
932
+ } else {
933
+ return false;
934
+ }
935
+ }
936
+
937
+ /*
938
+ * $galleries_array is null, so build the array
939
+ */
940
+ $galleries_array = array( );
941
+
942
+ if ( $exclude_revisions )
943
+ $exclude_revisions = "(post_type <> 'revision') AND ";
944
+ else
945
+ $exclude_revisions = '';
946
+
947
+ $like = like_escape( $shortcode );
948
+ $results = $wpdb->get_results(
949
+ $wpdb->prepare(
950
+ "
951
+ SELECT ID, post_type, post_title, post_content
952
+ FROM {$wpdb->posts}
953
+ WHERE {$exclude_revisions}(
954
+ CONVERT(`post_content` USING utf8 )
955
+ LIKE %s)
956
+ ", "%{$like}%"
957
+ )
958
+ );
959
+
960
+ if ( empty( $results ) )
961
+ return false;
962
+
963
+ foreach ( $results as $result ) {
964
+ $count = preg_match_all( "/\\{$shortcode}(.*)\\]/", $result->post_content, $matches, PREG_PATTERN_ORDER );
965
+ if ( $count ) {
966
+ $result_id = $result->ID;
967
+ $galleries_array[ $result_id ]['parent_title'] = $result->post_title;
968
+ $galleries_array[ $result_id ]['parent_type'] = $result->post_type;
969
+ $galleries_array[ $result_id ]['results'] = array( );
970
+ $galleries_array[ $result_id ]['galleries'] = array( );
971
+ $instance = 0;
972
+
973
+ foreach ( $matches[1] as $index => $match ) {
974
+ /*
975
+ * Filter out shortcodes that are not an exact match
976
+ */
977
+ if ( empty( $match ) || ( ' ' == substr( $match, 0, 1 ) ) ) {
978
+ $instance++;
979
+ $galleries_array[ $result_id ]['galleries'][ $instance ]['query'] = trim( $matches[1][$index] );
980
+ $galleries_array[ $result_id ]['galleries'][ $instance ]['results'] = array( );
981
+
982
+ $post = $result; // set global variable for mla_gallery_shortcode
983
+ $attachments = MLAShortcodes::mla_get_shortcode_attachments( $result_id, $galleries_array[ $result_id ]['galleries'][ $instance ]['query'] );
984
+ if ( ! empty( $attachments ) )
985
+ foreach ( $attachments as $attachment ) {
986
+ $galleries_array[ $result_id ]['results'][ $attachment->ID ] = $attachment->ID;
987
+ $galleries_array[ $result_id ]['galleries'][ $instance ]['results'][] = $attachment->ID;
988
+ }
989
+ } // exact match
990
+ } // foreach $match
991
+ } // if $count
992
+ } // foreach $result
993
+
994
+ return true;
995
+ }
996
+
997
+ /**
998
+ * Search the $mla_galleries or $galleries array
999
+ *
1000
+ * @since 0.70
1001
+ *
1002
+ * @param array by reference to the private static galleries array variable
1003
+ * @param int the attachment ID to be searched for and processed
1004
+ *
1005
+ * @return array All posts/pages with one or more galleries that include the attachment.
1006
+ * The array key is the parent_post ID; each entry contains post_title and post_type.
1007
+ */
1008
+ private static function _search_mla_galleries( &$galleries_array, $attachment_id ) {
1009
+ $gallery_refs = array( );
1010
+ if ( ! empty( $galleries_array ) ) {
1011
+ foreach ( $galleries_array as $parent_id => $gallery ) {
1012
+ if ( in_array( $attachment_id, $gallery['results'] ) ) {
1013
+ $gallery_refs[ $parent_id ] = array ( 'post_title' => $gallery['parent_title'], 'post_type' => $gallery['parent_type'] );
1014
+ }
1015
+ } // foreach gallery
1016
+ } // !empty
1017
+
1018
+ return $gallery_refs;
1019
+ }
1020
+
1021
  /**
1022
  * Returns information about an attachment's parent, if found
1023
  *
includes/class-mla-list-table.php CHANGED
@@ -80,6 +80,8 @@ class MLA_List_Table extends WP_List_Table {
80
  'menu_order' => 'Menu Order',
81
  'featured' => 'Featured in',
82
  'inserted' => 'Inserted in',
 
 
83
  'alt_text' => 'ALT Text',
84
  'caption' => 'Caption',
85
  'description' => 'Description',
@@ -110,21 +112,23 @@ class MLA_List_Table extends WP_List_Table {
110
  private static $default_hidden_columns = array(
111
  // 'ID_parent',
112
  // 'title_name',
113
- 0 => 'post_title',
114
- 1 => 'post_name',
115
- 2 => 'parent',
116
- 3 => 'menu_order',
117
  // 'featured',
118
  // 'inserted,
119
- 4 => 'alt_text',
120
- 5 => 'caption',
121
- 6 => 'description',
122
- 7 => 'post_mime_type',
123
- 8 => 'base_file',
124
- 9 => 'date',
125
- 10 => 'modified',
126
- 11 => 'author',
127
- 12 => 'attached_to',
 
 
128
  // taxonomy columns added by mla_admin_init_action
129
  );
130
 
@@ -152,6 +156,8 @@ class MLA_List_Table extends WP_List_Table {
152
  'menu_order' => array('menu_order',false),
153
  // 'featured' => array('featured',false),
154
  // 'inserted' => array('inserted',false),
 
 
155
  'alt_text' => array('_wp_attachment_image_alt',false),
156
  'caption' => array('post_excerpt',false),
157
  'description' => array('post_content',false),
@@ -344,14 +350,16 @@ class MLA_List_Table extends WP_List_Table {
344
  */
345
  public static function mla_admin_init_action( )
346
  {
347
- $tax_options = MLASettings::mla_get_option( 'taxonomy_support' );
348
-
349
- foreach ($tax_options['tax_support'] as $tax_name => $value ) {
350
- $tax_object = get_taxonomy( $tax_name );
351
- MLA_List_Table::$default_columns[ 't_' . $tax_name ] = $tax_object->labels->name;
352
- MLA_List_Table::$default_hidden_columns [] = $tax_name;
353
- // MLA_List_Table::$default_sortable_columns [] = none at this time
354
- }
 
 
355
  }
356
 
357
  /**
@@ -363,7 +371,7 @@ class MLA_List_Table extends WP_List_Table {
363
  * @return void
364
  */
365
  function __construct( ) {
366
- $this->detached = isset( $_REQUEST['detached'] ); // || isset( $_REQUEST['find_detached'] );
367
  $this->is_trash = isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'trash';
368
 
369
  //Set parent defaults
@@ -588,12 +596,18 @@ class MLA_List_Table extends WP_List_Table {
588
  */
589
  function column_ID_parent( $item ) {
590
  $row_actions = self::_build_rollover_actions( $item, 'ID_parent' );
591
- if ( $item->post_parent )
 
 
 
 
 
592
  $parent = sprintf( '<a href="%1$s">(parent:%2$s)</a>', esc_url( add_query_arg( array(
593
  'page' => 'mla-menu',
594
  'post_parent' => $item->post_parent,
595
- 'heading_suffix' => urlencode( 'Parent: ' . $item->parent_title )
596
  ), 'upload.php' ) ), (string) $item->post_parent );
 
597
  else
598
  $parent = 'parent:0';
599
 
@@ -620,8 +634,12 @@ class MLA_List_Table extends WP_List_Table {
620
  if ( $item->mla_references['is_unattached'] )
621
  $errors .= '(UNATTACHED) ';
622
  else {
623
- if ( !$item->mla_references['found_parent'] )
624
- $errors .= '(BAD PARENT) ';
 
 
 
 
625
  }
626
 
627
  $row_actions = self::_build_rollover_actions( $item, 'title_name' );
@@ -681,10 +699,15 @@ class MLA_List_Table extends WP_List_Table {
681
  */
682
  function column_parent( $item ) {
683
  if ( $item->post_parent ){
 
 
 
 
 
684
  return sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
685
  'page' => 'mla-menu',
686
  'post_parent' => $item->post_parent,
687
- 'heading_suffix' => urlencode( 'Parent: ' . $item->parent_title )
688
  ), 'upload.php' ) ), (string) $item->post_parent );
689
  }
690
  else
@@ -716,11 +739,16 @@ class MLA_List_Table extends WP_List_Table {
716
 
717
  foreach ( $item->mla_references['features'] as $feature_id => $feature ) {
718
  if ( $feature_id == $item->post_parent )
719
- $parent = 'PARENT ';
720
  else
721
  $parent = '';
722
 
723
- $value .= sprintf( '%1$s (%2$s %3$s), %4$s', /*%1$s*/ $parent, /*%2$s*/ esc_attr( $feature->post_type ), /*%3$s*/ $feature_id, /*%4$s*/ esc_attr( $feature->post_title ) ) . "<br>\r\n";
 
 
 
 
 
724
  } // foreach $feature
725
 
726
  return $value;
@@ -742,17 +770,78 @@ class MLA_List_Table extends WP_List_Table {
742
 
743
  foreach ( $inserts as $insert ) {
744
  if ( $insert->ID == $item->post_parent )
745
- $parent = '&nbsp;&nbsp;PARENT ';
746
  else
747
- $parent = '&nbsp;&nbsp;';
748
 
749
- $value .= sprintf( '%1$s (%2$s %3$s), %4$s', /*%1$s*/ $parent, /*%2$s*/ esc_attr( $insert->post_type ), /*%3$s*/ $insert->ID, /*%4$s*/ esc_attr( $insert->post_title ) ) . "<br>\r\n";
 
 
 
 
 
750
  } // foreach $insert
751
  } // foreach $file
752
 
753
  return $value;
754
  }
755
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
756
  /**
757
  * Supply the content for a custom column
758
  *
@@ -910,7 +999,6 @@ class MLA_List_Table extends WP_List_Table {
910
  $parent_date = '';
911
 
912
  if ( isset( $item->parent_title ) )
913
- // $parent_title = esc_attr( $item->parent_title );
914
  $parent_title = sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
915
  'post' => $item->post_parent,
916
  'action' => 'edit'
@@ -919,7 +1007,7 @@ class MLA_List_Table extends WP_List_Table {
919
  $parent_title = '(Unattached)';
920
 
921
  if ( isset( $item->parent_type ) )
922
- $parent_type = '(' . $item->parent_type . ')';
923
  else
924
  $parent_type = '';
925
 
80
  'menu_order' => 'Menu Order',
81
  'featured' => 'Featured in',
82
  'inserted' => 'Inserted in',
83
+ 'galleries' => 'Gallery in',
84
+ 'mla_galleries' => 'MLA Gallery in',
85
  'alt_text' => 'ALT Text',
86
  'caption' => 'Caption',
87
  'description' => 'Description',
112
  private static $default_hidden_columns = array(
113
  // 'ID_parent',
114
  // 'title_name',
115
+ 'post_title',
116
+ 'post_name',
117
+ 'parent',
118
+ 'menu_order',
119
  // 'featured',
120
  // 'inserted,
121
+ 'galleries',
122
+ 'mla_galleries',
123
+ 'alt_text',
124
+ 'caption',
125
+ 'description',
126
+ 'post_mime_type',
127
+ 'base_file',
128
+ 'date',
129
+ 'modified',
130
+ 'author',
131
+ 'attached_to',
132
  // taxonomy columns added by mla_admin_init_action
133
  );
134
 
156
  'menu_order' => array('menu_order',false),
157
  // 'featured' => array('featured',false),
158
  // 'inserted' => array('inserted',false),
159
+ // 'galleries' => array('galleries',false),
160
+ // 'mla_galleries' => array('mla_galleries',false),
161
  'alt_text' => array('_wp_attachment_image_alt',false),
162
  'caption' => array('post_excerpt',false),
163
  'description' => array('post_content',false),
350
  */
351
  public static function mla_admin_init_action( )
352
  {
353
+ $taxonomies = get_taxonomies( array ( 'show_ui' => 'true' ), 'names' );
354
+
355
+ foreach ( $taxonomies as $tax_name ) {
356
+ if ( MLASettings::mla_taxonomy_support( $tax_name ) ) {
357
+ $tax_object = get_taxonomy( $tax_name );
358
+ MLA_List_Table::$default_columns[ 't_' . $tax_name ] = $tax_object->labels->name;
359
+ MLA_List_Table::$default_hidden_columns [] = $tax_name;
360
+ // MLA_List_Table::$default_sortable_columns [] = none at this time
361
+ } // supported taxonomy
362
+ } // foreach $tax_name
363
  }
364
 
365
  /**
371
  * @return void
372
  */
373
  function __construct( ) {
374
+ $this->detached = isset( $_REQUEST['detached'] );
375
  $this->is_trash = isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'trash';
376
 
377
  //Set parent defaults
596
  */
597
  function column_ID_parent( $item ) {
598
  $row_actions = self::_build_rollover_actions( $item, 'ID_parent' );
599
+ if ( $item->post_parent ) {
600
+ if ( isset( $item->parent_title ) )
601
+ $parent_title = $item->parent_title;
602
+ else
603
+ $parent_title = '(no title: bad ID)';
604
+
605
  $parent = sprintf( '<a href="%1$s">(parent:%2$s)</a>', esc_url( add_query_arg( array(
606
  'page' => 'mla-menu',
607
  'post_parent' => $item->post_parent,
608
+ 'heading_suffix' => urlencode( 'Parent: ' . $parent_title )
609
  ), 'upload.php' ) ), (string) $item->post_parent );
610
+ } // $item->post_parent
611
  else
612
  $parent = 'parent:0';
613
 
634
  if ( $item->mla_references['is_unattached'] )
635
  $errors .= '(UNATTACHED) ';
636
  else {
637
+ if ( !$item->mla_references['found_parent'] ) {
638
+ if ( isset( $item->parent_title ) )
639
+ $errors .= '(BAD PARENT) ';
640
+ else
641
+ $errors .= '(INVALID PARENT) ';
642
+ }
643
  }
644
 
645
  $row_actions = self::_build_rollover_actions( $item, 'title_name' );
699
  */
700
  function column_parent( $item ) {
701
  if ( $item->post_parent ){
702
+ if ( isset( $item->parent_title ) )
703
+ $parent_title = $item->parent_title;
704
+ else
705
+ $parent_title = '(no title: bad ID)';
706
+
707
  return sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
708
  'page' => 'mla-menu',
709
  'post_parent' => $item->post_parent,
710
+ 'heading_suffix' => urlencode( 'Parent: ' . $parent_title )
711
  ), 'upload.php' ) ), (string) $item->post_parent );
712
  }
713
  else
739
 
740
  foreach ( $item->mla_references['features'] as $feature_id => $feature ) {
741
  if ( $feature_id == $item->post_parent )
742
+ $parent = ',<br>PARENT';
743
  else
744
  $parent = '';
745
 
746
+ $value .= sprintf( '(%1$s %2$s%3$s), <a href="%4$s">%5$s</a>',
747
+ /*%1$s*/ esc_attr( $feature->post_type ),
748
+ /*%2$s*/ $feature_id,
749
+ /*%3$s*/ $parent,
750
+ /*%4$s*/ esc_url( add_query_arg( array('post' => $feature_id, 'action' => 'edit'), 'post.php' ) ),
751
+ /*%5$s*/ esc_attr( $feature->post_title ) ) . "<br>\r\n";
752
  } // foreach $feature
753
 
754
  return $value;
770
 
771
  foreach ( $inserts as $insert ) {
772
  if ( $insert->ID == $item->post_parent )
773
+ $parent = ',<br>PARENT';
774
  else
775
+ $parent = '';
776
 
777
+ $value .= sprintf( '(%1$s %2$s%3$s), <a href="%4$s">%5$s</a>',
778
+ /*%1$s*/ esc_attr( $insert->post_type ),
779
+ /*%2$s*/ $insert->ID,
780
+ /*%3$s*/ $parent,
781
+ /*%4$s*/ esc_url( add_query_arg( array('post' => $insert->ID, 'action' => 'edit'), 'post.php' ) ),
782
+ /*%5$s*/ esc_attr( $insert->post_title ) ) . "<br>\r\n";
783
  } // foreach $insert
784
  } // foreach $file
785
 
786
  return $value;
787
  }
788
 
789
+ /**
790
+ * Supply the content for a custom column
791
+ *
792
+ * @since 0.70
793
+ *
794
+ * @param array A singular attachment (post) object
795
+ * @return string HTML markup to be placed inside the column
796
+ */
797
+ function column_galleries( $item ) {
798
+ $value = '';
799
+
800
+ foreach ( $item->mla_references['galleries'] as $ID => $gallery ) {
801
+ if ( $ID == $item->post_parent )
802
+ $parent = ',<br>PARENT';
803
+ else
804
+ $parent = '';
805
+
806
+ $value .= sprintf( '(%1$s %2$s%3$s), <a href="%4$s">%5$s</a>',
807
+ /*%1$s*/ esc_attr( $gallery['post_type'] ),
808
+ /*%2$s*/ $ID,
809
+ /*%3$s*/ $parent,
810
+ /*%4$s*/ esc_url( add_query_arg( array('post' => $ID, 'action' => 'edit'), 'post.php' ) ),
811
+ /*%5$s*/ esc_attr( $gallery['post_title'] ) ) . "<br>\r\n";
812
+ } // foreach $gallery
813
+
814
+ return $value;
815
+ }
816
+
817
+ /**
818
+ * Supply the content for a custom column
819
+ *
820
+ * @since 0.70
821
+ *
822
+ * @param array A singular attachment (post) object
823
+ * @return string HTML markup to be placed inside the column
824
+ */
825
+ function column_mla_galleries( $item ) {
826
+ $value = '';
827
+
828
+ foreach ( $item->mla_references['mla_galleries'] as $ID => $gallery ) {
829
+ if ( $ID == $item->post_parent )
830
+ $parent = ',<br>PARENT ';
831
+ else
832
+ $parent = '';
833
+
834
+ $value .= sprintf( '(%1$s %2$s%3$s), <a href="%4$s">%5$s</a>',
835
+ /*%1$s*/ esc_attr( $gallery['post_type'] ),
836
+ /*%2$s*/ $ID,
837
+ /*%3$s*/ $parent,
838
+ /*%4$s*/ esc_url( add_query_arg( array('post' => $ID, 'action' => 'edit'), 'post.php' ) ),
839
+ /*%5$s*/ esc_attr( $gallery['post_title'] ) ) . "<br>\r\n";
840
+ } // foreach $gallery
841
+
842
+ return $value;
843
+ }
844
+
845
  /**
846
  * Supply the content for a custom column
847
  *
999
  $parent_date = '';
1000
 
1001
  if ( isset( $item->parent_title ) )
 
1002
  $parent_title = sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
1003
  'post' => $item->post_parent,
1004
  'action' => 'edit'
1007
  $parent_title = '(Unattached)';
1008
 
1009
  if ( isset( $item->parent_type ) )
1010
+ $parent_type = '(' . $item->parent_type . ' ' . (string) $item->post_parent . ')';
1011
  else
1012
  $parent_type = '';
1013
 
includes/class-mla-main.php CHANGED
@@ -38,7 +38,7 @@ class MLA {
38
  *
39
  * @var string
40
  */
41
- const CURRENT_MLA_VERSION = '0.60';
42
 
43
  /**
44
  * Minimum version of PHP required for this plugin
38
  *
39
  * @var string
40
  */
41
+ const CURRENT_MLA_VERSION = '0.70';
42
 
43
  /**
44
  * Minimum version of PHP required for this plugin
includes/class-mla-shortcodes.php CHANGED
@@ -131,6 +131,15 @@ class MLAShortcodes {
131
  */
132
  private static $mla_debug_messages = '';
133
 
 
 
 
 
 
 
 
 
 
134
  /**
135
  * The MLA Gallery shortcode.
136
  *
@@ -150,16 +159,141 @@ class MLAShortcodes {
150
  static $instance = 0;
151
  $instance++;
152
 
 
 
 
153
  $default_arguments = array(
154
- 'order' => 'ASC', // or 'DESC' or 'RAND'
155
- 'orderby' => 'menu_order ID',
156
- 'id' => NULL,
157
  'itemtag' => 'dl',
158
  'icontag' => 'dt',
159
  'captiontag' => 'dd',
160
- 'link' => 'permalink', // or 'file'
161
  'columns' => 3,
162
- 'size' => 'thumbnail',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  'ids' => array ( ),
164
  'include' => array ( ),
165
  'exclude' => array ( ),
@@ -204,16 +338,16 @@ class MLAShortcodes {
204
  'meta_compare' => '',
205
  'meta_query' => '',
206
  // Search
207
- 's' => '',
208
- // Debug
209
- 'mla_debug' => false
210
  );
211
 
212
  /*
213
  * Merge input arguments with defaults, then extract the query arguments.
214
- * $query_arguments has been initialized in the taxonomy code above.
215
  */
216
 
 
 
 
217
  $arguments = shortcode_atts( $default_arguments, $attr );
218
 
219
  if ( 'RAND' == $arguments['order'] )
@@ -258,8 +392,11 @@ class MLAShortcodes {
258
  unset( $arguments['orderby'] );
259
  }
260
 
 
 
 
261
  $use_children = empty( $query_arguments );
262
- $mla_debug = false;
263
  foreach ($arguments as $key => $value ) {
264
  /*
265
  * There are several "fallthru" cases in this switch statement that decide
@@ -269,7 +406,7 @@ class MLAShortcodes {
269
  switch ( $key ) {
270
  case 'post_parent':
271
  if ( 'current' == strtolower( $value ) )
272
- $value = $post->ID;
273
  elseif ( 'all' == strtolower( $value ) ) {
274
  $value = NULL;
275
  $use_children = false;
@@ -403,7 +540,7 @@ class MLAShortcodes {
403
  break;
404
  case 'mla_debug': // boolean
405
  if ( ! empty( $value ) && ( 'true' == strtolower( $value ) ) )
406
- $mla_debug = true;
407
  unset( $arguments[ $key ] );
408
  break;
409
  default:
@@ -416,7 +553,7 @@ class MLAShortcodes {
416
  */
417
  if ( $use_children && empty( $query_arguments['post_parent'] ) ) {
418
  if ( empty( $query_arguments['id'] ) )
419
- $query_arguments['post_parent'] = $post->ID;
420
  else
421
  $query_arguments['post_parent'] = $query_arguments['id'];
422
 
@@ -425,144 +562,71 @@ class MLAShortcodes {
425
 
426
  if ( isset( $query_arguments['posts_per_page'] ) || isset( $query_arguments['posts_per_archive_page'] ) ||
427
  isset( $query_arguments['paged'] ) || isset( $query_arguments['offset'] ) ) {
428
- unset ($query_arguments['nopaging'] );
429
  }
430
 
431
  if ( isset( $query_arguments['orderby'] ) && ('rand' == $query_arguments['orderby'] ) )
432
- unset ($query_arguments['order'] );
433
 
434
  if ( isset( $query_arguments['order'] ) && ('rand' == $query_arguments['order'] ) )
435
- unset ($query_arguments['orderby'] );
436
 
437
  if ( isset( $query_arguments['post_mime_type'] ) && ('all' == strtolower( $query_arguments['post_mime_type'] ) ) )
438
- unset ($query_arguments['post_mime_type'] );
439
 
440
- $attachments = self::_get_attachments( $query_arguments, $mla_debug );
441
- if ( empty($attachments) ) {
442
- if ( $mla_debug ) {
443
- $output = '<p><strong>mla_debug</strong> empty gallery, query = ' . var_export( $query_arguments, true ) . '</p>';
444
- $output .= self::$mla_debug_messages;
445
- self::$mla_debug_messages = '';
446
- return $output;
447
- }
448
- else
449
- return '';
450
- }
451
-
452
- if ( is_feed() ) {
453
- $output = "\n";
454
- foreach ( $attachments as $att_id => $attachment )
455
- $output .= wp_get_attachment_link($att_id, $arguments['size'], true) . "\n";
456
- return $output;
457
- }
458
-
459
- $id = $post->ID;
460
- $itemtag = tag_escape( $arguments['itemtag'] );
461
- $icontag = tag_escape( $arguments['icontag'] );
462
- $captiontag = tag_escape( $arguments['captiontag'] );
463
- $columns = intval( $arguments['columns']);
464
- $itemwidth = $columns > 0 ? floor(100/$columns) : 100;
465
- $float = is_rtl() ? 'right' : 'left';
466
-
467
- $size = $arguments['size'];
468
- if ( 'icon' == strtolower( $size) ) {
469
- $size = array( 60, 60 );
470
- $show_icon = true;
471
- }
472
- else
473
- $show_icon = false;
474
-
475
- $selector = "gallery-{$instance}";
476
-
477
- $gallery_style = $gallery_div = '';
478
- if ( apply_filters( 'use_default_gallery_style', true ) )
479
- $gallery_style = "
480
- <style type='text/css'>
481
- #{$selector} {
482
- margin: auto;
483
- }
484
- #{$selector} .gallery-item {
485
- float: {$float};
486
- margin-top: 10px;
487
- text-align: center;
488
- width: {$itemwidth}%;
489
- }
490
- #{$selector} img {
491
- border: 2px solid #cfcfcf;
492
- }
493
- #{$selector} .gallery-caption {
494
- margin-left: 0;
495
- }
496
- </style>
497
- <!-- see gallery_shortcode() in wp-includes/media.php -->";
498
- $size_class = sanitize_html_class( $size );
499
- $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
500
- $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
501
 
502
- if ( $mla_debug ) {
503
- $output .= '<p><strong>mla_debug</strong> query = ' . var_export( $query_arguments, true ) . '</p>';
504
- $output .= self::$mla_debug_messages;
505
- self::$mla_debug_messages = '';
506
- }
507
-
508
- $i = 0;
509
- foreach ( $attachments as $id => $attachment ) {
510
- $link = isset($arguments['link']) && 'file' == $arguments['link'] ? wp_get_attachment_link($attachment->ID, $size, false, $show_icon) : wp_get_attachment_link($attachment->ID, $size, true, $show_icon);
511
 
512
- $output .= "<{$itemtag} class='gallery-item'>";
513
- $output .= "
514
- <{$icontag} class='gallery-icon'>
515
- $link
516
- </{$icontag}>";
517
- if ( $captiontag && trim( $attachment->post_excerpt ) ) {
518
- $output .= "
519
- <{$captiontag} class='wp-caption-text gallery-caption'>
520
- " . wptexturize( $attachment->post_excerpt ) . "
521
- </{$captiontag}>";
522
- }
523
- $output .= "</{$itemtag}>";
524
- if ( $columns > 0 && ++$i % $columns == 0 )
525
- $output .= '<br style="clear: both" />';
526
  }
 
 
527
 
528
- $output .= "
529
- <br style='clear: both;' />
530
- </div>\n";
531
-
532
- return $output;
533
  }
534
-
535
  /**
536
- * Replaces /wp-includes/post.php function get_posts()
 
 
 
 
537
  *
538
- * @since .50
539
  *
540
- * @param array Attributes of the shortcode
541
- * @param boolean True to add debug information to self::$mla_debug_messages
542
  *
543
- * @return array List of attachments returned from WP_Query
544
  */
545
- private static function _get_attachments( $args , $mla_debug = false ) {
546
- if ( ! empty($args['include']) ) {
547
- $incposts = wp_parse_id_list( $args['include'] );
548
- $args['posts_per_page'] = count($incposts); // only the number of posts included
549
- $args['post__in'] = $incposts;
550
- } elseif ( ! empty($args['exclude']) )
551
- $args['post__not_in'] = wp_parse_id_list( $args['exclude'] );
552
-
553
- $args['ignore_sticky_posts'] = true;
554
- $args['no_found_rows'] = true;
555
-
556
- $get_posts = new WP_Query;
557
- $attachments = $get_posts->query($args);
558
-
559
- if ( $mla_debug ) {
560
- self::$mla_debug_messages .= '<p><strong>mla_debug</strong> request = ' . var_export( $get_posts->request, true ) . '</p>';
561
- self::$mla_debug_messages .= '<p><strong>mla_debug</strong> query_vars = ' . var_export( $get_posts->query_vars, true ) . '</p>';
562
  }
563
 
564
- return $attachments;
565
-
 
 
 
 
 
 
566
  }
567
  } // Class MLAShortcodes
568
  ?>
131
  */
132
  private static $mla_debug_messages = '';
133
 
134
+ /**
135
+ * Turn debug collection and display on or off
136
+ *
137
+ * @since 0.70
138
+ *
139
+ * @var boolean
140
+ */
141
+ private static $mla_debug = false;
142
+
143
  /**
144
  * The MLA Gallery shortcode.
145
  *
159
  static $instance = 0;
160
  $instance++;
161
 
162
+ /*
163
+ * These are the parameters for gallery display
164
+ */
165
  $default_arguments = array(
166
+ 'size' => 'thumbnail',
 
 
167
  'itemtag' => 'dl',
168
  'icontag' => 'dt',
169
  'captiontag' => 'dd',
 
170
  'columns' => 3,
171
+ 'link' => 'permalink', // or 'file'
172
+ // MLA-specific
173
+ 'mla_debug' => false
174
+ );
175
+
176
+ /*
177
+ * Merge gallery arguments with defaults, pass the query arguments on to mla_get_shortcode_attachments.
178
+ */
179
+
180
+ $arguments = shortcode_atts( $default_arguments, $attr );
181
+
182
+ self::$mla_debug = !empty( $default_arguments['mla_debug'] ) && ( 'true' == strtolower( $default_arguments['mla_debug'] ) );
183
+
184
+ $attachments = self::mla_get_shortcode_attachments( $post->ID, $attr );
185
+ if ( empty($attachments) ) {
186
+ if ( self::$mla_debug ) {
187
+ $output = '<p><strong>mla_debug</strong> empty gallery, query = ' . var_export( $attr, true ) . '</p>';
188
+ $output .= self::$mla_debug_messages;
189
+ self::$mla_debug_messages = '';
190
+ return $output;
191
+ }
192
+ else {
193
+ return '';
194
+ }
195
+ } // empty $attachments
196
+
197
+ $size = $arguments['size'];
198
+ if ( 'icon' == strtolower( $size) ) {
199
+ $size = array( 60, 60 );
200
+ $show_icon = true;
201
+ }
202
+ else
203
+ $show_icon = false;
204
+
205
+ if ( is_feed() ) {
206
+ $output = "\n";
207
+ foreach ( $attachments as $att_id => $attachment )
208
+ $output .= wp_get_attachment_link($att_id, $size, true) . "\n";
209
+ return $output;
210
+ }
211
+
212
+ $id = $post->ID;
213
+ $itemtag = tag_escape( $arguments['itemtag'] );
214
+ $icontag = tag_escape( $arguments['icontag'] );
215
+ $captiontag = tag_escape( $arguments['captiontag'] );
216
+ $columns = intval( $arguments['columns']);
217
+ $itemwidth = $columns > 0 ? floor(100/$columns) : 100;
218
+ $float = is_rtl() ? 'right' : 'left';
219
+
220
+ $selector = "gallery-{$instance}";
221
+
222
+ $gallery_style = $gallery_div = '';
223
+ if ( apply_filters( 'use_default_gallery_style', true ) )
224
+ $gallery_style = "
225
+ <style type='text/css'>
226
+ #{$selector} {
227
+ margin: auto;
228
+ }
229
+ #{$selector} .gallery-item {
230
+ float: {$float};
231
+ margin-top: 10px;
232
+ text-align: center;
233
+ width: {$itemwidth}%;
234
+ }
235
+ #{$selector} img {
236
+ border: 2px solid #cfcfcf;
237
+ }
238
+ #{$selector} .gallery-caption {
239
+ margin-left: 0;
240
+ }
241
+ </style>
242
+ <!-- see gallery_shortcode() in wp-includes/media.php -->";
243
+ $size_class = sanitize_html_class( $size );
244
+ $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
245
+ $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
246
+
247
+ if ( self::$mla_debug ) {
248
+ $output .= self::$mla_debug_messages;
249
+ self::$mla_debug_messages = '';
250
+ }
251
+
252
+ $i = 0;
253
+ foreach ( $attachments as $id => $attachment ) {
254
+ $link = isset($arguments['link']) && 'file' == $arguments['link'] ? wp_get_attachment_link($attachment->ID, $size, false, $show_icon) : wp_get_attachment_link($attachment->ID, $size, true, $show_icon);
255
+
256
+ $output .= "<{$itemtag} class='gallery-item'>";
257
+ $output .= "
258
+ <{$icontag} class='gallery-icon'>
259
+ $link
260
+ </{$icontag}>";
261
+ if ( $captiontag && trim( $attachment->post_excerpt ) ) {
262
+ $output .= "
263
+ <{$captiontag} class='wp-caption-text gallery-caption'>
264
+ " . wptexturize( $attachment->post_excerpt ) . "
265
+ </{$captiontag}>";
266
+ }
267
+ $output .= "</{$itemtag}>";
268
+ if ( $columns > 0 && ++$i % $columns == 0 )
269
+ $output .= '<br style="clear: both" />';
270
+ }
271
+
272
+ $output .= "
273
+ <br style='clear: both;' />
274
+ </div>\n";
275
+
276
+ return $output;
277
+ }
278
+
279
+ /**
280
+ * Parses shortcode parameters and returns the gallery objects
281
+ *
282
+ * @since .50
283
+ *
284
+ * @param int Post ID of the parent
285
+ * @param array Attributes of the shortcode
286
+ *
287
+ * @return array List of attachments returned from WP_Query
288
+ */
289
+ public static function mla_get_shortcode_attachments( $post_parent, $attr ) {
290
+ /*
291
+ * These are the parameters for the query
292
+ */
293
+ $default_arguments = array(
294
+ 'order' => 'ASC', // or 'DESC' or 'RAND'
295
+ 'orderby' => 'menu_order ID',
296
+ 'id' => NULL,
297
  'ids' => array ( ),
298
  'include' => array ( ),
299
  'exclude' => array ( ),
338
  'meta_compare' => '',
339
  'meta_query' => '',
340
  // Search
341
+ 's' => ''
 
 
342
  );
343
 
344
  /*
345
  * Merge input arguments with defaults, then extract the query arguments.
 
346
  */
347
 
348
+ if ( is_string( $attr ) )
349
+ $attr = shortcode_parse_atts( $attr );
350
+
351
  $arguments = shortcode_atts( $default_arguments, $attr );
352
 
353
  if ( 'RAND' == $arguments['order'] )
392
  unset( $arguments['orderby'] );
393
  }
394
 
395
+ /*
396
+ * $query_arguments has been initialized in the taxonomy code above.
397
+ */
398
  $use_children = empty( $query_arguments );
399
+ self::$mla_debug = false;
400
  foreach ($arguments as $key => $value ) {
401
  /*
402
  * There are several "fallthru" cases in this switch statement that decide
406
  switch ( $key ) {
407
  case 'post_parent':
408
  if ( 'current' == strtolower( $value ) )
409
+ $value = $post_parent;
410
  elseif ( 'all' == strtolower( $value ) ) {
411
  $value = NULL;
412
  $use_children = false;
540
  break;
541
  case 'mla_debug': // boolean
542
  if ( ! empty( $value ) && ( 'true' == strtolower( $value ) ) )
543
+ self::$mla_debug = true;
544
  unset( $arguments[ $key ] );
545
  break;
546
  default:
553
  */
554
  if ( $use_children && empty( $query_arguments['post_parent'] ) ) {
555
  if ( empty( $query_arguments['id'] ) )
556
+ $query_arguments['post_parent'] = $post_parent;
557
  else
558
  $query_arguments['post_parent'] = $query_arguments['id'];
559
 
562
 
563
  if ( isset( $query_arguments['posts_per_page'] ) || isset( $query_arguments['posts_per_archive_page'] ) ||
564
  isset( $query_arguments['paged'] ) || isset( $query_arguments['offset'] ) ) {
565
+ unset ( $query_arguments['nopaging'] );
566
  }
567
 
568
  if ( isset( $query_arguments['orderby'] ) && ('rand' == $query_arguments['orderby'] ) )
569
+ unset ( $query_arguments['order'] );
570
 
571
  if ( isset( $query_arguments['order'] ) && ('rand' == $query_arguments['order'] ) )
572
+ unset ( $query_arguments['orderby'] );
573
 
574
  if ( isset( $query_arguments['post_mime_type'] ) && ('all' == strtolower( $query_arguments['post_mime_type'] ) ) )
575
+ unset ( $query_arguments['post_mime_type'] );
576
 
577
+ if ( ! empty($query_arguments['include']) ) {
578
+ $incposts = wp_parse_id_list( $query_arguments['include'] );
579
+ $query_arguments['posts_per_page'] = count($incposts); // only the number of posts included
580
+ $query_arguments['post__in'] = $incposts;
581
+ } elseif ( ! empty($query_arguments['exclude']) )
582
+ $query_arguments['post__not_in'] = wp_parse_id_list( $query_arguments['exclude'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
583
 
584
+ $query_arguments['ignore_sticky_posts'] = true;
585
+ $query_arguments['no_found_rows'] = true;
 
 
 
 
 
 
 
586
 
587
+ add_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter' );
588
+ $get_posts = new WP_Query;
589
+ $attachments = $get_posts->query($query_arguments);
590
+ remove_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter' );
591
+
592
+ if ( self::$mla_debug ) {
593
+ self::$mla_debug_messages .= '<p><strong>mla_debug</strong> query = ' . var_export( $query_arguments, true ) . '</p>';
594
+ self::$mla_debug_messages .= '<p><strong>mla_debug</strong> request = ' . var_export( $get_posts->request, true ) . '</p>';
595
+ self::$mla_debug_messages .= '<p><strong>mla_debug</strong> query_vars = ' . var_export( $get_posts->query_vars, true ) . '</p>';
 
 
 
 
 
596
  }
597
+
598
+ return $attachments;
599
 
 
 
 
 
 
600
  }
601
+
602
  /**
603
+ * Filters the WHERE clause for shortcode queries
604
+ *
605
+ * Captures debug information. Adds whitespace to the post_type = 'attachment'
606
+ * phrase to circumvent subsequent Role Scoper modification of the clause.
607
+ * Defined as public because it's a filter.
608
  *
609
+ * @since 0.70
610
  *
611
+ * @param string query clause before modification
 
612
  *
613
+ * @return string query clause after modification
614
  */
615
+ public static function mla_shortcode_query_posts_where_filter( $where_clause ) {
616
+ global $table_prefix;
617
+
618
+ if ( self::$mla_debug ) {
619
+ self::$mla_debug_messages .= '<p><strong>mla_debug</strong> WHERE filter = ' . var_export( $where_clause, true ) . '</p>';
 
 
 
 
 
 
 
 
 
 
 
 
620
  }
621
 
622
+ if ( strpos( $where_clause, "post_type = 'attachment'" ) ) {
623
+ $where_clause = str_replace( "post_type = 'attachment'", "post_type = 'attachment'", $where_clause );
624
+
625
+ if ( self::$mla_debug )
626
+ self::$mla_debug_messages .= '<p><strong>mla_debug</strong> modified WHERE filter = ' . var_export( $where_clause, true ) . '</p>';
627
+ }
628
+
629
+ return $where_clause;
630
  }
631
  } // Class MLAShortcodes
632
  ?>
index.php CHANGED
@@ -6,7 +6,7 @@
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
- * @version 0.60
10
  */
11
 
12
  /*
@@ -14,7 +14,7 @@ Plugin Name: Media Library Assistant
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Provides several enhancements to the handling of images and files held in the WordPress Media Library.
16
  Author: David Lingren
17
- Version: 0.60
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 0.70
10
  */
11
 
12
  /*
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Provides several enhancements to the handling of images and files held in the WordPress Media Library.
16
  Author: David Lingren
17
+ Version: 0.70
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
phpDocs/classes/MLA.html CHANGED
@@ -759,7 +759,7 @@ for a single attachment.</h2>
759
  <div class="row"><footer class="span12">
760
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
761
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
762
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
763
  </div>
764
  </body>
765
  </html>
759
  <div class="row"><footer class="span12">
760
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
761
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
762
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
763
  </div>
764
  </body>
765
  </html>
phpDocs/classes/MLAData.html CHANGED
@@ -64,13 +64,17 @@
64
  <li class="method public "><a href="#mla_query_posts_search_filter" title="mla_query_posts_search_filter :: Adds a keyword search to the WHERE clause, if required"><span class="description">Adds a keyword search to the WHERE clause, if required</span><pre>mla_query_posts_search_filter()</pre></a></li>
65
  <li class="method public "><a href="#mla_query_posts_where_filter" title="mla_query_posts_where_filter :: Adds a WHERE clause for detached items"><span class="description">Adds a WHERE clause for detached items</span><pre>mla_query_posts_where_filter()</pre></a></li>
66
  <li class="nav-header private">» Private</li>
 
67
  <li class="method private "><a href="#_execute_list_table_query" title="_execute_list_table_query :: Add filters, run query, remove filters"><span class="description">Add filters, run query, remove filters</span><pre>_execute_list_table_query()</pre></a></li>
68
  <li class="method private "><a href="#_fetch_attachment_metadata" title="_fetch_attachment_metadata :: Fetch and filter meta data for an attachment"><span class="description">Fetch and filter meta data for an attachment</span><pre>_fetch_attachment_metadata()</pre></a></li>
69
  <li class="method private "><a href="#_fetch_attachment_parent_data" title="_fetch_attachment_parent_data :: Returns information about an attachment's parent, if found"><span class="description">Returns information about an attachment's parent, if found</span><pre>_fetch_attachment_parent_data()</pre></a></li>
70
  <li class="method private "><a href="#_prepare_list_table_query" title="_prepare_list_table_query :: Sanitize and expand query arguments from request variables"><span class="description">Sanitize and expand query arguments from request variables</span><pre>_prepare_list_table_query()</pre></a></li>
 
71
  <li class="nav-header">
72
  <i class="icon-custom icon-property"></i> Properties</li>
73
  <li class="nav-header private">» Private</li>
 
 
74
  <li class="property private "><a href="#%24query_parameters" title='$query_parameters :: WP_Query filter "parameters"'><span class="description">WP_Query filter "parameters"</span><pre>$query_parameters</pre></a></li>
75
  </ul>
76
  </div>
@@ -334,6 +338,31 @@ Defined as public because it's a filter.</p></p>
334
  <code>string</code>query clause after "detached" item modification</div>
335
  </div></div>
336
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  <a name="_execute_list_table_query" id="_execute_list_table_query"></a><div class="element clickable method private _execute_list_table_query" data-toggle="collapse" data-target="._execute_list_table_query .collapse">
338
  <h2>Add filters, run query, remove filters</h2>
339
  <pre>_execute_list_table_query(array $request) : object</pre>
@@ -423,8 +452,65 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p></p>
423
  <code>array</code>revised arguments suitable for WP_Query</div>
424
  </div></div>
425
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
426
  <h3>
427
  <i class="icon-custom icon-property"></i> Properties</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
428
  <a name="%24query_parameters" id="$query_parameters"> </a><div class="element clickable property private $query_parameters" data-toggle="collapse" data-target=".$query_parameters .collapse">
429
  <h2>WP_Query filter "parameters"</h2>
430
  <pre>$query_parameters : array</pre>
@@ -446,7 +532,7 @@ any further logic required to translate those values is contained in the filters
446
  <div class="row"><footer class="span12">
447
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
448
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
449
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
450
  </div>
451
  </body>
452
  </html>
64
  <li class="method public "><a href="#mla_query_posts_search_filter" title="mla_query_posts_search_filter :: Adds a keyword search to the WHERE clause, if required"><span class="description">Adds a keyword search to the WHERE clause, if required</span><pre>mla_query_posts_search_filter()</pre></a></li>
65
  <li class="method public "><a href="#mla_query_posts_where_filter" title="mla_query_posts_where_filter :: Adds a WHERE clause for detached items"><span class="description">Adds a WHERE clause for detached items</span><pre>mla_query_posts_where_filter()</pre></a></li>
66
  <li class="nav-header private">» Private</li>
67
+ <li class="method private "><a href="#_build_mla_galleries" title="_build_mla_galleries :: Builds the $mla_galleries or $galleries array"><span class="description">Builds the $mla_galleries or $galleries array</span><pre>_build_mla_galleries()</pre></a></li>
68
  <li class="method private "><a href="#_execute_list_table_query" title="_execute_list_table_query :: Add filters, run query, remove filters"><span class="description">Add filters, run query, remove filters</span><pre>_execute_list_table_query()</pre></a></li>
69
  <li class="method private "><a href="#_fetch_attachment_metadata" title="_fetch_attachment_metadata :: Fetch and filter meta data for an attachment"><span class="description">Fetch and filter meta data for an attachment</span><pre>_fetch_attachment_metadata()</pre></a></li>
70
  <li class="method private "><a href="#_fetch_attachment_parent_data" title="_fetch_attachment_parent_data :: Returns information about an attachment's parent, if found"><span class="description">Returns information about an attachment's parent, if found</span><pre>_fetch_attachment_parent_data()</pre></a></li>
71
  <li class="method private "><a href="#_prepare_list_table_query" title="_prepare_list_table_query :: Sanitize and expand query arguments from request variables"><span class="description">Sanitize and expand query arguments from request variables</span><pre>_prepare_list_table_query()</pre></a></li>
72
+ <li class="method private "><a href="#_search_mla_galleries" title="_search_mla_galleries :: Search the $mla_galleries or $galleries array"><span class="description">Search the $mla_galleries or $galleries array</span><pre>_search_mla_galleries()</pre></a></li>
73
  <li class="nav-header">
74
  <i class="icon-custom icon-property"></i> Properties</li>
75
  <li class="nav-header private">» Private</li>
76
+ <li class="property private "><a href="#%24galleries" title="$galleries :: Objects containing [gallery] shortcodes"><span class="description">Objects containing [gallery] shortcodes</span><pre>$galleries</pre></a></li>
77
+ <li class="property private "><a href="#%24mla_galleries" title="$mla_galleries :: Objects containing [mla_gallery] shortcodes"><span class="description">Objects containing [mla_gallery] shortcodes</span><pre>$mla_galleries</pre></a></li>
78
  <li class="property private "><a href="#%24query_parameters" title='$query_parameters :: WP_Query filter "parameters"'><span class="description">WP_Query filter "parameters"</span><pre>$query_parameters</pre></a></li>
79
  </ul>
80
  </div>
338
  <code>string</code>query clause after "detached" item modification</div>
339
  </div></div>
340
  </div>
341
+ <a name="_build_mla_galleries" id="_build_mla_galleries"></a><div class="element clickable method private _build_mla_galleries" data-toggle="collapse" data-target="._build_mla_galleries .collapse">
342
+ <h2>Builds the $mla_galleries or $galleries array</h2>
343
+ <pre>_build_mla_galleries(array $galleries_array, string $shortcode, boolean $exclude_revisions) : boolean</pre>
344
+ <div class="labels"></div>
345
+ <div class="row collapse"><div class="detail-description">
346
+ <p class="long_description"></p>
347
+ <table class="table table-bordered"><tr>
348
+ <th>since</th>
349
+ <td>0.70</td>
350
+ </tr></table>
351
+ <h3>Parameters</h3>
352
+ <div class="subelement argument">
353
+ <h4>$galleries_array</h4>
354
+ <code>array</code><p>by reference to the private static galleries array variable</p></div>
355
+ <div class="subelement argument">
356
+ <h4>$shortcode</h4>
357
+ <code>string</code><p>the shortcode to be searched for and processed</p></div>
358
+ <div class="subelement argument">
359
+ <h4>$exclude_revisions</h4>
360
+ <code>boolean</code><p>true to exclude revisions from the search</p></div>
361
+ <h3>Returns</h3>
362
+ <div class="subelement response">
363
+ <code>boolean</code>true if the galleries array is not empty</div>
364
+ </div></div>
365
+ </div>
366
  <a name="_execute_list_table_query" id="_execute_list_table_query"></a><div class="element clickable method private _execute_list_table_query" data-toggle="collapse" data-target="._execute_list_table_query .collapse">
367
  <h2>Add filters, run query, remove filters</h2>
368
  <pre>_execute_list_table_query(array $request) : object</pre>
452
  <code>array</code>revised arguments suitable for WP_Query</div>
453
  </div></div>
454
  </div>
455
+ <a name="_search_mla_galleries" id="_search_mla_galleries"></a><div class="element clickable method private _search_mla_galleries" data-toggle="collapse" data-target="._search_mla_galleries .collapse">
456
+ <h2>Search the $mla_galleries or $galleries array</h2>
457
+ <pre>_search_mla_galleries(array $galleries_array, int $attachment_id) : array</pre>
458
+ <div class="labels"></div>
459
+ <div class="row collapse"><div class="detail-description">
460
+ <p class="long_description"></p>
461
+ <table class="table table-bordered"><tr>
462
+ <th>since</th>
463
+ <td>0.70</td>
464
+ </tr></table>
465
+ <h3>Parameters</h3>
466
+ <div class="subelement argument">
467
+ <h4>$galleries_array</h4>
468
+ <code>array</code><p>by reference to the private static galleries array variable</p></div>
469
+ <div class="subelement argument">
470
+ <h4>$attachment_id</h4>
471
+ <code>int</code><p>the attachment ID to be searched for and processed</p></div>
472
+ <h3>Returns</h3>
473
+ <div class="subelement response">
474
+ <code>array</code>All posts/pages with one or more galleries that include the attachment. The array key is the parent_post ID; each entry contains post_title and post_type.</div>
475
+ </div></div>
476
+ </div>
477
  <h3>
478
  <i class="icon-custom icon-property"></i> Properties</h3>
479
+ <a name="%24galleries" id="$galleries"> </a><div class="element clickable property private $galleries" data-toggle="collapse" data-target=".$galleries .collapse">
480
+ <h2>Objects containing [gallery] shortcodes</h2>
481
+ <pre>$galleries : array</pre>
482
+ <div class="labels"></div>
483
+ <div class="row collapse"><div class="detail-description">
484
+ <p class="long_description"><p>This array contains all of the objects containing one or more [gallery] shortcodes
485
+ and array(s) of which attachments each [gallery] contains. The arrays are built once
486
+ each page load and cached for subsequent calls.</p>
487
+
488
+ <p>The outer array is keyed by post_id. It contains an array of [gallery] entries numbered from one (1).
489
+ Each inner array has these elements:
490
+ ['parent_title'] post_title of the gallery parent,
491
+ ['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
492
+ ['query'] contains a string with the arguments of the [gallery],
493
+ ['results'] contains an array of post_ids for the objects in the gallery.</p></p>
494
+ <table class="table table-bordered"><tr>
495
+ <th>since</th>
496
+ <td>0.70</td>
497
+ </tr></table>
498
+ </div></div>
499
+ </div>
500
+ <a name="%24mla_galleries" id="$mla_galleries"> </a><div class="element clickable property private $mla_galleries" data-toggle="collapse" data-target=".$mla_galleries .collapse">
501
+ <h2>Objects containing [mla_gallery] shortcodes</h2>
502
+ <pre>$mla_galleries : array</pre>
503
+ <div class="labels"></div>
504
+ <div class="row collapse"><div class="detail-description">
505
+ <p class="long_description"><p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
506
+ and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
507
+ each page load and cached for subsequent calls.</p></p>
508
+ <table class="table table-bordered"><tr>
509
+ <th>since</th>
510
+ <td>0.70</td>
511
+ </tr></table>
512
+ </div></div>
513
+ </div>
514
  <a name="%24query_parameters" id="$query_parameters"> </a><div class="element clickable property private $query_parameters" data-toggle="collapse" data-target=".$query_parameters .collapse">
515
  <h2>WP_Query filter "parameters"</h2>
516
  <pre>$query_parameters : array</pre>
532
  <div class="row"><footer class="span12">
533
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
534
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
535
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
536
  </div>
537
  </body>
538
  </html>
phpDocs/classes/MLAObjects.html CHANGED
@@ -167,7 +167,7 @@ which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
167
  <div class="row"><footer class="span12">
168
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
169
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
170
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
171
  </div>
172
  </body>
173
  </html>
167
  <div class="row"><footer class="span12">
168
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
169
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
170
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
171
  </div>
172
  </body>
173
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -442,7 +442,7 @@ reset => reset function for 'custom' options; returns nothing. Usage:
442
  <div class="row"><footer class="span12">
443
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
444
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
445
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
446
  </div>
447
  </body>
448
  </html>
442
  <div class="row"><footer class="span12">
443
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
444
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
445
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
446
  </div>
447
  </body>
448
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -55,11 +55,12 @@
55
  <li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
56
  <li class="method public "><a href="#mla_attachment_list_shortcode" title="mla_attachment_list_shortcode :: WordPress Shortcode; renders a complete list of all attachments and references to them"><span class="description">WordPress Shortcode; renders a complete list of all attachments and references to them</span><pre>mla_attachment_list_shortcode()</pre></a></li>
57
  <li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
58
- <li class="nav-header private" Private</li>
59
- <li class="method private "><a href="#_get_attachments" title="_get_attachments :: Replaces /wp-includes/post.php function get_posts()"><span class="description">Replaces /wp-includes/post.php function get_posts()</span><pre>_get_attachments()</pre></a></li>
60
  <li class="nav-header">
61
  <i class="icon-custom icon-property"></i> Properties</li>
62
  <li class="nav-header private">» Private</li>
 
63
  <li class="property private "><a href="#%24mla_debug_messages" title="$mla_debug_messages :: Accumulates debug messages"><span class="description">Accumulates debug messages</span><pre>$mla_debug_messages</pre></a></li>
64
  </ul>
65
  </div>
@@ -134,9 +135,9 @@ Enhancements include many additional selection parameters and full taxonomy supp
134
  <code>string</code>HTML content to display gallery.</div>
135
  </div></div>
136
  </div>
137
- <a name="_get_attachments" id="_get_attachments"></a><div class="element clickable method private _get_attachments" data-toggle="collapse" data-target="._get_attachments .collapse">
138
- <h2>Replaces /wp-includes/post.php function get_posts()</h2>
139
- <pre>_get_attachments(array $args, boolean $mla_debug) : array</pre>
140
  <div class="labels"></div>
141
  <div class="row collapse"><div class="detail-description">
142
  <p class="long_description"></p>
@@ -146,19 +147,51 @@ Enhancements include many additional selection parameters and full taxonomy supp
146
  </tr></table>
147
  <h3>Parameters</h3>
148
  <div class="subelement argument">
149
- <h4>$args</h4>
150
- <code>array</code><p>Attributes of the shortcode</p></div>
151
  <div class="subelement argument">
152
- <h4>$mla_debug</h4>
153
- <code>boolean</code><p>True to add debug information to self::$mla_debug_messages</p>
154
- </div>
155
  <h3>Returns</h3>
156
  <div class="subelement response">
157
  <code>array</code>List of attachments returned from WP_Query</div>
158
  </div></div>
159
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  <h3>
161
  <i class="icon-custom icon-property"></i> Properties</h3>
 
 
 
 
 
 
 
 
 
 
 
 
162
  <a name="%24mla_debug_messages" id="$mla_debug_messages"> </a><div class="element clickable property private $mla_debug_messages" data-toggle="collapse" data-target=".$mla_debug_messages .collapse">
163
  <h2>Accumulates debug messages</h2>
164
  <pre>$mla_debug_messages : string</pre>
@@ -178,7 +211,7 @@ Enhancements include many additional selection parameters and full taxonomy supp
178
  <div class="row"><footer class="span12">
179
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
180
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
181
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
55
  <li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
56
  <li class="method public "><a href="#mla_attachment_list_shortcode" title="mla_attachment_list_shortcode :: WordPress Shortcode; renders a complete list of all attachments and references to them"><span class="description">WordPress Shortcode; renders a complete list of all attachments and references to them</span><pre>mla_attachment_list_shortcode()</pre></a></li>
57
  <li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
58
+ <li class="method public "><a href="#mla_get_shortcode_attachments" title="mla_get_shortcode_attachments :: Parses shortcode parameters and returns the gallery objects"><span class="description">Parses shortcode parameters and returns the gallery objects</span><pre>mla_get_shortcode_attachments()</pre></a></li>
59
+ <li class="method public "><a href="#mla_shortcode_query_posts_where_filter" title="mla_shortcode_query_posts_where_filter :: Filters the WHERE clause for shortcode queries"><span class="description">Filters the WHERE clause for shortcode queries</span><pre>mla_shortcode_query_posts_where_filter()</pre></a></li>
60
  <li class="nav-header">
61
  <i class="icon-custom icon-property"></i> Properties</li>
62
  <li class="nav-header private">» Private</li>
63
+ <li class="property private "><a href="#%24mla_debug" title="$mla_debug :: Turn debug collection and display on or off"><span class="description">Turn debug collection and display on or off</span><pre>$mla_debug</pre></a></li>
64
  <li class="property private "><a href="#%24mla_debug_messages" title="$mla_debug_messages :: Accumulates debug messages"><span class="description">Accumulates debug messages</span><pre>$mla_debug_messages</pre></a></li>
65
  </ul>
66
  </div>
135
  <code>string</code>HTML content to display gallery.</div>
136
  </div></div>
137
  </div>
138
+ <a name="mla_get_shortcode_attachments" id="mla_get_shortcode_attachments"></a><div class="element clickable method public mla_get_shortcode_attachments" data-toggle="collapse" data-target=".mla_get_shortcode_attachments .collapse">
139
+ <h2>Parses shortcode parameters and returns the gallery objects</h2>
140
+ <pre>mla_get_shortcode_attachments(int $post_parent, array $attr) : array</pre>
141
  <div class="labels"></div>
142
  <div class="row collapse"><div class="detail-description">
143
  <p class="long_description"></p>
147
  </tr></table>
148
  <h3>Parameters</h3>
149
  <div class="subelement argument">
150
+ <h4>$post_parent</h4>
151
+ <code>int</code><p>Post ID of the parent</p></div>
152
  <div class="subelement argument">
153
+ <h4>$attr</h4>
154
+ <code>array</code><p>Attributes of the shortcode</p></div>
 
155
  <h3>Returns</h3>
156
  <div class="subelement response">
157
  <code>array</code>List of attachments returned from WP_Query</div>
158
  </div></div>
159
  </div>
160
+ <a name="mla_shortcode_query_posts_where_filter" id="mla_shortcode_query_posts_where_filter"></a><div class="element clickable method public mla_shortcode_query_posts_where_filter" data-toggle="collapse" data-target=".mla_shortcode_query_posts_where_filter .collapse">
161
+ <h2>Filters the WHERE clause for shortcode queries</h2>
162
+ <pre>mla_shortcode_query_posts_where_filter(string $where_clause) : string</pre>
163
+ <div class="labels"></div>
164
+ <div class="row collapse"><div class="detail-description">
165
+ <p class="long_description"><p>Captures debug information. Adds whitespace to the post_type = 'attachment'
166
+ phrase to circumvent subsequent Role Scoper modification of the clause.
167
+ Defined as public because it's a filter.</p></p>
168
+ <table class="table table-bordered"><tr>
169
+ <th>since</th>
170
+ <td>0.70</td>
171
+ </tr></table>
172
+ <h3>Parameters</h3>
173
+ <div class="subelement argument">
174
+ <h4>$where_clause</h4>
175
+ <code>string</code><p>query clause before modification</p></div>
176
+ <h3>Returns</h3>
177
+ <div class="subelement response">
178
+ <code>string</code>query clause after modification</div>
179
+ </div></div>
180
+ </div>
181
  <h3>
182
  <i class="icon-custom icon-property"></i> Properties</h3>
183
+ <a name="%24mla_debug" id="$mla_debug"> </a><div class="element clickable property private $mla_debug" data-toggle="collapse" data-target=".$mla_debug .collapse">
184
+ <h2>Turn debug collection and display on or off</h2>
185
+ <pre>$mla_debug : boolean</pre>
186
+ <div class="labels"></div>
187
+ <div class="row collapse"><div class="detail-description">
188
+ <p class="long_description"></p>
189
+ <table class="table table-bordered"><tr>
190
+ <th>since</th>
191
+ <td>0.70</td>
192
+ </tr></table>
193
+ </div></div>
194
+ </div>
195
  <a name="%24mla_debug_messages" id="$mla_debug_messages"> </a><div class="element clickable property private $mla_debug_messages" data-toggle="collapse" data-target=".$mla_debug_messages .collapse">
196
  <h2>Accumulates debug messages</h2>
197
  <pre>$mla_debug_messages : string</pre>
211
  <div class="row"><footer class="span12">
212
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
213
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
214
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
215
  </div>
216
  </body>
217
  </html>
phpDocs/classes/MLATest.html CHANGED
@@ -160,7 +160,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
160
  <div class="row"><footer class="span12">
161
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
162
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
163
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
164
  </div>
165
  </body>
166
  </html>
160
  <div class="row"><footer class="span12">
161
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
162
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
163
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
164
  </div>
165
  </body>
166
  </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -66,9 +66,11 @@ calls the parent constructor to set some default configs.</span><pre>__construct
66
  <li class="method public "><a href="#column_default" title="column_default :: Supply a column value if no column-specific function has been defined"><span class="description">Supply a column value if no column-specific function has been defined</span><pre>column_default()</pre></a></li>
67
  <li class="method public "><a href="#column_description" title="column_description :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_description()</pre></a></li>
68
  <li class="method public "><a href="#column_featured" title="column_featured :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_featured()</pre></a></li>
 
69
  <li class="method public "><a href="#column_icon" title="column_icon :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_icon()</pre></a></li>
70
  <li class="method public "><a href="#column_inserted" title="column_inserted :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_inserted()</pre></a></li>
71
  <li class="method public "><a href="#column_menu_order" title="column_menu_order :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_menu_order()</pre></a></li>
 
72
  <li class="method public "><a href="#column_modified" title="column_modified :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_modified()</pre></a></li>
73
  <li class="method public "><a href="#column_parent" title="column_parent :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_parent()</pre></a></li>
74
  <li class="method public "><a href="#column_post_mime_type" title="column_post_mime_type :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_post_mime_type()</pre></a></li>
@@ -377,6 +379,26 @@ have a specific method, so this function returns a troubleshooting message.</p><
377
  <code>string</code>HTML markup to be placed inside the column</div>
378
  </div></div>
379
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
  <a name="column_icon" id="column_icon"></a><div class="element clickable method public column_icon" data-toggle="collapse" data-target=".column_icon .collapse">
381
  <h2>Supply the content for a custom column</h2>
382
  <pre>column_icon(array $item) : string</pre>
@@ -437,6 +459,26 @@ have a specific method, so this function returns a troubleshooting message.</p><
437
  <code>string</code>HTML markup to be placed inside the column</div>
438
  </div></div>
439
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440
  <a name="column_modified" id="column_modified"></a><div class="element clickable method public column_modified" data-toggle="collapse" data-target=".column_modified .collapse">
441
  <h2>Supply the content for a custom column</h2>
442
  <pre>column_modified(array $item) : string</pre>
@@ -944,7 +986,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
944
  <div class="row"><footer class="span12">
945
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
946
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
947
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
948
  </div>
949
  </body>
950
  </html>
66
  <li class="method public "><a href="#column_default" title="column_default :: Supply a column value if no column-specific function has been defined"><span class="description">Supply a column value if no column-specific function has been defined</span><pre>column_default()</pre></a></li>
67
  <li class="method public "><a href="#column_description" title="column_description :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_description()</pre></a></li>
68
  <li class="method public "><a href="#column_featured" title="column_featured :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_featured()</pre></a></li>
69
+ <li class="method public "><a href="#column_galleries" title="column_galleries :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_galleries()</pre></a></li>
70
  <li class="method public "><a href="#column_icon" title="column_icon :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_icon()</pre></a></li>
71
  <li class="method public "><a href="#column_inserted" title="column_inserted :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_inserted()</pre></a></li>
72
  <li class="method public "><a href="#column_menu_order" title="column_menu_order :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_menu_order()</pre></a></li>
73
+ <li class="method public "><a href="#column_mla_galleries" title="column_mla_galleries :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_mla_galleries()</pre></a></li>
74
  <li class="method public "><a href="#column_modified" title="column_modified :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_modified()</pre></a></li>
75
  <li class="method public "><a href="#column_parent" title="column_parent :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_parent()</pre></a></li>
76
  <li class="method public "><a href="#column_post_mime_type" title="column_post_mime_type :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_post_mime_type()</pre></a></li>
379
  <code>string</code>HTML markup to be placed inside the column</div>
380
  </div></div>
381
  </div>
382
+ <a name="column_galleries" id="column_galleries"></a><div class="element clickable method public column_galleries" data-toggle="collapse" data-target=".column_galleries .collapse">
383
+ <h2>Supply the content for a custom column</h2>
384
+ <pre>column_galleries(array $item) : string</pre>
385
+ <div class="labels"></div>
386
+ <div class="row collapse"><div class="detail-description">
387
+ <p class="long_description"></p>
388
+ <table class="table table-bordered"><tr>
389
+ <th>since</th>
390
+ <td>0.70</td>
391
+ </tr></table>
392
+ <h3>Parameters</h3>
393
+ <div class="subelement argument">
394
+ <h4>$item</h4>
395
+ <code>array</code><p>A singular attachment (post) object</p>
396
+ </div>
397
+ <h3>Returns</h3>
398
+ <div class="subelement response">
399
+ <code>string</code>HTML markup to be placed inside the column</div>
400
+ </div></div>
401
+ </div>
402
  <a name="column_icon" id="column_icon"></a><div class="element clickable method public column_icon" data-toggle="collapse" data-target=".column_icon .collapse">
403
  <h2>Supply the content for a custom column</h2>
404
  <pre>column_icon(array $item) : string</pre>
459
  <code>string</code>HTML markup to be placed inside the column</div>
460
  </div></div>
461
  </div>
462
+ <a name="column_mla_galleries" id="column_mla_galleries"></a><div class="element clickable method public column_mla_galleries" data-toggle="collapse" data-target=".column_mla_galleries .collapse">
463
+ <h2>Supply the content for a custom column</h2>
464
+ <pre>column_mla_galleries(array $item) : string</pre>
465
+ <div class="labels"></div>
466
+ <div class="row collapse"><div class="detail-description">
467
+ <p class="long_description"></p>
468
+ <table class="table table-bordered"><tr>
469
+ <th>since</th>
470
+ <td>0.70</td>
471
+ </tr></table>
472
+ <h3>Parameters</h3>
473
+ <div class="subelement argument">
474
+ <h4>$item</h4>
475
+ <code>array</code><p>A singular attachment (post) object</p>
476
+ </div>
477
+ <h3>Returns</h3>
478
+ <div class="subelement response">
479
+ <code>string</code>HTML markup to be placed inside the column</div>
480
+ </div></div>
481
+ </div>
482
  <a name="column_modified" id="column_modified"></a><div class="element clickable method public column_modified" data-toggle="collapse" data-target=".column_modified .collapse">
483
  <h2>Supply the content for a custom column</h2>
484
  <pre>column_modified(array $item) : string</pre>
986
  <div class="row"><footer class="span12">
987
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
988
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
989
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
990
  </div>
991
  </body>
992
  </html>
phpDocs/deprecated.html CHANGED
@@ -62,7 +62,7 @@
62
  <div class="row"><footer class="span12">
63
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
64
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
65
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
66
  </div>
67
  </body>
68
  </html>
62
  <div class="row"><footer class="span12">
63
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
64
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
65
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
66
  </div>
67
  </body>
68
  </html>
phpDocs/errors.html CHANGED
@@ -74,7 +74,7 @@
74
  <div class="row"><footer class="span12">
75
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
76
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
77
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
78
  </div>
79
  </body>
80
  </html>
74
  <div class="row"><footer class="span12">
75
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
76
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
77
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
78
  </div>
79
  </body>
80
  </html>
phpDocs/graph_class.html CHANGED
@@ -59,7 +59,7 @@
59
  </script><div class="row"><footer class="span12">
60
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
61
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
62
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
63
  </div>
64
  </body>
65
  </html>
59
  </script><div class="row"><footer class="span12">
60
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
61
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
62
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
63
  </div>
64
  </body>
65
  </html>
phpDocs/index.html CHANGED
@@ -79,7 +79,7 @@
79
  <div class="row"><footer class="span12">
80
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
81
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
82
- generated on 2012-10-24T10:33:49-07:00.<br></footer></div>
83
  </div>
84
  </body>
85
  </html>
79
  <div class="row"><footer class="span12">
80
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
81
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
82
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
83
  </div>
84
  </body>
85
  </html>
phpDocs/markers.html CHANGED
@@ -64,7 +64,7 @@
64
  <div class="row"><footer class="span12">
65
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
66
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
67
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
64
  <div class="row"><footer class="span12">
65
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
66
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
67
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
phpDocs/namespaces/global.html CHANGED
@@ -159,7 +159,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
159
  <div class="row"><footer class="span12">
160
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
161
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
162
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
163
  </div>
164
  </body>
165
  </html>
159
  <div class="row"><footer class="span12">
160
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
161
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
162
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
163
  </div>
164
  </body>
165
  </html>
phpDocs/packages/Media Library Assistant.html CHANGED
@@ -179,7 +179,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
179
  <div class="row"><footer class="span12">
180
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
181
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
182
- generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
183
  </div>
184
  </body>
185
  </html>
179
  <div class="row"><footer class="span12">
180
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
181
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
182
+ generated on 2012-11-06T11:03:46-08:00.<br></footer></div>
183
  </div>
184
  </body>
185
  </html>
phpDocs/structure.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="utf-8"?>
2
  <project version="2.0.0a8" title="Media Library Assistant">
3
- <file path="includes\class-mla-data.php" hash="9993e42c2ccdfa78e83b3079c647dff6" package="Media Library Assistant">
4
  <docblock line="2">
5
  <description><![CDATA[Database and template file access for MLA needs]]></description>
6
  <long-description><![CDATA[]]></long-description>
@@ -32,6 +32,41 @@ any further logic required to translate those values is contained in the filters
32
  </tag>
33
  </docblock>
34
  </property>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="24" package="Media Library Assistant">
36
  <name>initialize</name>
37
  <full_name>initialize</full_name>
@@ -357,43 +392,107 @@ as a Featured Image or inserted in the post as an image or link.</p>]]></long-de
357
  <type/>
358
  </argument>
359
  </method>
360
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="849" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
361
  <name>_fetch_attachment_parent_data</name>
362
  <full_name>_fetch_attachment_parent_data</full_name>
363
- <docblock line="840">
364
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
365
  <long-description><![CDATA[]]></long-description>
366
- <tag line="840" name="since" description="0.1"/>
367
- <tag line="840" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
368
  <type by_reference="false">int</type>
369
  </tag>
370
- <tag line="840" name="return" description="Parent information; post_date, post_title and post_type" type="array">
371
  <type by_reference="false">array</type>
372
  </tag>
373
  </docblock>
374
- <argument line="849">
375
  <name>$parent_id</name>
376
  <default><![CDATA[]]></default>
377
  <type/>
378
  </argument>
379
  </method>
380
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="877" package="Media Library Assistant">
381
  <name>_fetch_attachment_metadata</name>
382
  <full_name>_fetch_attachment_metadata</full_name>
383
- <docblock line="864">
384
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
385
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
386
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
387
  a string containing the first array element.</p>]]></long-description>
388
- <tag line="864" name="since" description="0.1"/>
389
- <tag line="864" name="param" description="post ID of attachment" type="int" variable="$post_id">
390
  <type by_reference="false">int</type>
391
  </tag>
392
- <tag line="864" name="return" description="Meta data variables" type="array">
393
  <type by_reference="false">array</type>
394
  </tag>
395
  </docblock>
396
- <argument line="877">
397
  <name>$post_id</name>
398
  <default><![CDATA[]]></default>
399
  <type/>
@@ -401,7 +500,7 @@ a string containing the first array element.</p>]]></long-description>
401
  </method>
402
  </class>
403
  </file>
404
- <file path="includes\class-mla-list-table.php" hash="6c917e5889f4ae52810230bff5b9258b" package="Media Library Assistant">
405
  <docblock line="2">
406
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
407
  <long-description><![CDATA[]]></long-description>
@@ -447,7 +546,7 @@ a string containing the first array element.</p>]]></long-description>
447
  </property>
448
  <property final="false" static="true" visibility="private" line="72" namespace="global" package="Media Library Assistant">
449
  <name>$default_columns</name>
450
- <default><![CDATA[array('cb' => '<input type="checkbox" />', 'icon' => '', 'ID_parent' => 'ID/Parent', 'title_name' => 'Title/Name', 'post_title' => 'Title', 'post_name' => 'Name', 'parent' => 'Parent ID', 'menu_order' => 'Menu Order', 'featured' => 'Featured in', 'inserted' => 'Inserted in', 'alt_text' => 'ALT Text', 'caption' => 'Caption', 'description' => 'Description', 'post_mime_type' => 'MIME Type', 'base_file' => 'Base File', 'date' => 'Date', 'modified' => 'Last Modified', 'author' => 'Author', 'attached_to' => 'Attached to')]]></default>
451
  <docblock line="55">
452
  <description><![CDATA[Table column definitions]]></description>
453
  <long-description><![CDATA[<p>This array defines table columns and titles where the key is the column slug (and class)
@@ -465,10 +564,10 @@ bulk actions or checkboxes, simply leave the 'cb' entry out of your array.</p>
465
  </tag>
466
  </docblock>
467
  </property>
468
- <property final="false" static="true" visibility="private" line="110" namespace="global" package="Media Library Assistant">
469
  <name>$default_hidden_columns</name>
470
- <default><![CDATA[array(0 => 'post_title', 1 => 'post_name', 2 => 'parent', 3 => 'menu_order', 4 => 'alt_text', 5 => 'caption', 6 => 'description', 7 => 'post_mime_type', 8 => 'base_file', 9 => 'date', 10 => 'modified', 11 => 'author', 12 => 'attached_to')]]></default>
471
- <docblock line="95">
472
  <description><![CDATA[Default values for hidden columns]]></description>
473
  <long-description><![CDATA[<p>This array is used when the user-level option is not set, i.e.,
474
  the user has not altered the selection of hidden columns.</p>
@@ -477,16 +576,16 @@ the user has not altered the selection of hidden columns.</p>
477
  array(0 => 'ID_parent, 1 => 'title_name').</p>
478
 
479
  <p>Taxonomy columns are added to this array by mla_admin_init_action.</p>]]></long-description>
480
- <tag line="95" name="since" description="0.1"/>
481
- <tag line="95" name="var" description="" type="array">
482
  <type by_reference="false">array</type>
483
  </tag>
484
  </docblock>
485
  </property>
486
- <property final="false" static="true" visibility="private" line="146" namespace="global" package="Media Library Assistant">
487
  <name>$default_sortable_columns</name>
488
  <default><![CDATA[array('ID_parent' => array('ID', false), 'title_name' => array('title_name', false), 'post_title' => array('post_title', false), 'post_name' => array('post_name', false), 'parent' => array('post_parent', false), 'menu_order' => array('menu_order', false), 'alt_text' => array('_wp_attachment_image_alt', false), 'caption' => array('post_excerpt', false), 'description' => array('post_content', false), 'post_mime_type' => array('post_mime_type', false), 'base_file' => array('_wp_attached_file', false), 'date' => array('post_date', false), 'modified' => array('post_modified', false), 'author' => array('post_author', false), 'attached_to' => array('post_parent', false))]]></default>
489
- <docblock line="131">
490
  <description><![CDATA[Sortable column definitions]]></description>
491
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
492
  is the column slug that needs to be sortable, and the value is database column
@@ -495,722 +594,762 @@ the case (as the value is a column name from the database, not the list table).<
495
 
496
  <p>The array value also contains a boolean which is 'true' if the data is currently
497
  sorted by that column. This is computed each time the table is displayed.</p>]]></long-description>
498
- <tag line="131" name="since" description="0.1"/>
499
- <tag line="131" name="var" description="" type="array">
500
  <type by_reference="false">array</type>
501
  </tag>
502
  </docblock>
503
  </property>
504
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="174" package="Media Library Assistant">
505
  <name>_default_hidden_columns</name>
506
  <full_name>_default_hidden_columns</full_name>
507
- <docblock line="167">
508
  <description><![CDATA[Access the default list of hidden columns]]></description>
509
  <long-description><![CDATA[]]></long-description>
510
- <tag line="167" name="since" description="0.1"/>
511
- <tag line="167" name="return" description="default list of hidden columns" type="array">
512
  <type by_reference="false">array</type>
513
  </tag>
514
  </docblock>
515
  </method>
516
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="191" package="Media Library Assistant">
517
  <name>_avail_mime_types</name>
518
  <full_name>_avail_mime_types</full_name>
519
- <docblock line="179">
520
  <description><![CDATA[Get mime types with one or more attachments for view preparation]]></description>
521
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
522
  with additional entries.</p>]]></long-description>
523
- <tag line="179" name="since" description="0.1"/>
524
- <tag line="179" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
525
  <type by_reference="false">array</type>
526
  </tag>
527
- <tag line="179" name="return" description="Mime type names" type="array">
528
  <type by_reference="false">array</type>
529
  </tag>
530
  </docblock>
531
- <argument line="191">
532
  <name>$num_posts</name>
533
  <default><![CDATA[]]></default>
534
  <type/>
535
  </argument>
536
  </method>
537
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="212" package="Media Library Assistant">
538
  <name>mla_get_attachment_mime_types</name>
539
  <full_name>mla_get_attachment_mime_types</full_name>
540
- <docblock line="202">
541
  <description><![CDATA[Get possible mime types for view preparation]]></description>
542
  <long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
543
  with additional entries.</p>]]></long-description>
544
- <tag line="202" name="since" description="0.1"/>
545
- <tag line="202" name="return" description="Mime type names and HTML markup for views" type="array">
546
  <type by_reference="false">array</type>
547
  </tag>
548
  </docblock>
549
  </method>
550
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="285" package="Media Library Assistant">
551
  <name>mla_get_sortable_columns</name>
552
  <full_name>mla_get_sortable_columns</full_name>
553
- <docblock line="278">
554
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
555
  <long-description><![CDATA[]]></long-description>
556
- <tag line="278" name="since" description="0.30"/>
557
- <tag line="278" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
558
  <type by_reference="false">array</type>
559
  </tag>
560
  </docblock>
561
  </method>
562
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="312" package="Media Library Assistant">
563
  <name>mla_manage_hidden_columns_filter</name>
564
  <full_name>mla_manage_hidden_columns_filter</full_name>
565
- <docblock line="297">
566
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
567
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
568
  the get_user_option result. Set when the file is loaded because the object
569
  is not created in time for the call from screen.php.</p>]]></long-description>
570
- <tag line="297" name="since" description="0.1"/>
571
- <tag line="297" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
572
  <type by_reference="false">string</type>
573
  </tag>
574
- <tag line="297" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
575
  <type by_reference="false">string</type>
576
  </tag>
577
- <tag line="297" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
578
  <type by_reference="false">object</type>
579
  </tag>
580
- <tag line="297" name="return" description="updated list of hidden columns" type="array">
581
  <type by_reference="false">array</type>
582
  </tag>
583
  </docblock>
584
- <argument line="312">
585
  <name>$result</name>
586
  <default><![CDATA[]]></default>
587
  <type/>
588
  </argument>
589
- <argument line="312">
590
  <name>$option</name>
591
  <default><![CDATA[]]></default>
592
  <type/>
593
  </argument>
594
- <argument line="312">
595
  <name>$user_data</name>
596
  <default><![CDATA[]]></default>
597
  <type/>
598
  </argument>
599
  </method>
600
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="330" package="Media Library Assistant">
601
  <name>mla_manage_columns_filter</name>
602
  <full_name>mla_manage_columns_filter</full_name>
603
- <docblock line="319">
604
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
605
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
606
  file is loaded because the list_table object isn't created in time
607
  to affect the "screen options" setup.</p>]]></long-description>
608
- <tag line="319" name="since" description="0.1"/>
609
- <tag line="319" name="return" description="list of table columns" type="array">
610
  <type by_reference="false">array</type>
611
  </tag>
612
  </docblock>
613
  </method>
614
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="345" package="Media Library Assistant">
615
  <name>mla_admin_init_action</name>
616
  <full_name>mla_admin_init_action</full_name>
617
- <docblock line="335">
618
  <description><![CDATA[Adds support for taxonomy columns]]></description>
619
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
620
  created in time to affect the "screen options" setup.</p>]]></long-description>
621
- <tag line="335" name="since" description="0.30"/>
622
- <tag line="335" name="return" description="" type="void">
623
  <type by_reference="false">void</type>
624
  </tag>
625
  </docblock>
626
  </method>
627
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="365" package="Media Library Assistant">
628
  <name>__construct</name>
629
  <full_name>__construct</full_name>
630
- <docblock line="357">
631
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
632
  calls the parent constructor to set some default configs.]]></description>
633
  <long-description><![CDATA[]]></long-description>
634
- <tag line="357" name="since" description="0.1"/>
635
- <tag line="357" name="return" description="" type="void">
636
  <type by_reference="false">void</type>
637
  </tag>
638
  </docblock>
639
  </method>
640
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="397" package="Media Library Assistant">
641
  <name>column_default</name>
642
  <full_name>column_default</full_name>
643
- <docblock line="384">
644
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
645
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a
646
  given column. The taxonomy columns are handled here. All other columns should
647
  have a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
648
- <tag line="384" name="since" description="0.1"/>
649
- <tag line="384" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
650
  <type by_reference="false">array</type>
651
  </tag>
652
- <tag line="384" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
653
  <type by_reference="false">array</type>
654
  </tag>
655
- <tag line="384" name="return" description="Text or HTML to be placed inside the column" type="string">
656
  <type by_reference="false">string</type>
657
  </tag>
658
  </docblock>
659
- <argument line="397">
660
  <name>$item</name>
661
  <default><![CDATA[]]></default>
662
  <type/>
663
  </argument>
664
- <argument line="397">
665
  <name>$column_name</name>
666
  <default><![CDATA[]]></default>
667
  <type/>
668
  </argument>
669
  </method>
670
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="439" package="Media Library Assistant">
671
  <name>column_cb</name>
672
  <full_name>column_cb</full_name>
673
- <docblock line="430">
674
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
675
  <long-description><![CDATA[<p>The 'cb' column
676
  is given special treatment when columns are processed.</p>]]></long-description>
677
- <tag line="430" name="since" description="0.1"/>
678
- <tag line="430" name="param" description="A singular attachment (post) object" type="array" variable="$item">
679
  <type by_reference="false">array</type>
680
  </tag>
681
- <tag line="430" name="return" description="HTML markup to be placed inside the column" type="string">
682
  <type by_reference="false">string</type>
683
  </tag>
684
  </docblock>
685
- <argument line="439">
686
  <name>$item</name>
687
  <default><![CDATA[]]></default>
688
  <type/>
689
  </argument>
690
  </method>
691
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="455" package="Media Library Assistant">
692
  <name>column_icon</name>
693
  <full_name>column_icon</full_name>
694
- <docblock line="447">
695
  <description><![CDATA[Supply the content for a custom column]]></description>
696
  <long-description><![CDATA[]]></long-description>
697
- <tag line="447" name="since" description="0.1"/>
698
- <tag line="447" name="param" description="A singular attachment (post) object" type="array" variable="$item">
699
  <type by_reference="false">array</type>
700
  </tag>
701
- <tag line="447" name="return" description="HTML markup to be placed inside the column" type="string">
702
  <type by_reference="false">string</type>
703
  </tag>
704
  </docblock>
705
- <argument line="455">
706
  <name>$item</name>
707
  <default><![CDATA[]]></default>
708
  <type/>
709
  </argument>
710
  </method>
711
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="471" package="Media Library Assistant">
712
  <name>_build_rollover_actions</name>
713
  <full_name>_build_rollover_actions</full_name>
714
- <docblock line="460">
715
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
716
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
717
  <long-description><![CDATA[]]></long-description>
718
- <tag line="460" name="since" description="0.1"/>
719
- <tag line="460" name="param" description="A singular attachment (post) object" type="object" variable="$item">
720
  <type by_reference="false">object</type>
721
  </tag>
722
- <tag line="460" name="param" description="Current column name" type="string" variable="$column">
723
  <type by_reference="false">string</type>
724
  </tag>
725
- <tag line="460" name="return" description="Names and URLs of row-level actions" type="array">
726
  <type by_reference="false">array</type>
727
  </tag>
728
  </docblock>
729
- <argument line="471">
730
  <name>$item</name>
731
  <default><![CDATA[]]></default>
732
  <type/>
733
  </argument>
734
- <argument line="471">
735
  <name>$column</name>
736
  <default><![CDATA[]]></default>
737
  <type/>
738
  </argument>
739
  </method>
740
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="549" package="Media Library Assistant">
741
  <name>_build_inline_data</name>
742
  <full_name>_build_inline_data</full_name>
743
- <docblock line="540">
744
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
745
  <long-description><![CDATA[]]></long-description>
746
- <tag line="540" name="since" description="0.20"/>
747
- <tag line="540" name="param" description="A singular attachment (post) object" type="object" variable="$item">
748
  <type by_reference="false">object</type>
749
  </tag>
750
- <tag line="540" name="return" description="HTML &lt;div&gt; with row data" type="string">
751
  <type by_reference="false">string</type>
752
  </tag>
753
  </docblock>
754
- <argument line="549">
755
  <name>$item</name>
756
  <default><![CDATA[]]></default>
757
  <type/>
758
  </argument>
759
  </method>
760
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="589" package="Media Library Assistant">
761
  <name>column_ID_parent</name>
762
  <full_name>column_ID_parent</full_name>
763
- <docblock line="581">
764
  <description><![CDATA[Supply the content for a custom column]]></description>
765
  <long-description><![CDATA[]]></long-description>
766
- <tag line="581" name="since" description="0.1"/>
767
- <tag line="581" name="param" description="A singular attachment (post) object" type="array" variable="$item">
768
  <type by_reference="false">array</type>
769
  </tag>
770
- <tag line="581" name="return" description="HTML markup to be placed inside the column" type="string">
771
  <type by_reference="false">string</type>
772
  </tag>
773
  </docblock>
774
- <argument line="589">
775
  <name>$item</name>
776
  <default><![CDATA[]]></default>
777
  <type/>
778
  </argument>
779
  </method>
780
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="615" package="Media Library Assistant">
781
  <name>column_title_name</name>
782
  <full_name>column_title_name</full_name>
783
- <docblock line="607">
784
  <description><![CDATA[Supply the content for a custom column]]></description>
785
  <long-description><![CDATA[]]></long-description>
786
- <tag line="607" name="since" description="0.1"/>
787
- <tag line="607" name="param" description="A singular attachment (post) object" type="array" variable="$item">
788
  <type by_reference="false">array</type>
789
  </tag>
790
- <tag line="607" name="return" description="HTML markup to be placed inside the column" type="string">
791
  <type by_reference="false">string</type>
792
  </tag>
793
  </docblock>
794
- <argument line="615">
795
  <name>$item</name>
796
  <default><![CDATA[]]></default>
797
  <type/>
798
  </argument>
799
  </method>
800
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="646" package="Media Library Assistant">
801
  <name>column_post_title</name>
802
  <full_name>column_post_title</full_name>
803
- <docblock line="638">
804
  <description><![CDATA[Supply the content for a custom column]]></description>
805
  <long-description><![CDATA[]]></long-description>
806
- <tag line="638" name="since" description="0.1"/>
807
- <tag line="638" name="param" description="A singular attachment (post) object" type="array" variable="$item">
808
  <type by_reference="false">array</type>
809
  </tag>
810
- <tag line="638" name="return" description="HTML markup to be placed inside the column" type="string">
811
  <type by_reference="false">string</type>
812
  </tag>
813
  </docblock>
814
- <argument line="646">
815
  <name>$item</name>
816
  <default><![CDATA[]]></default>
817
  <type/>
818
  </argument>
819
  </method>
820
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="664" package="Media Library Assistant">
821
  <name>column_post_name</name>
822
  <full_name>column_post_name</full_name>
823
- <docblock line="656">
824
  <description><![CDATA[Supply the content for a custom column]]></description>
825
  <long-description><![CDATA[]]></long-description>
826
- <tag line="656" name="since" description="0.1"/>
827
- <tag line="656" name="param" description="A singular attachment (post) object" type="array" variable="$item">
828
  <type by_reference="false">array</type>
829
  </tag>
830
- <tag line="656" name="return" description="HTML markup to be placed inside the column" type="string">
831
  <type by_reference="false">string</type>
832
  </tag>
833
  </docblock>
834
- <argument line="664">
835
  <name>$item</name>
836
  <default><![CDATA[]]></default>
837
  <type/>
838
  </argument>
839
  </method>
840
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="682" package="Media Library Assistant">
841
  <name>column_parent</name>
842
  <full_name>column_parent</full_name>
843
- <docblock line="674">
844
  <description><![CDATA[Supply the content for a custom column]]></description>
845
  <long-description><![CDATA[]]></long-description>
846
- <tag line="674" name="since" description="0.1"/>
847
- <tag line="674" name="param" description="A singular attachment (post) object" type="array" variable="$item">
848
  <type by_reference="false">array</type>
849
  </tag>
850
- <tag line="674" name="return" description="HTML markup to be placed inside the column" type="string">
851
  <type by_reference="false">string</type>
852
  </tag>
853
  </docblock>
854
- <argument line="682">
855
  <name>$item</name>
856
  <default><![CDATA[]]></default>
857
  <type/>
858
  </argument>
859
  </method>
860
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="702" package="Media Library Assistant">
861
  <name>column_menu_order</name>
862
  <full_name>column_menu_order</full_name>
863
- <docblock line="694">
864
  <description><![CDATA[Supply the content for a custom column]]></description>
865
  <long-description><![CDATA[]]></long-description>
866
- <tag line="694" name="since" description="0.60"/>
867
- <tag line="694" name="param" description="A singular attachment (post) object" type="array" variable="$item">
868
  <type by_reference="false">array</type>
869
  </tag>
870
- <tag line="694" name="return" description="HTML markup to be placed inside the column" type="string">
871
  <type by_reference="false">string</type>
872
  </tag>
873
  </docblock>
874
- <argument line="702">
875
  <name>$item</name>
876
  <default><![CDATA[]]></default>
877
  <type/>
878
  </argument>
879
  </method>
880
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="714" package="Media Library Assistant">
881
  <name>column_featured</name>
882
  <full_name>column_featured</full_name>
883
- <docblock line="706">
884
  <description><![CDATA[Supply the content for a custom column]]></description>
885
  <long-description><![CDATA[]]></long-description>
886
- <tag line="706" name="since" description="0.1"/>
887
- <tag line="706" name="param" description="A singular attachment (post) object" type="array" variable="$item">
888
  <type by_reference="false">array</type>
889
  </tag>
890
- <tag line="706" name="return" description="HTML markup to be placed inside the column" type="string">
891
  <type by_reference="false">string</type>
892
  </tag>
893
  </docblock>
894
- <argument line="714">
895
  <name>$item</name>
896
  <default><![CDATA[]]></default>
897
  <type/>
898
  </argument>
899
  </method>
900
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="737" package="Media Library Assistant">
901
  <name>column_inserted</name>
902
  <full_name>column_inserted</full_name>
903
- <docblock line="729">
904
  <description><![CDATA[Supply the content for a custom column]]></description>
905
  <long-description><![CDATA[]]></long-description>
906
- <tag line="729" name="since" description="0.1"/>
907
- <tag line="729" name="param" description="A singular attachment (post) object" type="array" variable="$item">
908
  <type by_reference="false">array</type>
909
  </tag>
910
- <tag line="729" name="return" description="HTML markup to be placed inside the column" type="string">
911
  <type by_reference="false">string</type>
912
  </tag>
913
  </docblock>
914
- <argument line="737">
915
  <name>$item</name>
916
  <default><![CDATA[]]></default>
917
  <type/>
918
  </argument>
919
  </method>
920
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="764" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
921
  <name>column_alt_text</name>
922
  <full_name>column_alt_text</full_name>
923
- <docblock line="756">
924
  <description><![CDATA[Supply the content for a custom column]]></description>
925
  <long-description><![CDATA[]]></long-description>
926
- <tag line="756" name="since" description="0.1"/>
927
- <tag line="756" name="param" description="A singular attachment (post) object" type="array" variable="$item">
928
  <type by_reference="false">array</type>
929
  </tag>
930
- <tag line="756" name="return" description="HTML markup to be placed inside the column" type="string">
931
  <type by_reference="false">string</type>
932
  </tag>
933
  </docblock>
934
- <argument line="764">
935
  <name>$item</name>
936
  <default><![CDATA[]]></default>
937
  <type/>
938
  </argument>
939
  </method>
940
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="779" package="Media Library Assistant">
941
  <name>column_caption</name>
942
  <full_name>column_caption</full_name>
943
- <docblock line="771">
944
  <description><![CDATA[Supply the content for a custom column]]></description>
945
  <long-description><![CDATA[]]></long-description>
946
- <tag line="771" name="since" description="0.1"/>
947
- <tag line="771" name="param" description="A singular attachment (post) object" type="array" variable="$item">
948
  <type by_reference="false">array</type>
949
  </tag>
950
- <tag line="771" name="return" description="HTML markup to be placed inside the column" type="string">
951
  <type by_reference="false">string</type>
952
  </tag>
953
  </docblock>
954
- <argument line="779">
955
  <name>$item</name>
956
  <default><![CDATA[]]></default>
957
  <type/>
958
  </argument>
959
  </method>
960
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="791" package="Media Library Assistant">
961
  <name>column_description</name>
962
  <full_name>column_description</full_name>
963
- <docblock line="783">
964
  <description><![CDATA[Supply the content for a custom column]]></description>
965
  <long-description><![CDATA[]]></long-description>
966
- <tag line="783" name="since" description="0.1"/>
967
- <tag line="783" name="param" description="A singular attachment (post) object" type="array" variable="$item">
968
  <type by_reference="false">array</type>
969
  </tag>
970
- <tag line="783" name="return" description="HTML markup to be placed inside the column" type="string">
971
  <type by_reference="false">string</type>
972
  </tag>
973
  </docblock>
974
- <argument line="791">
975
  <name>$item</name>
976
  <default><![CDATA[]]></default>
977
  <type/>
978
  </argument>
979
  </method>
980
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="803" package="Media Library Assistant">
981
  <name>column_post_mime_type</name>
982
  <full_name>column_post_mime_type</full_name>
983
- <docblock line="795">
984
  <description><![CDATA[Supply the content for a custom column]]></description>
985
  <long-description><![CDATA[]]></long-description>
986
- <tag line="795" name="since" description="0.30"/>
987
- <tag line="795" name="param" description="A singular attachment (post) object" type="array" variable="$item">
988
  <type by_reference="false">array</type>
989
  </tag>
990
- <tag line="795" name="return" description="HTML markup to be placed inside the column" type="string">
991
  <type by_reference="false">string</type>
992
  </tag>
993
  </docblock>
994
- <argument line="803">
995
  <name>$item</name>
996
  <default><![CDATA[]]></default>
997
  <type/>
998
  </argument>
999
  </method>
1000
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="815" package="Media Library Assistant">
1001
  <name>column_base_file</name>
1002
  <full_name>column_base_file</full_name>
1003
- <docblock line="807">
1004
  <description><![CDATA[Supply the content for a custom column]]></description>
1005
  <long-description><![CDATA[]]></long-description>
1006
- <tag line="807" name="since" description="0.1"/>
1007
- <tag line="807" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1008
  <type by_reference="false">array</type>
1009
  </tag>
1010
- <tag line="807" name="return" description="HTML markup to be placed inside the column" type="string">
1011
  <type by_reference="false">string</type>
1012
  </tag>
1013
  </docblock>
1014
- <argument line="815">
1015
  <name>$item</name>
1016
  <default><![CDATA[]]></default>
1017
  <type/>
1018
  </argument>
1019
  </method>
1020
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="827" package="Media Library Assistant">
1021
  <name>column_date</name>
1022
  <full_name>column_date</full_name>
1023
- <docblock line="819">
1024
  <description><![CDATA[Supply the content for a custom column]]></description>
1025
  <long-description><![CDATA[]]></long-description>
1026
- <tag line="819" name="since" description="0.1"/>
1027
- <tag line="819" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1028
  <type by_reference="false">array</type>
1029
  </tag>
1030
- <tag line="819" name="return" description="HTML markup to be placed inside the column" type="string">
1031
  <type by_reference="false">string</type>
1032
  </tag>
1033
  </docblock>
1034
- <argument line="827">
1035
  <name>$item</name>
1036
  <default><![CDATA[]]></default>
1037
  <type/>
1038
  </argument>
1039
  </method>
1040
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="856" package="Media Library Assistant">
1041
  <name>column_modified</name>
1042
  <full_name>column_modified</full_name>
1043
- <docblock line="848">
1044
  <description><![CDATA[Supply the content for a custom column]]></description>
1045
  <long-description><![CDATA[]]></long-description>
1046
- <tag line="848" name="since" description="0.30"/>
1047
- <tag line="848" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1048
  <type by_reference="false">array</type>
1049
  </tag>
1050
- <tag line="848" name="return" description="HTML markup to be placed inside the column" type="string">
1051
  <type by_reference="false">string</type>
1052
  </tag>
1053
  </docblock>
1054
- <argument line="856">
1055
  <name>$item</name>
1056
  <default><![CDATA[]]></default>
1057
  <type/>
1058
  </argument>
1059
  </method>
1060
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="885" package="Media Library Assistant">
1061
  <name>column_author</name>
1062
  <full_name>column_author</full_name>
1063
- <docblock line="877">
1064
  <description><![CDATA[Supply the content for a custom column]]></description>
1065
  <long-description><![CDATA[]]></long-description>
1066
- <tag line="877" name="since" description="0.30"/>
1067
- <tag line="877" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1068
  <type by_reference="false">array</type>
1069
  </tag>
1070
- <tag line="877" name="return" description="HTML markup to be placed inside the column" type="string">
1071
  <type by_reference="false">string</type>
1072
  </tag>
1073
  </docblock>
1074
- <argument line="885">
1075
  <name>$item</name>
1076
  <default><![CDATA[]]></default>
1077
  <type/>
1078
  </argument>
1079
  </method>
1080
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="906" package="Media Library Assistant">
1081
  <name>column_attached_to</name>
1082
  <full_name>column_attached_to</full_name>
1083
- <docblock line="898">
1084
  <description><![CDATA[Supply the content for a custom column]]></description>
1085
  <long-description><![CDATA[]]></long-description>
1086
- <tag line="898" name="since" description="0.1"/>
1087
- <tag line="898" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1088
  <type by_reference="false">array</type>
1089
  </tag>
1090
- <tag line="898" name="return" description="HTML markup to be placed inside the column" type="string">
1091
  <type by_reference="false">string</type>
1092
  </tag>
1093
  </docblock>
1094
- <argument line="906">
1095
  <name>$item</name>
1096
  <default><![CDATA[]]></default>
1097
  <type/>
1098
  </argument>
1099
  </method>
1100
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="936" package="Media Library Assistant">
1101
  <name>get_columns</name>
1102
  <full_name>get_columns</full_name>
1103
- <docblock line="929">
1104
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
1105
  <long-description><![CDATA[]]></long-description>
1106
- <tag line="929" name="since" description="0.1"/>
1107
- <tag line="929" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
1108
  <type by_reference="false">array</type>
1109
  </tag>
1110
  </docblock>
1111
  </method>
1112
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="948" package="Media Library Assistant">
1113
  <name>get_hidden_columns</name>
1114
  <full_name>get_hidden_columns</full_name>
1115
- <docblock line="940">
1116
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
1117
  from default values if the option is not set]]></description>
1118
  <long-description><![CDATA[]]></long-description>
1119
- <tag line="940" name="since" description="0.1"/>
1120
- <tag line="940" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
1121
  <type by_reference="false">array</type>
1122
  </tag>
1123
  </docblock>
1124
  </method>
1125
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="968" package="Media Library Assistant">
1126
  <name>get_sortable_columns</name>
1127
  <full_name>get_sortable_columns</full_name>
1128
- <docblock line="958">
1129
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
1130
  and the value is db column to sort by.]]></description>
1131
  <long-description><![CDATA[<p>Also notes the current sort column,
1132
  if set.</p>]]></long-description>
1133
- <tag line="958" name="since" description="0.1"/>
1134
- <tag line="958" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
1135
  <type by_reference="false">array</type>
1136
  </tag>
1137
  </docblock>
1138
  </method>
1139
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="995" package="Media Library Assistant">
1140
  <name>get_views</name>
1141
  <full_name>get_views</full_name>
1142
- <docblock line="987">
1143
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
1144
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
1145
- <tag line="987" name="since" description="0.1"/>
1146
- <tag line="987" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
1147
  <type by_reference="false">array</type>
1148
  </tag>
1149
  </docblock>
1150
  </method>
1151
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1072" package="Media Library Assistant">
1152
  <name>get_bulk_actions</name>
1153
  <full_name>get_bulk_actions</full_name>
1154
- <docblock line="1064">
1155
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
1156
  of bulk actions available on this table.]]></description>
1157
  <long-description><![CDATA[]]></long-description>
1158
- <tag line="1064" name="since" description="0.1"/>
1159
- <tag line="1064" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1160
  <type by_reference="false">array</type>
1161
  </tag>
1162
  </docblock>
1163
  </method>
1164
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1103" package="Media Library Assistant">
1165
  <name>extra_tablenav</name>
1166
  <full_name>extra_tablenav</full_name>
1167
- <docblock line="1092">
1168
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
1169
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
1170
- <tag line="1092" name="since" description="0.1"/>
1171
- <tag line="1092" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
1172
  <type by_reference="false">string</type>
1173
  </tag>
1174
- <tag line="1092" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1175
  <type by_reference="false">array</type>
1176
  </tag>
1177
  </docblock>
1178
- <argument line="1103">
1179
  <name>$which</name>
1180
  <default><![CDATA[]]></default>
1181
  <type/>
1182
  </argument>
1183
  </method>
1184
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1163" package="Media Library Assistant">
1185
  <name>prepare_items</name>
1186
  <full_name>prepare_items</full_name>
1187
- <docblock line="1151">
1188
  <description><![CDATA[Prepares the list of items for displaying]]></description>
1189
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
1190
  be used to query the database, sort and filter the data, and generally
1191
  get it ready to be displayed. At a minimum, we should set $this->items and
1192
  $this->set_pagination_args().</p>]]></long-description>
1193
- <tag line="1151" name="since" description="0.1"/>
1194
- <tag line="1151" name="return" description="" type="void">
1195
  <type by_reference="false">void</type>
1196
  </tag>
1197
  </docblock>
1198
  </method>
1199
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1209" package="Media Library Assistant">
1200
  <name>single_row</name>
1201
  <full_name>single_row</full_name>
1202
- <docblock line="1200">
1203
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
1204
  <long-description><![CDATA[]]></long-description>
1205
- <tag line="1200" name="since" description=".20"/>
1206
- <tag line="1200" name="param" description="the current item" type="object" variable="$item">
1207
  <type by_reference="false">object</type>
1208
  </tag>
1209
- <tag line="1200" name="return" description="Echoes the row HTML" type="void">
1210
  <type by_reference="false">void</type>
1211
  </tag>
1212
  </docblock>
1213
- <argument line="1209">
1214
  <name>$item</name>
1215
  <default><![CDATA[]]></default>
1216
  <type/>
@@ -1218,7 +1357,7 @@ $this->set_pagination_args().</p>]]></long-description>
1218
  </method>
1219
  </class>
1220
  </file>
1221
- <file path="includes\class-mla-main.php" hash="9daa700175d395aedcd332969d2849c1" package="Media Library Assistant">
1222
  <docblock line="2">
1223
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1224
  <long-description><![CDATA[]]></long-description>
@@ -1255,7 +1394,7 @@ of images and files held in the WordPress Media Library.]]></description>
1255
  <constant namespace="global" line="41" package="Media Library Assistant">
1256
  <name>CURRENT_MLA_VERSION</name>
1257
  <full_name>CURRENT_MLA_VERSION</full_name>
1258
- <value><![CDATA['0.60']]></value>
1259
  <docblock line="34">
1260
  <description><![CDATA[Current version number]]></description>
1261
  <long-description><![CDATA[]]></long-description>
@@ -2417,7 +2556,7 @@ settings are being updated or reset.]]></description>
2417
  </method>
2418
  </class>
2419
  </file>
2420
- <file path="includes\class-mla-shortcodes.php" hash="73b30e9db1a74d33ab0cf000e80f93c3" package="Media Library Assistant">
2421
  <docblock line="2">
2422
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
2423
  <long-description><![CDATA[]]></long-description>
@@ -2446,6 +2585,18 @@ settings are being updated or reset.]]></description>
2446
  </tag>
2447
  </docblock>
2448
  </property>
 
 
 
 
 
 
 
 
 
 
 
 
2449
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="23" package="Media Library Assistant">
2450
  <name>initialize</name>
2451
  <full_name>initialize</full_name>
@@ -2470,53 +2621,75 @@ settings are being updated or reset.]]></description>
2470
  </tag>
2471
  </docblock>
2472
  </method>
2473
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="147" package="Media Library Assistant">
2474
  <name>mla_gallery_shortcode</name>
2475
  <full_name>mla_gallery_shortcode</full_name>
2476
- <docblock line="134">
2477
  <description><![CDATA[The MLA Gallery shortcode.]]></description>
2478
  <long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
2479
  page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
2480
  Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
2481
- <tag line="134" name="since" description=".50"/>
2482
- <tag line="134" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
2483
  <type by_reference="false">array</type>
2484
  </tag>
2485
- <tag line="134" name="return" description="HTML content to display gallery." type="string">
2486
  <type by_reference="false">string</type>
2487
  </tag>
2488
  </docblock>
2489
- <argument line="147">
2490
  <name>$attr</name>
2491
  <default><![CDATA[]]></default>
2492
  <type/>
2493
  </argument>
2494
  </method>
2495
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="545" package="Media Library Assistant">
2496
- <name>_get_attachments</name>
2497
- <full_name>_get_attachments</full_name>
2498
- <docblock line="535">
2499
- <description><![CDATA[Replaces /wp-includes/post.php function get_posts()]]></description>
2500
  <long-description><![CDATA[]]></long-description>
2501
- <tag line="535" name="since" description=".50"/>
2502
- <tag line="535" name="param" description="Attributes of the shortcode" type="array" variable="$args">
2503
- <type by_reference="false">array</type>
2504
  </tag>
2505
- <tag line="535" name="param" description="True to add debug information to self::$mla_debug_messages" type="boolean" variable="$mla_debug">
2506
- <type by_reference="false">boolean</type>
2507
  </tag>
2508
- <tag line="535" name="return" description="List of attachments returned from WP_Query" type="array">
2509
  <type by_reference="false">array</type>
2510
  </tag>
2511
  </docblock>
2512
- <argument line="545">
2513
- <name>$args</name>
2514
  <default><![CDATA[]]></default>
2515
  <type/>
2516
  </argument>
2517
- <argument line="545">
2518
- <name>$mla_debug</name>
2519
- <default><![CDATA[false]]></default>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2520
  <type/>
2521
  </argument>
2522
  </method>
@@ -2561,13 +2734,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
2561
  </docblock>
2562
  </constant>
2563
  </file>
2564
- <file path="index.php" hash="a1ac5c0f88e56c887fbbb0bf66bff8c6" package="Media Library Assistant">
2565
  <docblock line="2">
2566
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
2567
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
2568
  will the rest of the plugin be loaded and run.</p>]]></long-description>
2569
  <tag line="2" name="package" description="Media Library Assistant"/>
2570
- <tag line="2" name="version" description="0.60"/>
2571
  </docblock>
2572
  <include line="103" type="Require Once" package="Media Library Assistant">
2573
  <name>includes/mla-plugin-loader.php</name>
1
  <?xml version="1.0" encoding="utf-8"?>
2
  <project version="2.0.0a8" title="Media Library Assistant">
3
+ <file path="includes\class-mla-data.php" hash="c91e07d51dc84371df97307042a002d9" package="Media Library Assistant">
4
  <docblock line="2">
5
  <description><![CDATA[Database and template file access for MLA needs]]></description>
6
  <long-description><![CDATA[]]></long-description>
32
  </tag>
33
  </docblock>
34
  </property>
35
+ <property final="false" static="true" visibility="private" line="900" namespace="global" package="Media Library Assistant">
36
+ <name>$galleries</name>
37
+ <default><![CDATA[null]]></default>
38
+ <docblock line="882">
39
+ <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
40
+ <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
41
+ and array(s) of which attachments each [gallery] contains. The arrays are built once
42
+ each page load and cached for subsequent calls.</p>
43
+
44
+ <p>The outer array is keyed by post_id. It contains an array of [gallery] entries numbered from one (1).
45
+ Each inner array has these elements:
46
+ ['parent_title'] post_title of the gallery parent,
47
+ ['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
48
+ ['query'] contains a string with the arguments of the [gallery],
49
+ ['results'] contains an array of post_ids for the objects in the gallery.</p>]]></long-description>
50
+ <tag line="882" name="since" description="0.70"/>
51
+ <tag line="882" name="var" description="" type="array">
52
+ <type by_reference="false">array</type>
53
+ </tag>
54
+ </docblock>
55
+ </property>
56
+ <property final="false" static="true" visibility="private" line="913" namespace="global" package="Media Library Assistant">
57
+ <name>$mla_galleries</name>
58
+ <default><![CDATA[null]]></default>
59
+ <docblock line="902">
60
+ <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
61
+ <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
62
+ and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
63
+ each page load and cached for subsequent calls.</p>]]></long-description>
64
+ <tag line="902" name="since" description="0.70"/>
65
+ <tag line="902" name="var" description="" type="array">
66
+ <type by_reference="false">array</type>
67
+ </tag>
68
+ </docblock>
69
+ </property>
70
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="24" package="Media Library Assistant">
71
  <name>initialize</name>
72
  <full_name>initialize</full_name>
392
  <type/>
393
  </argument>
394
  </method>
395
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="926" package="Media Library Assistant">
396
+ <name>_build_mla_galleries</name>
397
+ <full_name>_build_mla_galleries</full_name>
398
+ <docblock line="915">
399
+ <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
400
+ <long-description><![CDATA[]]></long-description>
401
+ <tag line="915" name="since" description="0.70"/>
402
+ <tag line="915" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
403
+ <type by_reference="false">array</type>
404
+ </tag>
405
+ <tag line="915" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
406
+ <type by_reference="false">string</type>
407
+ </tag>
408
+ <tag line="915" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
409
+ <type by_reference="false">boolean</type>
410
+ </tag>
411
+ <tag line="915" name="return" description="true if the galleries array is not empty" type="boolean">
412
+ <type by_reference="false">boolean</type>
413
+ </tag>
414
+ </docblock>
415
+ <argument line="926">
416
+ <name>$galleries_array</name>
417
+ <default><![CDATA[]]></default>
418
+ <type/>
419
+ </argument>
420
+ <argument line="926">
421
+ <name>$shortcode</name>
422
+ <default><![CDATA[]]></default>
423
+ <type/>
424
+ </argument>
425
+ <argument line="926">
426
+ <name>$exclude_revisions</name>
427
+ <default><![CDATA[]]></default>
428
+ <type/>
429
+ </argument>
430
+ </method>
431
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1008" package="Media Library Assistant">
432
+ <name>_search_mla_galleries</name>
433
+ <full_name>_search_mla_galleries</full_name>
434
+ <docblock line="997">
435
+ <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
436
+ <long-description><![CDATA[]]></long-description>
437
+ <tag line="997" name="since" description="0.70"/>
438
+ <tag line="997" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
439
+ <type by_reference="false">array</type>
440
+ </tag>
441
+ <tag line="997" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
442
+ <type by_reference="false">int</type>
443
+ </tag>
444
+ <tag line="997" name="return" description="All posts/pages with one or more galleries that include the attachment. The array key is the parent_post ID; each entry contains post_title and post_type." type="array">
445
+ <type by_reference="false">array</type>
446
+ </tag>
447
+ </docblock>
448
+ <argument line="1008">
449
+ <name>$galleries_array</name>
450
+ <default><![CDATA[]]></default>
451
+ <type/>
452
+ </argument>
453
+ <argument line="1008">
454
+ <name>$attachment_id</name>
455
+ <default><![CDATA[]]></default>
456
+ <type/>
457
+ </argument>
458
+ </method>
459
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1030" package="Media Library Assistant">
460
  <name>_fetch_attachment_parent_data</name>
461
  <full_name>_fetch_attachment_parent_data</full_name>
462
+ <docblock line="1021">
463
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
464
  <long-description><![CDATA[]]></long-description>
465
+ <tag line="1021" name="since" description="0.1"/>
466
+ <tag line="1021" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
467
  <type by_reference="false">int</type>
468
  </tag>
469
+ <tag line="1021" name="return" description="Parent information; post_date, post_title and post_type" type="array">
470
  <type by_reference="false">array</type>
471
  </tag>
472
  </docblock>
473
+ <argument line="1030">
474
  <name>$parent_id</name>
475
  <default><![CDATA[]]></default>
476
  <type/>
477
  </argument>
478
  </method>
479
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1058" package="Media Library Assistant">
480
  <name>_fetch_attachment_metadata</name>
481
  <full_name>_fetch_attachment_metadata</full_name>
482
+ <docblock line="1045">
483
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
484
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
485
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
486
  a string containing the first array element.</p>]]></long-description>
487
+ <tag line="1045" name="since" description="0.1"/>
488
+ <tag line="1045" name="param" description="post ID of attachment" type="int" variable="$post_id">
489
  <type by_reference="false">int</type>
490
  </tag>
491
+ <tag line="1045" name="return" description="Meta data variables" type="array">
492
  <type by_reference="false">array</type>
493
  </tag>
494
  </docblock>
495
+ <argument line="1058">
496
  <name>$post_id</name>
497
  <default><![CDATA[]]></default>
498
  <type/>
500
  </method>
501
  </class>
502
  </file>
503
+ <file path="includes\class-mla-list-table.php" hash="7076e77a8b63290ad9cf9bbd949cf7e4" package="Media Library Assistant">
504
  <docblock line="2">
505
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
506
  <long-description><![CDATA[]]></long-description>
546
  </property>
547
  <property final="false" static="true" visibility="private" line="72" namespace="global" package="Media Library Assistant">
548
  <name>$default_columns</name>
549
+ <default><![CDATA[array('cb' => '<input type="checkbox" />', 'icon' => '', 'ID_parent' => 'ID/Parent', 'title_name' => 'Title/Name', 'post_title' => 'Title', 'post_name' => 'Name', 'parent' => 'Parent ID', 'menu_order' => 'Menu Order', 'featured' => 'Featured in', 'inserted' => 'Inserted in', 'galleries' => 'Gallery in', 'mla_galleries' => 'MLA Gallery in', 'alt_text' => 'ALT Text', 'caption' => 'Caption', 'description' => 'Description', 'post_mime_type' => 'MIME Type', 'base_file' => 'Base File', 'date' => 'Date', 'modified' => 'Last Modified', 'author' => 'Author', 'attached_to' => 'Attached to')]]></default>
550
  <docblock line="55">
551
  <description><![CDATA[Table column definitions]]></description>
552
  <long-description><![CDATA[<p>This array defines table columns and titles where the key is the column slug (and class)
564
  </tag>
565
  </docblock>
566
  </property>
567
+ <property final="false" static="true" visibility="private" line="112" namespace="global" package="Media Library Assistant">
568
  <name>$default_hidden_columns</name>
569
+ <default><![CDATA[array('post_title', 'post_name', 'parent', 'menu_order', 'galleries', 'mla_galleries', 'alt_text', 'caption', 'description', 'post_mime_type', 'base_file', 'date', 'modified', 'author', 'attached_to')]]></default>
570
+ <docblock line="97">
571
  <description><![CDATA[Default values for hidden columns]]></description>
572
  <long-description><![CDATA[<p>This array is used when the user-level option is not set, i.e.,
573
  the user has not altered the selection of hidden columns.</p>
576
  array(0 => 'ID_parent, 1 => 'title_name').</p>
577
 
578
  <p>Taxonomy columns are added to this array by mla_admin_init_action.</p>]]></long-description>
579
+ <tag line="97" name="since" description="0.1"/>
580
+ <tag line="97" name="var" description="" type="array">
581
  <type by_reference="false">array</type>
582
  </tag>
583
  </docblock>
584
  </property>
585
+ <property final="false" static="true" visibility="private" line="150" namespace="global" package="Media Library Assistant">
586
  <name>$default_sortable_columns</name>
587
  <default><![CDATA[array('ID_parent' => array('ID', false), 'title_name' => array('title_name', false), 'post_title' => array('post_title', false), 'post_name' => array('post_name', false), 'parent' => array('post_parent', false), 'menu_order' => array('menu_order', false), 'alt_text' => array('_wp_attachment_image_alt', false), 'caption' => array('post_excerpt', false), 'description' => array('post_content', false), 'post_mime_type' => array('post_mime_type', false), 'base_file' => array('_wp_attached_file', false), 'date' => array('post_date', false), 'modified' => array('post_modified', false), 'author' => array('post_author', false), 'attached_to' => array('post_parent', false))]]></default>
588
+ <docblock line="135">
589
  <description><![CDATA[Sortable column definitions]]></description>
590
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
591
  is the column slug that needs to be sortable, and the value is database column
594
 
595
  <p>The array value also contains a boolean which is 'true' if the data is currently
596
  sorted by that column. This is computed each time the table is displayed.</p>]]></long-description>
597
+ <tag line="135" name="since" description="0.1"/>
598
+ <tag line="135" name="var" description="" type="array">
599
  <type by_reference="false">array</type>
600
  </tag>
601
  </docblock>
602
  </property>
603
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="180" package="Media Library Assistant">
604
  <name>_default_hidden_columns</name>
605
  <full_name>_default_hidden_columns</full_name>
606
+ <docblock line="173">
607
  <description><![CDATA[Access the default list of hidden columns]]></description>
608
  <long-description><![CDATA[]]></long-description>
609
+ <tag line="173" name="since" description="0.1"/>
610
+ <tag line="173" name="return" description="default list of hidden columns" type="array">
611
  <type by_reference="false">array</type>
612
  </tag>
613
  </docblock>
614
  </method>
615
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="197" package="Media Library Assistant">
616
  <name>_avail_mime_types</name>
617
  <full_name>_avail_mime_types</full_name>
618
+ <docblock line="185">
619
  <description><![CDATA[Get mime types with one or more attachments for view preparation]]></description>
620
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
621
  with additional entries.</p>]]></long-description>
622
+ <tag line="185" name="since" description="0.1"/>
623
+ <tag line="185" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
624
  <type by_reference="false">array</type>
625
  </tag>
626
+ <tag line="185" name="return" description="Mime type names" type="array">
627
  <type by_reference="false">array</type>
628
  </tag>
629
  </docblock>
630
+ <argument line="197">
631
  <name>$num_posts</name>
632
  <default><![CDATA[]]></default>
633
  <type/>
634
  </argument>
635
  </method>
636
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="218" package="Media Library Assistant">
637
  <name>mla_get_attachment_mime_types</name>
638
  <full_name>mla_get_attachment_mime_types</full_name>
639
+ <docblock line="208">
640
  <description><![CDATA[Get possible mime types for view preparation]]></description>
641
  <long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
642
  with additional entries.</p>]]></long-description>
643
+ <tag line="208" name="since" description="0.1"/>
644
+ <tag line="208" name="return" description="Mime type names and HTML markup for views" type="array">
645
  <type by_reference="false">array</type>
646
  </tag>
647
  </docblock>
648
  </method>
649
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="291" package="Media Library Assistant">
650
  <name>mla_get_sortable_columns</name>
651
  <full_name>mla_get_sortable_columns</full_name>
652
+ <docblock line="284">
653
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
654
  <long-description><![CDATA[]]></long-description>
655
+ <tag line="284" name="since" description="0.30"/>
656
+ <tag line="284" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
657
  <type by_reference="false">array</type>
658
  </tag>
659
  </docblock>
660
  </method>
661
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="318" package="Media Library Assistant">
662
  <name>mla_manage_hidden_columns_filter</name>
663
  <full_name>mla_manage_hidden_columns_filter</full_name>
664
+ <docblock line="303">
665
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
666
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
667
  the get_user_option result. Set when the file is loaded because the object
668
  is not created in time for the call from screen.php.</p>]]></long-description>
669
+ <tag line="303" name="since" description="0.1"/>
670
+ <tag line="303" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
671
  <type by_reference="false">string</type>
672
  </tag>
673
+ <tag line="303" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
674
  <type by_reference="false">string</type>
675
  </tag>
676
+ <tag line="303" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
677
  <type by_reference="false">object</type>
678
  </tag>
679
+ <tag line="303" name="return" description="updated list of hidden columns" type="array">
680
  <type by_reference="false">array</type>
681
  </tag>
682
  </docblock>
683
+ <argument line="318">
684
  <name>$result</name>
685
  <default><![CDATA[]]></default>
686
  <type/>
687
  </argument>
688
+ <argument line="318">
689
  <name>$option</name>
690
  <default><![CDATA[]]></default>
691
  <type/>
692
  </argument>
693
+ <argument line="318">
694
  <name>$user_data</name>
695
  <default><![CDATA[]]></default>
696
  <type/>
697
  </argument>
698
  </method>
699
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="336" package="Media Library Assistant">
700
  <name>mla_manage_columns_filter</name>
701
  <full_name>mla_manage_columns_filter</full_name>
702
+ <docblock line="325">
703
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
704
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
705
  file is loaded because the list_table object isn't created in time
706
  to affect the "screen options" setup.</p>]]></long-description>
707
+ <tag line="325" name="since" description="0.1"/>
708
+ <tag line="325" name="return" description="list of table columns" type="array">
709
  <type by_reference="false">array</type>
710
  </tag>
711
  </docblock>
712
  </method>
713
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="351" package="Media Library Assistant">
714
  <name>mla_admin_init_action</name>
715
  <full_name>mla_admin_init_action</full_name>
716
+ <docblock line="341">
717
  <description><![CDATA[Adds support for taxonomy columns]]></description>
718
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
719
  created in time to affect the "screen options" setup.</p>]]></long-description>
720
+ <tag line="341" name="since" description="0.30"/>
721
+ <tag line="341" name="return" description="" type="void">
722
  <type by_reference="false">void</type>
723
  </tag>
724
  </docblock>
725
  </method>
726
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="373" package="Media Library Assistant">
727
  <name>__construct</name>
728
  <full_name>__construct</full_name>
729
+ <docblock line="365">
730
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
731
  calls the parent constructor to set some default configs.]]></description>
732
  <long-description><![CDATA[]]></long-description>
733
+ <tag line="365" name="since" description="0.1"/>
734
+ <tag line="365" name="return" description="" type="void">
735
  <type by_reference="false">void</type>
736
  </tag>
737
  </docblock>
738
  </method>
739
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="405" package="Media Library Assistant">
740
  <name>column_default</name>
741
  <full_name>column_default</full_name>
742
+ <docblock line="392">
743
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
744
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a
745
  given column. The taxonomy columns are handled here. All other columns should
746
  have a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
747
+ <tag line="392" name="since" description="0.1"/>
748
+ <tag line="392" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
749
  <type by_reference="false">array</type>
750
  </tag>
751
+ <tag line="392" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
752
  <type by_reference="false">array</type>
753
  </tag>
754
+ <tag line="392" name="return" description="Text or HTML to be placed inside the column" type="string">
755
  <type by_reference="false">string</type>
756
  </tag>
757
  </docblock>
758
+ <argument line="405">
759
  <name>$item</name>
760
  <default><![CDATA[]]></default>
761
  <type/>
762
  </argument>
763
+ <argument line="405">
764
  <name>$column_name</name>
765
  <default><![CDATA[]]></default>
766
  <type/>
767
  </argument>
768
  </method>
769
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="447" package="Media Library Assistant">
770
  <name>column_cb</name>
771
  <full_name>column_cb</full_name>
772
+ <docblock line="438">
773
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
774
  <long-description><![CDATA[<p>The 'cb' column
775
  is given special treatment when columns are processed.</p>]]></long-description>
776
+ <tag line="438" name="since" description="0.1"/>
777
+ <tag line="438" name="param" description="A singular attachment (post) object" type="array" variable="$item">
778
  <type by_reference="false">array</type>
779
  </tag>
780
+ <tag line="438" name="return" description="HTML markup to be placed inside the column" type="string">
781
  <type by_reference="false">string</type>
782
  </tag>
783
  </docblock>
784
+ <argument line="447">
785
  <name>$item</name>
786
  <default><![CDATA[]]></default>
787
  <type/>
788
  </argument>
789
  </method>
790
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="463" package="Media Library Assistant">
791
  <name>column_icon</name>
792
  <full_name>column_icon</full_name>
793
+ <docblock line="455">
794
  <description><![CDATA[Supply the content for a custom column]]></description>
795
  <long-description><![CDATA[]]></long-description>
796
+ <tag line="455" name="since" description="0.1"/>
797
+ <tag line="455" name="param" description="A singular attachment (post) object" type="array" variable="$item">
798
  <type by_reference="false">array</type>
799
  </tag>
800
+ <tag line="455" name="return" description="HTML markup to be placed inside the column" type="string">
801
  <type by_reference="false">string</type>
802
  </tag>
803
  </docblock>
804
+ <argument line="463">
805
  <name>$item</name>
806
  <default><![CDATA[]]></default>
807
  <type/>
808
  </argument>
809
  </method>
810
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="479" package="Media Library Assistant">
811
  <name>_build_rollover_actions</name>
812
  <full_name>_build_rollover_actions</full_name>
813
+ <docblock line="468">
814
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
815
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
816
  <long-description><![CDATA[]]></long-description>
817
+ <tag line="468" name="since" description="0.1"/>
818
+ <tag line="468" name="param" description="A singular attachment (post) object" type="object" variable="$item">
819
  <type by_reference="false">object</type>
820
  </tag>
821
+ <tag line="468" name="param" description="Current column name" type="string" variable="$column">
822
  <type by_reference="false">string</type>
823
  </tag>
824
+ <tag line="468" name="return" description="Names and URLs of row-level actions" type="array">
825
  <type by_reference="false">array</type>
826
  </tag>
827
  </docblock>
828
+ <argument line="479">
829
  <name>$item</name>
830
  <default><![CDATA[]]></default>
831
  <type/>
832
  </argument>
833
+ <argument line="479">
834
  <name>$column</name>
835
  <default><![CDATA[]]></default>
836
  <type/>
837
  </argument>
838
  </method>
839
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="557" package="Media Library Assistant">
840
  <name>_build_inline_data</name>
841
  <full_name>_build_inline_data</full_name>
842
+ <docblock line="548">
843
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
844
  <long-description><![CDATA[]]></long-description>
845
+ <tag line="548" name="since" description="0.20"/>
846
+ <tag line="548" name="param" description="A singular attachment (post) object" type="object" variable="$item">
847
  <type by_reference="false">object</type>
848
  </tag>
849
+ <tag line="548" name="return" description="HTML &lt;div&gt; with row data" type="string">
850
  <type by_reference="false">string</type>
851
  </tag>
852
  </docblock>
853
+ <argument line="557">
854
  <name>$item</name>
855
  <default><![CDATA[]]></default>
856
  <type/>
857
  </argument>
858
  </method>
859
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="597" package="Media Library Assistant">
860
  <name>column_ID_parent</name>
861
  <full_name>column_ID_parent</full_name>
862
+ <docblock line="589">
863
  <description><![CDATA[Supply the content for a custom column]]></description>
864
  <long-description><![CDATA[]]></long-description>
865
+ <tag line="589" name="since" description="0.1"/>
866
+ <tag line="589" name="param" description="A singular attachment (post) object" type="array" variable="$item">
867
  <type by_reference="false">array</type>
868
  </tag>
869
+ <tag line="589" name="return" description="HTML markup to be placed inside the column" type="string">
870
  <type by_reference="false">string</type>
871
  </tag>
872
  </docblock>
873
+ <argument line="597">
874
  <name>$item</name>
875
  <default><![CDATA[]]></default>
876
  <type/>
877
  </argument>
878
  </method>
879
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="629" package="Media Library Assistant">
880
  <name>column_title_name</name>
881
  <full_name>column_title_name</full_name>
882
+ <docblock line="621">
883
  <description><![CDATA[Supply the content for a custom column]]></description>
884
  <long-description><![CDATA[]]></long-description>
885
+ <tag line="621" name="since" description="0.1"/>
886
+ <tag line="621" name="param" description="A singular attachment (post) object" type="array" variable="$item">
887
  <type by_reference="false">array</type>
888
  </tag>
889
+ <tag line="621" name="return" description="HTML markup to be placed inside the column" type="string">
890
  <type by_reference="false">string</type>
891
  </tag>
892
  </docblock>
893
+ <argument line="629">
894
  <name>$item</name>
895
  <default><![CDATA[]]></default>
896
  <type/>
897
  </argument>
898
  </method>
899
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="664" package="Media Library Assistant">
900
  <name>column_post_title</name>
901
  <full_name>column_post_title</full_name>
902
+ <docblock line="656">
903
  <description><![CDATA[Supply the content for a custom column]]></description>
904
  <long-description><![CDATA[]]></long-description>
905
+ <tag line="656" name="since" description="0.1"/>
906
+ <tag line="656" name="param" description="A singular attachment (post) object" type="array" variable="$item">
907
  <type by_reference="false">array</type>
908
  </tag>
909
+ <tag line="656" name="return" description="HTML markup to be placed inside the column" type="string">
910
  <type by_reference="false">string</type>
911
  </tag>
912
  </docblock>
913
+ <argument line="664">
914
  <name>$item</name>
915
  <default><![CDATA[]]></default>
916
  <type/>
917
  </argument>
918
  </method>
919
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="682" package="Media Library Assistant">
920
  <name>column_post_name</name>
921
  <full_name>column_post_name</full_name>
922
+ <docblock line="674">
923
  <description><![CDATA[Supply the content for a custom column]]></description>
924
  <long-description><![CDATA[]]></long-description>
925
+ <tag line="674" name="since" description="0.1"/>
926
+ <tag line="674" name="param" description="A singular attachment (post) object" type="array" variable="$item">
927
  <type by_reference="false">array</type>
928
  </tag>
929
+ <tag line="674" name="return" description="HTML markup to be placed inside the column" type="string">
930
  <type by_reference="false">string</type>
931
  </tag>
932
  </docblock>
933
+ <argument line="682">
934
  <name>$item</name>
935
  <default><![CDATA[]]></default>
936
  <type/>
937
  </argument>
938
  </method>
939
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="700" package="Media Library Assistant">
940
  <name>column_parent</name>
941
  <full_name>column_parent</full_name>
942
+ <docblock line="692">
943
  <description><![CDATA[Supply the content for a custom column]]></description>
944
  <long-description><![CDATA[]]></long-description>
945
+ <tag line="692" name="since" description="0.1"/>
946
+ <tag line="692" name="param" description="A singular attachment (post) object" type="array" variable="$item">
947
  <type by_reference="false">array</type>
948
  </tag>
949
+ <tag line="692" name="return" description="HTML markup to be placed inside the column" type="string">
950
  <type by_reference="false">string</type>
951
  </tag>
952
  </docblock>
953
+ <argument line="700">
954
  <name>$item</name>
955
  <default><![CDATA[]]></default>
956
  <type/>
957
  </argument>
958
  </method>
959
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="725" package="Media Library Assistant">
960
  <name>column_menu_order</name>
961
  <full_name>column_menu_order</full_name>
962
+ <docblock line="717">
963
  <description><![CDATA[Supply the content for a custom column]]></description>
964
  <long-description><![CDATA[]]></long-description>
965
+ <tag line="717" name="since" description="0.60"/>
966
+ <tag line="717" name="param" description="A singular attachment (post) object" type="array" variable="$item">
967
  <type by_reference="false">array</type>
968
  </tag>
969
+ <tag line="717" name="return" description="HTML markup to be placed inside the column" type="string">
970
  <type by_reference="false">string</type>
971
  </tag>
972
  </docblock>
973
+ <argument line="725">
974
  <name>$item</name>
975
  <default><![CDATA[]]></default>
976
  <type/>
977
  </argument>
978
  </method>
979
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="737" package="Media Library Assistant">
980
  <name>column_featured</name>
981
  <full_name>column_featured</full_name>
982
+ <docblock line="729">
983
  <description><![CDATA[Supply the content for a custom column]]></description>
984
  <long-description><![CDATA[]]></long-description>
985
+ <tag line="729" name="since" description="0.1"/>
986
+ <tag line="729" name="param" description="A singular attachment (post) object" type="array" variable="$item">
987
  <type by_reference="false">array</type>
988
  </tag>
989
+ <tag line="729" name="return" description="HTML markup to be placed inside the column" type="string">
990
  <type by_reference="false">string</type>
991
  </tag>
992
  </docblock>
993
+ <argument line="737">
994
  <name>$item</name>
995
  <default><![CDATA[]]></default>
996
  <type/>
997
  </argument>
998
  </method>
999
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="765" package="Media Library Assistant">
1000
  <name>column_inserted</name>
1001
  <full_name>column_inserted</full_name>
1002
+ <docblock line="757">
1003
  <description><![CDATA[Supply the content for a custom column]]></description>
1004
  <long-description><![CDATA[]]></long-description>
1005
+ <tag line="757" name="since" description="0.1"/>
1006
+ <tag line="757" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1007
  <type by_reference="false">array</type>
1008
  </tag>
1009
+ <tag line="757" name="return" description="HTML markup to be placed inside the column" type="string">
1010
  <type by_reference="false">string</type>
1011
  </tag>
1012
  </docblock>
1013
+ <argument line="765">
1014
  <name>$item</name>
1015
  <default><![CDATA[]]></default>
1016
  <type/>
1017
  </argument>
1018
  </method>
1019
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="797" package="Media Library Assistant">
1020
+ <name>column_galleries</name>
1021
+ <full_name>column_galleries</full_name>
1022
+ <docblock line="789">
1023
+ <description><![CDATA[Supply the content for a custom column]]></description>
1024
+ <long-description><![CDATA[]]></long-description>
1025
+ <tag line="789" name="since" description="0.70"/>
1026
+ <tag line="789" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1027
+ <type by_reference="false">array</type>
1028
+ </tag>
1029
+ <tag line="789" name="return" description="HTML markup to be placed inside the column" type="string">
1030
+ <type by_reference="false">string</type>
1031
+ </tag>
1032
+ </docblock>
1033
+ <argument line="797">
1034
+ <name>$item</name>
1035
+ <default><![CDATA[]]></default>
1036
+ <type/>
1037
+ </argument>
1038
+ </method>
1039
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="825" package="Media Library Assistant">
1040
+ <name>column_mla_galleries</name>
1041
+ <full_name>column_mla_galleries</full_name>
1042
+ <docblock line="817">
1043
+ <description><![CDATA[Supply the content for a custom column]]></description>
1044
+ <long-description><![CDATA[]]></long-description>
1045
+ <tag line="817" name="since" description="0.70"/>
1046
+ <tag line="817" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1047
+ <type by_reference="false">array</type>
1048
+ </tag>
1049
+ <tag line="817" name="return" description="HTML markup to be placed inside the column" type="string">
1050
+ <type by_reference="false">string</type>
1051
+ </tag>
1052
+ </docblock>
1053
+ <argument line="825">
1054
+ <name>$item</name>
1055
+ <default><![CDATA[]]></default>
1056
+ <type/>
1057
+ </argument>
1058
+ </method>
1059
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="853" package="Media Library Assistant">
1060
  <name>column_alt_text</name>
1061
  <full_name>column_alt_text</full_name>
1062
+ <docblock line="845">
1063
  <description><![CDATA[Supply the content for a custom column]]></description>
1064
  <long-description><![CDATA[]]></long-description>
1065
+ <tag line="845" name="since" description="0.1"/>
1066
+ <tag line="845" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1067
  <type by_reference="false">array</type>
1068
  </tag>
1069
+ <tag line="845" name="return" description="HTML markup to be placed inside the column" type="string">
1070
  <type by_reference="false">string</type>
1071
  </tag>
1072
  </docblock>
1073
+ <argument line="853">
1074
  <name>$item</name>
1075
  <default><![CDATA[]]></default>
1076
  <type/>
1077
  </argument>
1078
  </method>
1079
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="868" package="Media Library Assistant">
1080
  <name>column_caption</name>
1081
  <full_name>column_caption</full_name>
1082
+ <docblock line="860">
1083
  <description><![CDATA[Supply the content for a custom column]]></description>
1084
  <long-description><![CDATA[]]></long-description>
1085
+ <tag line="860" name="since" description="0.1"/>
1086
+ <tag line="860" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1087
  <type by_reference="false">array</type>
1088
  </tag>
1089
+ <tag line="860" name="return" description="HTML markup to be placed inside the column" type="string">
1090
  <type by_reference="false">string</type>
1091
  </tag>
1092
  </docblock>
1093
+ <argument line="868">
1094
  <name>$item</name>
1095
  <default><![CDATA[]]></default>
1096
  <type/>
1097
  </argument>
1098
  </method>
1099
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="880" package="Media Library Assistant">
1100
  <name>column_description</name>
1101
  <full_name>column_description</full_name>
1102
+ <docblock line="872">
1103
  <description><![CDATA[Supply the content for a custom column]]></description>
1104
  <long-description><![CDATA[]]></long-description>
1105
+ <tag line="872" name="since" description="0.1"/>
1106
+ <tag line="872" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1107
  <type by_reference="false">array</type>
1108
  </tag>
1109
+ <tag line="872" name="return" description="HTML markup to be placed inside the column" type="string">
1110
  <type by_reference="false">string</type>
1111
  </tag>
1112
  </docblock>
1113
+ <argument line="880">
1114
  <name>$item</name>
1115
  <default><![CDATA[]]></default>
1116
  <type/>
1117
  </argument>
1118
  </method>
1119
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="892" package="Media Library Assistant">
1120
  <name>column_post_mime_type</name>
1121
  <full_name>column_post_mime_type</full_name>
1122
+ <docblock line="884">
1123
  <description><![CDATA[Supply the content for a custom column]]></description>
1124
  <long-description><![CDATA[]]></long-description>
1125
+ <tag line="884" name="since" description="0.30"/>
1126
+ <tag line="884" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1127
  <type by_reference="false">array</type>
1128
  </tag>
1129
+ <tag line="884" name="return" description="HTML markup to be placed inside the column" type="string">
1130
  <type by_reference="false">string</type>
1131
  </tag>
1132
  </docblock>
1133
+ <argument line="892">
1134
  <name>$item</name>
1135
  <default><![CDATA[]]></default>
1136
  <type/>
1137
  </argument>
1138
  </method>
1139
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="904" package="Media Library Assistant">
1140
  <name>column_base_file</name>
1141
  <full_name>column_base_file</full_name>
1142
+ <docblock line="896">
1143
  <description><![CDATA[Supply the content for a custom column]]></description>
1144
  <long-description><![CDATA[]]></long-description>
1145
+ <tag line="896" name="since" description="0.1"/>
1146
+ <tag line="896" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1147
  <type by_reference="false">array</type>
1148
  </tag>
1149
+ <tag line="896" name="return" description="HTML markup to be placed inside the column" type="string">
1150
  <type by_reference="false">string</type>
1151
  </tag>
1152
  </docblock>
1153
+ <argument line="904">
1154
  <name>$item</name>
1155
  <default><![CDATA[]]></default>
1156
  <type/>
1157
  </argument>
1158
  </method>
1159
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="916" package="Media Library Assistant">
1160
  <name>column_date</name>
1161
  <full_name>column_date</full_name>
1162
+ <docblock line="908">
1163
  <description><![CDATA[Supply the content for a custom column]]></description>
1164
  <long-description><![CDATA[]]></long-description>
1165
+ <tag line="908" name="since" description="0.1"/>
1166
+ <tag line="908" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1167
  <type by_reference="false">array</type>
1168
  </tag>
1169
+ <tag line="908" name="return" description="HTML markup to be placed inside the column" type="string">
1170
  <type by_reference="false">string</type>
1171
  </tag>
1172
  </docblock>
1173
+ <argument line="916">
1174
  <name>$item</name>
1175
  <default><![CDATA[]]></default>
1176
  <type/>
1177
  </argument>
1178
  </method>
1179
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="945" package="Media Library Assistant">
1180
  <name>column_modified</name>
1181
  <full_name>column_modified</full_name>
1182
+ <docblock line="937">
1183
  <description><![CDATA[Supply the content for a custom column]]></description>
1184
  <long-description><![CDATA[]]></long-description>
1185
+ <tag line="937" name="since" description="0.30"/>
1186
+ <tag line="937" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1187
  <type by_reference="false">array</type>
1188
  </tag>
1189
+ <tag line="937" name="return" description="HTML markup to be placed inside the column" type="string">
1190
  <type by_reference="false">string</type>
1191
  </tag>
1192
  </docblock>
1193
+ <argument line="945">
1194
  <name>$item</name>
1195
  <default><![CDATA[]]></default>
1196
  <type/>
1197
  </argument>
1198
  </method>
1199
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="974" package="Media Library Assistant">
1200
  <name>column_author</name>
1201
  <full_name>column_author</full_name>
1202
+ <docblock line="966">
1203
  <description><![CDATA[Supply the content for a custom column]]></description>
1204
  <long-description><![CDATA[]]></long-description>
1205
+ <tag line="966" name="since" description="0.30"/>
1206
+ <tag line="966" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1207
  <type by_reference="false">array</type>
1208
  </tag>
1209
+ <tag line="966" name="return" description="HTML markup to be placed inside the column" type="string">
1210
  <type by_reference="false">string</type>
1211
  </tag>
1212
  </docblock>
1213
+ <argument line="974">
1214
  <name>$item</name>
1215
  <default><![CDATA[]]></default>
1216
  <type/>
1217
  </argument>
1218
  </method>
1219
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="995" package="Media Library Assistant">
1220
  <name>column_attached_to</name>
1221
  <full_name>column_attached_to</full_name>
1222
+ <docblock line="987">
1223
  <description><![CDATA[Supply the content for a custom column]]></description>
1224
  <long-description><![CDATA[]]></long-description>
1225
+ <tag line="987" name="since" description="0.1"/>
1226
+ <tag line="987" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1227
  <type by_reference="false">array</type>
1228
  </tag>
1229
+ <tag line="987" name="return" description="HTML markup to be placed inside the column" type="string">
1230
  <type by_reference="false">string</type>
1231
  </tag>
1232
  </docblock>
1233
+ <argument line="995">
1234
  <name>$item</name>
1235
  <default><![CDATA[]]></default>
1236
  <type/>
1237
  </argument>
1238
  </method>
1239
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1024" package="Media Library Assistant">
1240
  <name>get_columns</name>
1241
  <full_name>get_columns</full_name>
1242
+ <docblock line="1017">
1243
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
1244
  <long-description><![CDATA[]]></long-description>
1245
+ <tag line="1017" name="since" description="0.1"/>
1246
+ <tag line="1017" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
1247
  <type by_reference="false">array</type>
1248
  </tag>
1249
  </docblock>
1250
  </method>
1251
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1036" package="Media Library Assistant">
1252
  <name>get_hidden_columns</name>
1253
  <full_name>get_hidden_columns</full_name>
1254
+ <docblock line="1028">
1255
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
1256
  from default values if the option is not set]]></description>
1257
  <long-description><![CDATA[]]></long-description>
1258
+ <tag line="1028" name="since" description="0.1"/>
1259
+ <tag line="1028" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
1260
  <type by_reference="false">array</type>
1261
  </tag>
1262
  </docblock>
1263
  </method>
1264
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1056" package="Media Library Assistant">
1265
  <name>get_sortable_columns</name>
1266
  <full_name>get_sortable_columns</full_name>
1267
+ <docblock line="1046">
1268
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
1269
  and the value is db column to sort by.]]></description>
1270
  <long-description><![CDATA[<p>Also notes the current sort column,
1271
  if set.</p>]]></long-description>
1272
+ <tag line="1046" name="since" description="0.1"/>
1273
+ <tag line="1046" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
1274
  <type by_reference="false">array</type>
1275
  </tag>
1276
  </docblock>
1277
  </method>
1278
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1083" package="Media Library Assistant">
1279
  <name>get_views</name>
1280
  <full_name>get_views</full_name>
1281
+ <docblock line="1075">
1282
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
1283
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
1284
+ <tag line="1075" name="since" description="0.1"/>
1285
+ <tag line="1075" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
1286
  <type by_reference="false">array</type>
1287
  </tag>
1288
  </docblock>
1289
  </method>
1290
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1160" package="Media Library Assistant">
1291
  <name>get_bulk_actions</name>
1292
  <full_name>get_bulk_actions</full_name>
1293
+ <docblock line="1152">
1294
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
1295
  of bulk actions available on this table.]]></description>
1296
  <long-description><![CDATA[]]></long-description>
1297
+ <tag line="1152" name="since" description="0.1"/>
1298
+ <tag line="1152" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1299
  <type by_reference="false">array</type>
1300
  </tag>
1301
  </docblock>
1302
  </method>
1303
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1191" package="Media Library Assistant">
1304
  <name>extra_tablenav</name>
1305
  <full_name>extra_tablenav</full_name>
1306
+ <docblock line="1180">
1307
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
1308
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
1309
+ <tag line="1180" name="since" description="0.1"/>
1310
+ <tag line="1180" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
1311
  <type by_reference="false">string</type>
1312
  </tag>
1313
+ <tag line="1180" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1314
  <type by_reference="false">array</type>
1315
  </tag>
1316
  </docblock>
1317
+ <argument line="1191">
1318
  <name>$which</name>
1319
  <default><![CDATA[]]></default>
1320
  <type/>
1321
  </argument>
1322
  </method>
1323
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1251" package="Media Library Assistant">
1324
  <name>prepare_items</name>
1325
  <full_name>prepare_items</full_name>
1326
+ <docblock line="1239">
1327
  <description><![CDATA[Prepares the list of items for displaying]]></description>
1328
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
1329
  be used to query the database, sort and filter the data, and generally
1330
  get it ready to be displayed. At a minimum, we should set $this->items and
1331
  $this->set_pagination_args().</p>]]></long-description>
1332
+ <tag line="1239" name="since" description="0.1"/>
1333
+ <tag line="1239" name="return" description="" type="void">
1334
  <type by_reference="false">void</type>
1335
  </tag>
1336
  </docblock>
1337
  </method>
1338
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1297" package="Media Library Assistant">
1339
  <name>single_row</name>
1340
  <full_name>single_row</full_name>
1341
+ <docblock line="1288">
1342
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
1343
  <long-description><![CDATA[]]></long-description>
1344
+ <tag line="1288" name="since" description=".20"/>
1345
+ <tag line="1288" name="param" description="the current item" type="object" variable="$item">
1346
  <type by_reference="false">object</type>
1347
  </tag>
1348
+ <tag line="1288" name="return" description="Echoes the row HTML" type="void">
1349
  <type by_reference="false">void</type>
1350
  </tag>
1351
  </docblock>
1352
+ <argument line="1297">
1353
  <name>$item</name>
1354
  <default><![CDATA[]]></default>
1355
  <type/>
1357
  </method>
1358
  </class>
1359
  </file>
1360
+ <file path="includes\class-mla-main.php" hash="3f19601b6a238243a76d72483a7ed887" package="Media Library Assistant">
1361
  <docblock line="2">
1362
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1363
  <long-description><![CDATA[]]></long-description>
1394
  <constant namespace="global" line="41" package="Media Library Assistant">
1395
  <name>CURRENT_MLA_VERSION</name>
1396
  <full_name>CURRENT_MLA_VERSION</full_name>
1397
+ <value><![CDATA['0.70']]></value>
1398
  <docblock line="34">
1399
  <description><![CDATA[Current version number]]></description>
1400
  <long-description><![CDATA[]]></long-description>
2556
  </method>
2557
  </class>
2558
  </file>
2559
+ <file path="includes\class-mla-shortcodes.php" hash="d77b8e63a9ec2dc65324584b34313d52" package="Media Library Assistant">
2560
  <docblock line="2">
2561
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
2562
  <long-description><![CDATA[]]></long-description>
2585
  </tag>
2586
  </docblock>
2587
  </property>
2588
+ <property final="false" static="true" visibility="private" line="141" namespace="global" package="Media Library Assistant">
2589
+ <name>$mla_debug</name>
2590
+ <default><![CDATA[false]]></default>
2591
+ <docblock line="134">
2592
+ <description><![CDATA[Turn debug collection and display on or off]]></description>
2593
+ <long-description><![CDATA[]]></long-description>
2594
+ <tag line="134" name="since" description="0.70"/>
2595
+ <tag line="134" name="var" description="" type="boolean">
2596
+ <type by_reference="false">boolean</type>
2597
+ </tag>
2598
+ </docblock>
2599
+ </property>
2600
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="23" package="Media Library Assistant">
2601
  <name>initialize</name>
2602
  <full_name>initialize</full_name>
2621
  </tag>
2622
  </docblock>
2623
  </method>
2624
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="156" package="Media Library Assistant">
2625
  <name>mla_gallery_shortcode</name>
2626
  <full_name>mla_gallery_shortcode</full_name>
2627
+ <docblock line="143">
2628
  <description><![CDATA[The MLA Gallery shortcode.]]></description>
2629
  <long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
2630
  page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
2631
  Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
2632
+ <tag line="143" name="since" description=".50"/>
2633
+ <tag line="143" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
2634
  <type by_reference="false">array</type>
2635
  </tag>
2636
+ <tag line="143" name="return" description="HTML content to display gallery." type="string">
2637
  <type by_reference="false">string</type>
2638
  </tag>
2639
  </docblock>
2640
+ <argument line="156">
2641
  <name>$attr</name>
2642
  <default><![CDATA[]]></default>
2643
  <type/>
2644
  </argument>
2645
  </method>
2646
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="289" package="Media Library Assistant">
2647
+ <name>mla_get_shortcode_attachments</name>
2648
+ <full_name>mla_get_shortcode_attachments</full_name>
2649
+ <docblock line="279">
2650
+ <description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
2651
  <long-description><![CDATA[]]></long-description>
2652
+ <tag line="279" name="since" description=".50"/>
2653
+ <tag line="279" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
2654
+ <type by_reference="false">int</type>
2655
  </tag>
2656
+ <tag line="279" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
2657
+ <type by_reference="false">array</type>
2658
  </tag>
2659
+ <tag line="279" name="return" description="List of attachments returned from WP_Query" type="array">
2660
  <type by_reference="false">array</type>
2661
  </tag>
2662
  </docblock>
2663
+ <argument line="289">
2664
+ <name>$post_parent</name>
2665
  <default><![CDATA[]]></default>
2666
  <type/>
2667
  </argument>
2668
+ <argument line="289">
2669
+ <name>$attr</name>
2670
+ <default><![CDATA[]]></default>
2671
+ <type/>
2672
+ </argument>
2673
+ </method>
2674
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="615" package="Media Library Assistant">
2675
+ <name>mla_shortcode_query_posts_where_filter</name>
2676
+ <full_name>mla_shortcode_query_posts_where_filter</full_name>
2677
+ <docblock line="602">
2678
+ <description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
2679
+ <long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
2680
+ phrase to circumvent subsequent Role Scoper modification of the clause.
2681
+ Defined as public because it's a filter.</p>]]></long-description>
2682
+ <tag line="602" name="since" description="0.70"/>
2683
+ <tag line="602" name="param" description="query clause before modification" type="string" variable="$where_clause">
2684
+ <type by_reference="false">string</type>
2685
+ </tag>
2686
+ <tag line="602" name="return" description="query clause after modification" type="string">
2687
+ <type by_reference="false">string</type>
2688
+ </tag>
2689
+ </docblock>
2690
+ <argument line="615">
2691
+ <name>$where_clause</name>
2692
+ <default><![CDATA[]]></default>
2693
  <type/>
2694
  </argument>
2695
  </method>
2734
  </docblock>
2735
  </constant>
2736
  </file>
2737
+ <file path="index.php" hash="52bcec16591373d72aafb9cb58b0a081" package="Media Library Assistant">
2738
  <docblock line="2">
2739
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
2740
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
2741
  will the rest of the plugin be loaded and run.</p>]]></long-description>
2742
  <tag line="2" name="package" description="Media Library Assistant"/>
2743
+ <tag line="2" name="version" description="0.70"/>
2744
  </docblock>
2745
  <include line="103" type="Require Once" package="Media Library Assistant">
2746
  <name>includes/mla-plugin-loader.php</name>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://fairtradejudaica.org/make-a-difference/donate/
4
  Tags: attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories
5
  Requires at least: 3.3
6
  Tested up to: 3.4.2
7
- Stable tag: 0.60
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -17,15 +17,16 @@ The Media Library Assistant provides several enhancements for managing the Media
17
  * The **[mla_gallery] shortcode**, used in a post, page or custom post type to add a gallery of images and/or other Media Library items (such as PDF documents). [MLA Gallery](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation") is a superset of the [gallery] shortcode in the WordPress core; it is compatible with [gallery] and provides many enhancements. These include: 1) full support for WordPress categories, tags and custom taxonomies, 2) support for all post_mime_type values, not just images 3) media Library items need not be "attached" to the post.
18
 
19
  * **Enhanced Search Media box**. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or".
20
- * An inline "Bulk Edit" area; update author or parent, add, remove or replace taxonomy terms for several attachments at once.
21
- * An inline "Quick Edit" action for many common fields.
22
- * Complete support for ALL taxonomies, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. You can add taxonomy columns to the Assistant listing, filter on any taxonomy, assign terms and list the attachments for a term.
23
- * Shows which posts use a media item as the "featured image"
24
- * Shows which posts use a media item as an inserted image or link
 
25
  * Displays more attachment information such as parent information, file URL and image metadata
26
  * Allows you to edit the attachment author, the name/slug and to "unattach" items
27
  * Provides additional view filters for mime types and taxonomies
28
- * Provides many more listing columns (more than 15) to choose from
29
 
30
  The Assistant is designed to work like the standard Media Library pages, so the learning curve is short and gentle. Contextual help is provided on every new screen to highlight new features. The [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down for Help Summary") contains a summary of the help text following the [mla_gallery] documentation.
31
 
@@ -38,7 +39,7 @@ This plugin was inspired by my work on the WordPress web site for our nonprofit,
38
  1. Visit the settings page to customize category and tag support
39
  1. Visit the "Assistant" submenu in the Media admin section
40
  1. Click the Screen Options link to customize the display
41
- 1. Use the enhanced Edit page to assign categories and tags
42
  1. Use the [mla_gallery] shortcode to add galleries of images, documents and more to your posts and pages
43
 
44
  == Frequently Asked Questions ==
@@ -80,6 +81,10 @@ For example, if you add Tags support to the Assistant and then assign tag values
80
 
81
  Hover over the item you want to modify and click the "Edit" action. On the Edit Single Item page, set the ID portion of the Parent Info field to zero (0), then click "Update" to record your changes. If you change your mind, click "Cancel" to return to the main page without recording any changes.
82
 
 
 
 
 
83
  = Are other language versions available? =
84
 
85
  Not at this time; I don't have working knowledge of anything but English. If you'd like to volunteer to produce another version, I'll rework the code to internationalize it and work with you to localize it.
@@ -98,6 +103,13 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
98
 
99
  == Changelog ==
100
 
 
 
 
 
 
 
 
101
  = 0.60 =
102
  * New: Enhanced Search Media box. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or".
103
  * New: The ID/Parent and Parent ID columns now contain a link to a parent-specific search of the Media Library.
@@ -157,6 +169,9 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
157
 
158
  == Upgrade Notice ==
159
 
 
 
 
160
  = 0.60 =
161
  Get the enhanced Search Media box. Extend search to the name/slug, ALT text and caption fields. Connect search terms with "and" or "or". Five other enhancements and two fixes.
162
 
@@ -295,14 +310,17 @@ The search parameter ("s=keyword") will perform a keyword search. A cursory insp
295
  <p><strong>NOTE:</strong> Month and category filters are &#8220;sticky&#8221;, i.e., they will persist as you resort the display or change the file type/status view.</p>
296
  <p><strong>Featured/Inserted</strong></p>
297
  <p>The &#8220;Featured in&#8221; and &#8220;Inserted in&#8221; columns are a powerful tool for managing your attachments. They show you where each attachment is used in a post or page as a &#8220;Featured Image&#8221; or as an embedded image or link.</p>
298
- <p>You can also use the information in the &#8220;Title/Name&#8221; column to identify &#8220;Orphan&#8221; items that are not used in any post or page and items with a &#8220;Bad Parent&#8221;, i.e., a parent that does not exist.</p>
 
 
 
299
  <p><strong>Taxonomy Support</strong></p>
300
  <p>The &#8220;taxonomy&#8221; columns help you to group attachments by subject and keyword values. The columns list any categories and tags associated with the item. You can click on one of the displayed values to get a list of all items associated with that value.</p>
301
  <p>The Media Library Assistant provides two pre-defined taxonomies, &#8220;Att. Categories&#8221; and &#8220;Att. Tags&#8221; which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
302
  <p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
303
  <p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an &#8220;Attachments&#8221; column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
304
  <p><strong>Search Media</strong></p>
305
- <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".
306
  <p>Once you&#8217;ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
307
  <p><strong>Bulk Actions</strong></p>
308
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
4
  Tags: attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories
5
  Requires at least: 3.3
6
  Tested up to: 3.4.2
7
+ Stable tag: 0.70
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
17
  * The **[mla_gallery] shortcode**, used in a post, page or custom post type to add a gallery of images and/or other Media Library items (such as PDF documents). [MLA Gallery](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation") is a superset of the [gallery] shortcode in the WordPress core; it is compatible with [gallery] and provides many enhancements. These include: 1) full support for WordPress categories, tags and custom taxonomies, 2) support for all post_mime_type values, not just images 3) media Library items need not be "attached" to the post.
18
 
19
  * **Enhanced Search Media box**. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or".
20
+
21
+ * **Where-used reporting** shows which posts use a media item as the "featured image", an inserted image or link, an entry in a [gallery] and/or an entry in an [mla_gallery].
22
+
23
+ * **Complete support for ALL taxonomies**, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. You can add taxonomy columns to the Assistant listing, filter on any taxonomy, assign terms and list the attachments for a term.
24
+ * An inline "Bulk Edit" area; update author or parent, add, remove or replace taxonomy terms for several attachments at once
25
+ * An inline "Quick Edit" action for many common fields
26
  * Displays more attachment information such as parent information, file URL and image metadata
27
  * Allows you to edit the attachment author, the name/slug and to "unattach" items
28
  * Provides additional view filters for mime types and taxonomies
29
+ * Provides many more listing columns (more than 20) to choose from
30
 
31
  The Assistant is designed to work like the standard Media Library pages, so the learning curve is short and gentle. Contextual help is provided on every new screen to highlight new features. The [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down for Help Summary") contains a summary of the help text following the [mla_gallery] documentation.
32
 
39
  1. Visit the settings page to customize category and tag support
40
  1. Visit the "Assistant" submenu in the Media admin section
41
  1. Click the Screen Options link to customize the display
42
+ 1. Use the enhanced Edit, Quick Edit and Bulk Edit pages to assign categories and tags
43
  1. Use the [mla_gallery] shortcode to add galleries of images, documents and more to your posts and pages
44
 
45
  == Frequently Asked Questions ==
81
 
82
  Hover over the item you want to modify and click the "Edit" action. On the Edit Single Item page, set the ID portion of the Parent Info field to zero (0), then click "Update" to record your changes. If you change your mind, click "Cancel" to return to the main page without recording any changes.
83
 
84
+ = The Media Library Assistant table listing seems sluggish; is there anything I can do to make it faster? =
85
+
86
+ Some of the MLA features such as where-used reporting and ALT Text sorting/searching require a lot of database procesing. If this is a serious issue for you, open a thread in the support forum and let me know. I could implement a Settings option to turn these features on and off.
87
+
88
  = Are other language versions available? =
89
 
90
  Not at this time; I don't have working knowledge of anything but English. If you'd like to volunteer to produce another version, I'll rework the code to internationalize it and work with you to localize it.
103
 
104
  == Changelog ==
105
 
106
+ = 0.70 =
107
+ * New: "Gallery in" and "MLA Gallery in" columns show where the item appears in [gallery] and [mla_gallery] shortcode output.
108
+ * New: Post titles in the where-used columns contain a link to the Edit Post/Page screen.
109
+ * New: Title/Name column distinguishes between "BAD PARENT" (no where-used references to the item) and "INVALID PARENT" (does not exist).
110
+ * Fix: [mla_gallery] queries are modified to avoid a conflict with the Role Scoper plugin.
111
+ * Fix: Undefined taxonomies are now bypassed when defining table columns, avoiding (!) Notice displays after changing taxonomy support settings.
112
+
113
  = 0.60 =
114
  * New: Enhanced Search Media box. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or".
115
  * New: The ID/Parent and Parent ID columns now contain a link to a parent-specific search of the Media Library.
169
 
170
  == Upgrade Notice ==
171
 
172
+ = 0.70 =
173
+ Get the new "Gallery in" and "MLA Gallery in" where-used reporting to see where items are returned by the [gallery] and [mla_gallery] shortcodes. Two other enhancements and two fixes.
174
+
175
  = 0.60 =
176
  Get the enhanced Search Media box. Extend search to the name/slug, ALT text and caption fields. Connect search terms with "and" or "or". Five other enhancements and two fixes.
177
 
310
  <p><strong>NOTE:</strong> Month and category filters are &#8220;sticky&#8221;, i.e., they will persist as you resort the display or change the file type/status view.</p>
311
  <p><strong>Featured/Inserted</strong></p>
312
  <p>The &#8220;Featured in&#8221; and &#8220;Inserted in&#8221; columns are a powerful tool for managing your attachments. They show you where each attachment is used in a post or page as a &#8220;Featured Image&#8221; or as an embedded image or link.</p>
313
+ <p>You can also use the information in the &#8220;Title/Name&#8221; column to identify &#8220;Orphan&#8221; items that are not used in any post or page and items with a &#8220;Bad Parent&#8221; (a parent that does contain any reference to the item) or an &#8220;Invalid Parent&#8221; (a parent that does not exist).</p>
314
+ <p><strong>Gallery/MLA Gallery</strong></p>
315
+ <p>The &#8220;Gallery in&#8221; and &#8220;MLA Gallery in&#8221; columns are a powerful tool for managing your attachments. They show you where each attachment is returned by a <code>[gallery]</code> or <code>[mla_gallery]</code> shortcode in a post or page. These columns do <strong>not</strong> use the post_parent (attached to) status of the item; they actually execute each shortcode and tabulate the attachments they return.</p>
316
+ <p>You can also use the information in the &#8220;Title/Name&#8221; column to identify &#8220;Orphan&#8221; items that are not used in any post or page and items with a &#8220;Bad Parent&#8221; (a parent that does contain any reference to the item) or an &#8220;Invalid Parent&#8221; (a parent that does not exist).</p>
317
  <p><strong>Taxonomy Support</strong></p>
318
  <p>The &#8220;taxonomy&#8221; columns help you to group attachments by subject and keyword values. The columns list any categories and tags associated with the item. You can click on one of the displayed values to get a list of all items associated with that value.</p>
319
  <p>The Media Library Assistant provides two pre-defined taxonomies, &#8220;Att. Categories&#8221; and &#8220;Att. Tags&#8221; which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
320
  <p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
321
  <p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an &#8220;Attachments&#8221; column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
322
  <p><strong>Search Media</strong></p>
323
+ <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".</p>
324
  <p>Once you&#8217;ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
325
  <p><strong>Bulk Actions</strong></p>
326
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
tpls/admin-display-single-postbox.tpl DELETED
@@ -1,6 +0,0 @@
1
- <div id="[+id+]" class="postbox" >
2
- <div class="handlediv" title="Click to toggle"><br /></div><h3 class='hndle'><span>[+title+]</span></h3>
3
- <div class="inside">
4
- [+inside_html+]
5
- </div>
6
- </div>
 
 
 
 
 
 
tpls/help-for-media_page_mla-menu.tpl CHANGED
@@ -8,19 +8,23 @@
8
  <!-- template="mla-featured-inserted" -->
9
  <!-- title="Featured/Inserted" order="2" -->
10
  <p>The &#8220;Featured in&#8221; and &#8220;Inserted in&#8221; columns are a powerful tool for managing your attachments. They show you where each attachment is used in a post or page as a &#8220;Featured Image&#8221; or as an embedded image or link.</p>
11
- <p>You can also use the information in the &#8220;Title/Name&#8221; column to identify &#8220;Orphan&#8221; items that are not used in any post or page and items with a &#8220;Bad Parent&#8221;, i.e., a parent that does not exist.</p>
 
 
 
 
12
  <!-- template="mla-categories-tags" -->
13
- <!-- title="Taxonomy Support" order="3" -->
14
  <p>The &#8220;taxonomy&#8221; columns help you to group attachments by subject and keyword values. The columns list any categories and tags associated with the item. You can click on one of the displayed values to get a list of all items associated with that value.</p>
15
  <p>The Media Library Assistant provides two pre-defined taxonomies, &#8220;Att. Categories&#8221; and &#8220;Att. Tags&#8221; which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
16
  <p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
17
  <p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an &#8220;Attachments&#8221; column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
18
  <!-- template="mla-search-media" -->
19
- <!-- title="Search Media" order="4" -->
20
- <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".
21
  <p>Once you&#8217;ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
22
  <!-- template="mla-bulk-actions" -->
23
- <!-- title="Bulk Actions" order="5" -->
24
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
25
  <p>Once you&#8217;ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
26
  <p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permamently.</p>
@@ -28,11 +32,11 @@
28
  <p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you&#8217;d like to perform.</p>
29
  <p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
30
  <!-- template="mla-available-actions" -->
31
- <!-- title="Available Actions" order="6" -->
32
  <p>Hovering over a row reveals action links such as Edit, Quick Edit, Move to Trash and Delete Permanently. Clicking Edit displays a simple screen to edit that individual file&#8217;s metadata. Clicking Move to Trash will assign the file to the Trash pile but will not affect pages or posts to which it is attached. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). Clicking Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen.</p>
33
  <p>The taxonomies that appear in the Quick Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
34
  <!-- template="mla-attaching-files" -->
35
- <!-- title="Attaching Files" order="7" -->
36
  <p>If a media file has not been attached to any post, you will see (unattached) in the Attached To column. You can click on the Edit or Quick Edit action to attach the file by assigning a value to the Parent ID field.</p>
37
  <!-- template="sidebar" -->
38
  <p><strong>For more information:</strong></p>
8
  <!-- template="mla-featured-inserted" -->
9
  <!-- title="Featured/Inserted" order="2" -->
10
  <p>The &#8220;Featured in&#8221; and &#8220;Inserted in&#8221; columns are a powerful tool for managing your attachments. They show you where each attachment is used in a post or page as a &#8220;Featured Image&#8221; or as an embedded image or link.</p>
11
+ <p>You can also use the information in the &#8220;Title/Name&#8221; column to identify &#8220;Orphan&#8221; items that are not used in any post or page and items with a &#8220;Bad Parent&#8221; (a parent that does contain any reference to the item) or an &#8220;Invalid Parent&#8221; (a parent that does not exist).</p>
12
+ <!-- template="mla-gallery-in" -->
13
+ <!-- title="Gallery/MLA Gallery" order="3" -->
14
+ <p>The &#8220;Gallery in&#8221; and &#8220;MLA Gallery in&#8221; columns are a powerful tool for managing your attachments. They show you where each attachment is returned by a <code>[gallery]</code> or <code>[mla_gallery]</code> shortcode in a post or page. These columns do <strong>not</strong> use the post_parent (attached to) status of the item; they actually execute each shortcode and tabulate the attachments they return.</p>
15
+ <p>You can also use the information in the &#8220;Title/Name&#8221; column to identify &#8220;Orphan&#8221; items that are not used in any post or page and items with a &#8220;Bad Parent&#8221; (a parent that does contain any reference to the item) or an &#8220;Invalid Parent&#8221; (a parent that does not exist).</p>
16
  <!-- template="mla-categories-tags" -->
17
+ <!-- title="Taxonomy Support" order="4" -->
18
  <p>The &#8220;taxonomy&#8221; columns help you to group attachments by subject and keyword values. The columns list any categories and tags associated with the item. You can click on one of the displayed values to get a list of all items associated with that value.</p>
19
  <p>The Media Library Assistant provides two pre-defined taxonomies, &#8220;Att. Categories&#8221; and &#8220;Att. Tags&#8221; which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
20
  <p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
21
  <p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an &#8220;Attachments&#8221; column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
22
  <!-- template="mla-search-media" -->
23
+ <!-- title="Search Media" order="5" -->
24
+ <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".</p>
25
  <p>Once you&#8217;ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
26
  <!-- template="mla-bulk-actions" -->
27
+ <!-- title="Bulk Actions" order="6" -->
28
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
29
  <p>Once you&#8217;ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
30
  <p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permamently.</p>
32
  <p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you&#8217;d like to perform.</p>
33
  <p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
34
  <!-- template="mla-available-actions" -->
35
+ <!-- title="Available Actions" order="7" -->
36
  <p>Hovering over a row reveals action links such as Edit, Quick Edit, Move to Trash and Delete Permanently. Clicking Edit displays a simple screen to edit that individual file&#8217;s metadata. Clicking Move to Trash will assign the file to the Trash pile but will not affect pages or posts to which it is attached. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). Clicking Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen.</p>
37
  <p>The taxonomies that appear in the Quick Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
38
  <!-- template="mla-attaching-files" -->
39
+ <!-- title="Attaching Files" order="8" -->
40
  <p>If a media file has not been attached to any post, you will see (unattached) in the Attached To column. You can click on the Edit or Quick Edit action to attach the file by assigning a value to the Parent ID field.</p>
41
  <!-- template="sidebar" -->
42
  <p><strong>For more information:</strong></p>