Media Library Assistant - Version 1.42

Version Description

  • New: Pagination support for [mla_gallery], using the "previous_page" and "next_page" values of the "mla_output" parameter. See the Settings/Media Library Assistant Documentation tab for complete information and examples.
  • New: For [mla_gallery], a new parameter ("mla_link_class") lets you add class attribute values to the hyperlinks.
  • New: For [mla_gallery], a new parameter ("mla_nolink_text") replaces the empty string returned for an empty [mla_gallery] or null pagination links.
  • New: For [mla_gallery], the "mla_margin" and "mla_itemwidth" parameters can be set to any value, not just percent values. You can use "auto", dimension values like "10px" or remove the properties altogether. See the Settings/Media Library Assistant Documentation tab for complete information.
  • New: Default values for the [mla_gallery] "columns", "mla_margin" and "mla_itemwidth" parameters can now be specified on the Settings/Media Library Assistant submenu, MLA Gallery tab.
  • New: For [mla_gallery], a new substitution parameter ("last_in_row") contains a class name for the last item in each full gallery row. You can use this class name to apply specific CSS styles to the last item in each full row.
  • New: For [mla_gallery], a new parameter ("tax_include_children") gives more control for queries on hierarchial taxonomies, such as attachment_category.
  • New: On the Media/Assistant submenu a new rollover action, "View", has been added.
  • New: On the Media/Assistant submenu a new column, "File URL", has been added.
  • New: absolute_path, absolute_file_name, base_file, name_only and mime_type values added to the custom field data sources list.
  • Fix: For [mla_gallery], the paged=current value will now take its value from the "page" query variable for Single Paginated Posts that contain the <!--nextpage--> quicktag in the post content.
  • Fix: On the Media/Assistant submenu, the view, search, filter and sort values are retained when moving among multiple pages.
  • Fix: On the Media/Assistant submenu, the view, search and filter values are retained when re-sorting by column values.
  • Fix: On the Media/Assistant submenu, the current view is correctly highlighted for MLA enhanced table views.
  • Fix: If you disable the Media Manager Enhanced Search Media box, the WordPress-native search box functions correctly.
  • Fix: On the Settings/Media Library Assistant submenu, Custom Fields and IPTC/EXIF tabs, the field drop-downlist in the "Add a new Mapping Rule" area now includes fields that have been defined but not yet mapped to any attachments.
Download this release

Release Info

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

Code changes from version 1.41 to 1.42

includes/class-mla-data.php CHANGED
@@ -464,6 +464,7 @@ class MLAData {
464
  $clean_request[ $key ] = $value;
465
  else {
466
  $clean_request[ $key ] = unserialize( stripslashes( $value ) );
 
467
  } // not array
468
  }
469
  break;
@@ -683,7 +684,7 @@ class MLAData {
683
  trigger_error( '_execute_list_table_query $wp_filter = ' . var_export( $debug_array, true ), E_USER_WARNING );
684
  }
685
  else {
686
- error_log( '_execute_list_table_query $wp_filter = ' . var_export( $debug_array, true ), 0 );
687
  }
688
  } // debug
689
 
@@ -696,7 +697,7 @@ class MLAData {
696
  trigger_error( '_execute_list_table_query WP_Query = ' . var_export( $debug_array, true ), E_USER_WARNING );
697
  }
698
  else {
699
- error_log( '_execute_list_table_query WP_Query = ' . var_export( $debug_array, true ), 0 );
700
  }
701
  } // debug
702
 
@@ -751,7 +752,7 @@ class MLAData {
751
  trigger_error( 'mla_query_posts_search_filter is_numeric = ' . var_export( $debug_array, true ), E_USER_WARNING );
752
  }
753
  else {
754
- error_log( 'mla_query_posts_search_filter is_numeric = ' . var_export( $debug_array, true ), 0 );
755
  }
756
  } // debug
757
 
@@ -816,7 +817,7 @@ class MLAData {
816
  trigger_error( 'mla_query_posts_search_filter not numeric = ' . var_export( $debug_array, true ), E_USER_WARNING );
817
  }
818
  else {
819
- error_log( 'mla_query_posts_search_filter not numeric = ' . var_export( $debug_array, true ), 0 );
820
  }
821
  } // debug
822
  } // isset 's'
@@ -1673,29 +1674,22 @@ class MLAData {
1673
  */
1674
  private static function _build_pdf_indirect_objects( &$string ) {
1675
  $match_count = preg_match_all( '!(\d+)\h+(\d+)\h+obj\x0D|endobj\x0D|stream(\x0D\x0A|\x0A)|endstream!', $string, $matches, PREG_OFFSET_CAPTURE );
1676
- //error_log( '_build_pdf_indirect_objects $match_count = ' . var_export( $match_count, true ), 0 );
1677
- //error_log( '_build_pdf_indirect_objects $matches = ' . var_export( $matches, true ), 0 );
1678
 
1679
  self::$pdf_indirect_objects = array();
1680
  $object_level = 0;
1681
  $is_stream = false;
1682
  for ( $index = 0; $index < $match_count; $index++ ) {
1683
- //error_log( '_build_pdf_indirect_objects match dump = ' . var_export( self::_hex_dump( $matches[0][ $index ][0], strlen( $matches[0][ $index ][0] ), 16 ), true ), 0 );
1684
  if ( $is_stream ) {
1685
  if ( 'endstream' == substr( $matches[0][ $index ][0], 0, 9 ) ) {
1686
  $is_stream = false;
1687
- //error_log( '_build_pdf_indirect_objects $pdf endstream = ' . "\r\n" . var_export( self::_hex_dump( substr( $pdf, $matches[0][ $index ][1] - 64) , 128, 32 ), true ) . "\r\n", 0 );
1688
  }
1689
  }
1690
  elseif ( 'endobj' == substr( $matches[0][ $index ][0], 0, 6 ) ) {
1691
  $object_level--;
1692
- $object_entry['length'] = $matches[0][ $index ][1] - $object_entry['start'];
1693
  self::$pdf_indirect_objects[ ($object_entry['number'] * 1000) + $object_entry['generation'] ] = $object_entry;
1694
  }
1695
  elseif ( 'obj' == substr( $matches[0][ $index ][0], -4, 3 ) ) {
1696
- //error_log( '_build_pdf_indirect_objects pdf $matches[1] = ' . var_export( $matches[1][ $index ], true ), 0 );
1697
- //error_log( '_build_pdf_indirect_objects pdf $matches[2] = ' . var_export( $matches[2][ $index ], true ), 0 );
1698
- //error_log( '_build_pdf_indirect_objects pdf $matches[3] = ' . var_export( $matches[3][ $index ], true ), 0 );
1699
  $object_level++;
1700
  $object_entry = array(
1701
  'number' => $matches[1][ $index ][0],
@@ -1705,103 +1699,253 @@ class MLAData {
1705
  }
1706
  elseif ( 'stream' == substr( $matches[0][ $index ][0], 0, 6 ) ) {
1707
  $is_stream = true;
1708
- //error_log( '_build_pdf_indirect_objects $pdf stream = ' . "\r\n" . var_export( self::_hex_dump( substr( $pdf, $matches[0][ $index ][1] - 64) , 128, 32 ), true ) . "\r\n", 0 );
1709
  }
1710
  else
1711
- error_log( 'bad value $index = ' . $index, 0 );
1712
-
1713
- //error_log( "in_stream[ {$is_stream} ] Level is {$level} Object Level is {$object_level} after index {$index} at offset " . var_export( $matches[0][ $index ][1], true ), 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1714
  }
1715
- //error_log( '_build_pdf_indirect_objects self::$pdf_indirect_objects = ' . var_export( self::$pdf_indirect_objects, true ), 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1716
  }
1717
 
1718
  /**
1719
  * Parse a PDF dictionary object
1720
  *
1721
- * Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string), indirect (object), name, array, dictionary, stream, and null.
 
 
 
1722
  * @since 1.4x
1723
  *
1724
- * @param string dictionary content, without enclosing << and >> delimiters
 
1725
  *
1726
- * @return array ( key => array( 'type' => type, 'value' => value ) ) for each dictionary field
1727
  */
1728
- private static function _parse_pdf_dictionary( $string ) {
1729
- error_log( '_parse_pdf_dictionary $string dump = ' . var_export( self::_hex_dump( $string, strlen( $string ), 16 ), true ), 0 );
1730
- //error_log( '_parse_pdf_dictionary $string = '. var_export( $string, true ), 0 );
 
 
 
 
 
1731
  $dictionary = array();
1732
- while ( 0 < strlen( $string) ) {
1733
- // \x00-\x20 for whitespace
1734
- // \(|\)|\<|\>|\[|\]|\{|\}|\/|\% for delimiters
1735
- $match_count = preg_match_all( '!/([^\x00-\x20|\(|\)|\<|\>|\[|\]|\{|\}|\/|\%]*)([\x00-\x20]*)!', $string, $matches, PREG_OFFSET_CAPTURE );
1736
- //error_log( '_parse_pdf_dictionary trailer dictionary name $match_count = ' . var_export( $match_count, true ), 0 );
1737
- //error_log( '_extract_pdf_metadata trailer dictionary name $matches[1] = ' . var_export( $matches[1], true ), 0 );
1738
- //error_log( '_parse_pdf_dictionary trailer dictionary name $matches = ' . var_export( $matches, true ), 0 );
1739
-
1740
- for ( $match_index = 0; $match_index < $match_count; $match_index++ ) {
1741
- $name = $matches[1][ $match_index ][0];
1742
- //error_log( '_parse_pdf_dictionary name = ' . var_export( $name, true ), 0 );
1743
- $value_count = preg_match(
1744
- '!(\/?[^\/\x0D\x0A]*)!',
1745
- substr( $string, $matches[2][ $match_index ][1] + strlen( $matches[2][ $match_index ][0] ) ), $value_matches, PREG_OFFSET_CAPTURE );
1746
- //error_log( '_parse_pdf_dictionary $value_count = ' . var_export( $value_count, true ), 0 );
1747
- //error_log( '_parse_pdf_dictionary $value_matches = ' . var_export( $value_matches, true ), 0 );
1748
-
1749
- if ( 1 == $value_count ) {
1750
- $value = $value_matches[0][0];
1751
- $dictionary[ $name ]['value'] = $value;
1752
- if ( ! isset( $value[0] ) ) {
1753
- error_log( 'bad value $name = ' . var_export( $name, true ), 0 );
1754
- error_log( 'bad value $value = ' . var_export( $value, true ), 0 );
1755
- }
1756
- if ( in_array( $value, array( 'true', 'false' ) ) )
1757
- $dictionary[ $name ]['type'] = 'boolean';
1758
- elseif ( is_numeric( $value ) )
1759
- $dictionary[ $name ]['type'] = 'numeric';
1760
- elseif ( '(' == $value[0] )
1761
- $dictionary[ $name ]['type'] = 'string';
1762
- elseif ( '<' == $value[0] ) {
1763
- if ( '<' == $value[1] )
1764
- $dictionary[ $name ]['type'] = 'dictionary';
1765
- else
1766
- $dictionary[ $name ]['type'] = 'hex';
 
 
 
 
 
 
 
 
 
1767
  }
1768
- elseif ( '/' == $value[0] ) {
1769
- $dictionary[ $name ]['type'] = 'name';
1770
- $match_index++; // Skip to the next key
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1771
  }
1772
- elseif ( '[' == $value[0] )
1773
- $dictionary[ $name ]['type'] = 'array';
1774
- elseif ( 'null' == $value )
1775
- $dictionary[ $name ]['type'] = 'null';
1776
- elseif ( 'stream' == substr( $value, 0, 6 ) )
1777
- $dictionary[ $name ]['type'] = 'stream';
1778
  else {
1779
- $object_count = preg_match( '!(\d+)\h+(\d+)\h+R!', $value, $object_matches );
1780
- if ( 1 == $object_count ) {
1781
- $dictionary[ $name ]['type'] = 'indirect';
1782
- $dictionary[ $name ]['object'] = $object_matches[1];
1783
- $dictionary[ $name ]['generation'] = $object_matches[2];
1784
- //error_log( '_parse_pdf_dictionary object_matches = ' . var_export( $object_matches, true ), 0 );
1785
- }
1786
- else {
1787
- //error_log( '_parse_pdf_dictionary unknown dump = ' . var_export( self::_hex_dump( $value, strlen( $value ), 16 ), true ), 0 );
1788
- //error_log( '_parse_pdf_dictionary unknown numeric = ' . var_export( is_numeric( $value ), true ), 0 );
1789
- //error_log( '_parse_pdf_dictionary unknown length = ' . var_export( strlen( $value ), true ), 0 );
1790
- //error_log( '_parse_pdf_dictionary unknown $value = ' . var_export( $value, true ), 0 );
1791
- $dictionary[ $name ]['type'] = 'unknown';
1792
- }
1793
  }
1794
  }
1795
- else {
1796
- $dictionary[ $matches[1][ $match_index ][0] ] = array( 'value' => '' );
1797
- $dictionary[ $matches[1][ $match_index ][0] ]['type'] = 'nomatch';
1798
- }
1799
- } // foreach match
1800
-
1801
- $string = '';
1802
- }
1803
-
1804
- error_log( '_parse_pdf_dictionary $dictionary = '. var_export( $dictionary, true ), 0 );
1805
  return $dictionary;
1806
  }
1807
 
@@ -1815,7 +1959,7 @@ error_log( '_parse_pdf_dictionary $dictionary = '. var_export( $dictionary, true
1815
  * @return array ( key => value ) for each metadata field, in string format
1816
  */
1817
  private static function _extract_pdf_metadata( $string ) {
1818
- error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
1819
  $metadata = array();
1820
  $pdf = file_get_contents( $string, true );
1821
  if ( $pdf == false ) {
@@ -1829,38 +1973,57 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
1829
 
1830
  $header = substr( $pdf, 0, 8 );
1831
  if ( '%PDF-' == substr( $header, 0, 5 ) ) {
1832
- $metadata['Version'] = substr( $header, 1, 7 );
1833
- $metadata['VersionNumber'] = substr( $header, 5, 3 );
1834
  }
1835
 
1836
- // $match_count = preg_match_all( '/[\r|\n]+<<(.*)>>[\r|\n]+/', $pdf, $matches, PREG_OFFSET_CAPTURE );
1837
- // $match_count = preg_match_all( '/[\r|\n]+startxref[\r|\n]+([0-9]+)[\r|\n]+\%\%EOF[\r|\n]*/', $pdf, $matches, PREG_OFFSET_CAPTURE );
1838
-
1839
  $match_count = preg_match_all( '/[\r|\n]+trailer[\r|\n]+/', $pdf, $matches, PREG_OFFSET_CAPTURE );
1840
  if ( 0 < $match_count ) {
1841
  $tail = substr( $pdf, (integer) $matches[0][ $match_count - 1 ][1] );
1842
- // $match_count = preg_match_all( '/[\r|\n]+<<(.*)>>[\r|\n]+/', $pdf, $matches ); //, PREG_OFFSET_CAPTURE );
1843
  $match_count = preg_match_all( '/[\r|\n]+<<(.*)>>[\r|\n]+/', $tail, $matches ); //, PREG_OFFSET_CAPTURE );
1844
- //error_log( '_extract_pdf_metadata trailer dictionary $match_count = ' . var_export( $match_count, true ), 0 );
1845
- //error_log( '_extract_pdf_metadata trailer dictionary $matches = ' . var_export( $matches, true ), 0 );
1846
- if ( 0 < $match_count ) {
1847
- // for ( $index = 0; $index < $match_count; $index++ )
1848
- // $dictionary = self::_parse_pdf_dictionary( $matches[1][ $index ] );
1849
- $dictionary = self::_parse_pdf_dictionary( $matches[1][ $match_count - 1 ] );
1850
 
1851
  if ( isset( $dictionary['Info'] ) ) {
1852
- //error_log( '_extract_pdf_metadata trailer dictionary Info = ' . var_export( $dictionary['Info'], true ), 0 );
1853
  $info_ref = ($dictionary['Info']['object'] * 1000) + $dictionary['Info']['generation'];
1854
- //error_log( '_extract_pdf_metadata trailer dictionary $info_ref = ' . var_export( $info_ref, true ), 0 );
1855
  if ( isset( self::$pdf_indirect_objects[ $info_ref ] ) ) {
1856
- //error_log( '_extract_pdf_metadata trailer dictionary start = ' . var_export( self::$pdf_indirect_objects[ $info_ref ], true ), 0 );
1857
- //error_log( '_extract_pdf_metadata Object = ' . "\r\n" . var_export( self::_hex_dump( substr( $pdf, self::$pdf_indirect_objects[ $info_ref ]['start'], self::$pdf_indirect_objects[ $info_ref ]['length'] ), self::$pdf_indirect_objects[ $info_ref ]['length'], 32 ), true ) . "\r\n", 0 );
1858
- $info_dictionary = self::_parse_pdf_dictionary( substr( $pdf, self::$pdf_indirect_objects[ $info_ref ]['start'], self::$pdf_indirect_objects[ $info_ref ]['length'] ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
1859
  } // found Info object
1860
  } // found Info ref
 
 
 
 
 
 
 
 
 
 
 
 
1861
  } // found dictionary
1862
  } // found trailer
1863
 
 
1864
  return $metadata;
1865
  }
1866
 
@@ -1903,8 +2066,9 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
1903
  if ( seems_utf8( $string ) )
1904
  return $string;
1905
 
1906
- if(function_exists('utf8_encode'))
1907
  return utf8_encode( $string );
 
1908
 
1909
  $output = '';
1910
  for ($index = 0; $index < strlen( $string ); $index++ ) {
@@ -2292,19 +2456,19 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
2292
  * @since 1.41
2293
  *
2294
  * @param string field name - IPTC Identifier or friendly name/slug
2295
- * @param string metadata array containing 'mla_iptc_metadata' array
2296
  *
2297
  * @return mixed string/array representation of metadata value or an empty string
2298
  */
2299
- public static function mla_iptc_metadata_value( $iptc_key, $image_metadata ) {
2300
  // convert friendly name/slug to identifier
2301
  if ( array_key_exists( $iptc_key, self::$mla_iptc_keys ) ) {
2302
  $iptc_key = self::$mla_iptc_keys[ $iptc_key ];
2303
  }
2304
 
2305
  $text = '';
2306
- if ( array_key_exists( $iptc_key, $image_metadata['mla_iptc_metadata'] ) ) {
2307
- $text = $image_metadata['mla_iptc_metadata'][ $iptc_key ];
2308
  if ( is_array( $text ) ) {
2309
  foreach ($text as $key => $value )
2310
  $text[ $key ] = self::_bin_to_utf8( $value );
@@ -2325,14 +2489,17 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
2325
  * @since 1.13
2326
  *
2327
  * @param string field name
2328
- * @param string metadata array containing 'mla_exif_metadata' and 'mla_iptc_metadata' arrays
2329
  *
2330
  * @return string string representation of metadata value or an empty string
2331
  */
2332
- public static function mla_exif_metadata_value( $exif_key, $image_metadata ) {
 
 
 
2333
  $text = '';
2334
- if ( array_key_exists( $exif_key, $image_metadata['mla_exif_metadata'] ) ) {
2335
- $text = $image_metadata['mla_exif_metadata'][ $exif_key ];
2336
  if ( is_array( $text ) ) {
2337
  foreach ($text as $key => $value ) {
2338
  if ( is_array( $value ) )
@@ -2345,7 +2512,7 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
2345
  $text = self::_bin_to_utf8( $text );
2346
  } elseif ( 'ALL_EXIF' == $exif_key ) {
2347
  $clean_data = array();
2348
- foreach ( $image_metadata['mla_exif_metadata'] as $key => $value ) {
2349
  if ( is_array( $value ) )
2350
  $clean_data[ $key ] = '(ARRAY)';
2351
  elseif ( is_string( $value ) )
@@ -2357,7 +2524,7 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
2357
  $text = var_export( $clean_data, true);
2358
  } elseif ( 'ALL_IPTC' == $exif_key ) {
2359
  $clean_data = array();
2360
- foreach ( $image_metadata['mla_iptc_metadata'] as $key => $value ) {
2361
  if ( is_array( $value ) ) {
2362
  foreach ($value as $text_key => $text )
2363
  $value[ $text_key ] = self::_bin_to_utf8( $text );
@@ -2376,6 +2543,50 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
2376
  return $text;
2377
  }
2378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2379
  /**
2380
  * Fetch and filter IPTC and EXIF meta data for an image attachment
2381
  *
@@ -2399,12 +2610,11 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
2399
  $path = get_attached_file($post_id);
2400
 
2401
  if ( ! empty( $path ) ) {
2402
- /*
2403
  if ( 'pdf' == strtolower( pathinfo( $path, PATHINFO_EXTENSION ) ) ) {
2404
  $results['mla_pdf_metadata'] = self::_extract_pdf_metadata( $path );
2405
  return $results;
2406
  }
2407
- */
2408
  $size = getimagesize( $path, $info );
2409
 
2410
  if ( is_callable( 'iptcparse' ) ) {
@@ -2772,7 +2982,7 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
2772
  * Uncomment this for debugging.
2773
  */
2774
  // $final_message .= '<br>' . $message;
2775
- // error_log( 'message = ' . var_export( $message, true ), 0 );
2776
 
2777
  return array(
2778
  'message' => $final_message,
@@ -2851,12 +3061,15 @@ error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
2851
  while ( $position < $limit ) {
2852
  $row_length = strlen( substr( $data, $position ) );
2853
 
 
 
 
2854
  if ( $row_length > ( $limit - $position ) )
2855
  $row_length = $limit - $position;
2856
 
2857
  if ( $row_length > $bytes_per_row )
2858
  $row_length = $bytes_per_row;
2859
-
2860
  $row_data = substr( $data, $position, $row_length );
2861
 
2862
  $print_string = '';
464
  $clean_request[ $key ] = $value;
465
  else {
466
  $clean_request[ $key ] = unserialize( stripslashes( $value ) );
467
+ unset( $clean_request[ $key ]['slug'] );
468
  } // not array
469
  }
470
  break;
684
  trigger_error( '_execute_list_table_query $wp_filter = ' . var_export( $debug_array, true ), E_USER_WARNING );
685
  }
686
  else {
687
+ error_log( 'DEBUG: _execute_list_table_query $wp_filter = ' . var_export( $debug_array, true ), 0 );
688
  }
689
  } // debug
690
 
697
  trigger_error( '_execute_list_table_query WP_Query = ' . var_export( $debug_array, true ), E_USER_WARNING );
698
  }
699
  else {
700
+ error_log( 'DEBUG: _execute_list_table_query WP_Query = ' . var_export( $debug_array, true ), 0 );
701
  }
702
  } // debug
703
 
752
  trigger_error( 'mla_query_posts_search_filter is_numeric = ' . var_export( $debug_array, true ), E_USER_WARNING );
753
  }
754
  else {
755
+ error_log( 'DEBUG: mla_query_posts_search_filter is_numeric = ' . var_export( $debug_array, true ), 0 );
756
  }
757
  } // debug
758
 
817
  trigger_error( 'mla_query_posts_search_filter not numeric = ' . var_export( $debug_array, true ), E_USER_WARNING );
818
  }
819
  else {
820
+ error_log( 'DEBUG: mla_query_posts_search_filter not numeric = ' . var_export( $debug_array, true ), 0 );
821
  }
822
  } // debug
823
  } // isset 's'
1674
  */
1675
  private static function _build_pdf_indirect_objects( &$string ) {
1676
  $match_count = preg_match_all( '!(\d+)\h+(\d+)\h+obj\x0D|endobj\x0D|stream(\x0D\x0A|\x0A)|endstream!', $string, $matches, PREG_OFFSET_CAPTURE );
 
 
1677
 
1678
  self::$pdf_indirect_objects = array();
1679
  $object_level = 0;
1680
  $is_stream = false;
1681
  for ( $index = 0; $index < $match_count; $index++ ) {
 
1682
  if ( $is_stream ) {
1683
  if ( 'endstream' == substr( $matches[0][ $index ][0], 0, 9 ) ) {
1684
  $is_stream = false;
 
1685
  }
1686
  }
1687
  elseif ( 'endobj' == substr( $matches[0][ $index ][0], 0, 6 ) ) {
1688
  $object_level--;
1689
+ $object_entry['/length'] = $matches[0][ $index ][1] - $object_entry['start'];
1690
  self::$pdf_indirect_objects[ ($object_entry['number'] * 1000) + $object_entry['generation'] ] = $object_entry;
1691
  }
1692
  elseif ( 'obj' == substr( $matches[0][ $index ][0], -4, 3 ) ) {
 
 
 
1693
  $object_level++;
1694
  $object_entry = array(
1695
  'number' => $matches[1][ $index ][0],
1699
  }
1700
  elseif ( 'stream' == substr( $matches[0][ $index ][0], 0, 6 ) ) {
1701
  $is_stream = true;
 
1702
  }
1703
  else
1704
+ error_log( 'ERROR: _build_pdf_indirect_objects bad value $index = ' . $index, 0 );
1705
+ } // for each match
1706
+ }
1707
+
1708
+ /**
1709
+ * Parse a PDF date string object
1710
+ *
1711
+ * @since 1.4x
1712
+ *
1713
+ * @param string PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm
1714
+ *
1715
+ * @return string formatted date string YYYY-MM-DD HH:mm:SS
1716
+ */
1717
+ private static function _parse_pdf_date( &$source_string ) {
1718
+ return sprintf( '%1$s-%2$s-%3$s %4$s:%5$s:%6$s',
1719
+ substr( $source_string, 2, 2),
1720
+ substr( $source_string, 4, 2),
1721
+ substr( $source_string, 6, 2),
1722
+ substr( $source_string, 8, 2),
1723
+ substr( $source_string, 10, 2),
1724
+ substr( $source_string, 12, 2) );
1725
+ }
1726
+
1727
+ /**
1728
+ * Parse a PDF Unicode (16-bit Big Endian) object
1729
+ *
1730
+ * @since 1.4x
1731
+ *
1732
+ * @param string PDF string of 16-bit characters
1733
+ *
1734
+ * @return string UTF-8 encoded string
1735
+ */
1736
+ private static function _parse_pdf_UTF16BE( &$source_string ) {
1737
+ $output = '';
1738
+ for ($index = 2; $index < strlen( $source_string ); ) {
1739
+ $value = ( ord( $source_string[ $index++ ] ) << 8 ) + ord( $source_string[ $index++ ] );
1740
+ if ( $value < 0x80 )
1741
+ $output .= chr( $value );
1742
+ elseif ( $value < 0x100 )
1743
+ $output .= self::$utf8_chars[ $value - 0x80 ];
1744
+ else {
1745
+ $output .= '.'; // TODO encode the rest
1746
+ }
1747
  }
1748
+
1749
+ return $output;
1750
+ }
1751
+
1752
+ /**
1753
+ * Parse a PDF string object
1754
+ *
1755
+ * Returns an array with one dictionary entry. The array also has a '/length' element containing
1756
+ * the number of bytes occupied by the string in the source string, including the enclosing parentheses.
1757
+ *
1758
+ * @since 1.4x
1759
+ *
1760
+ * @param string data within which the string occurs
1761
+ * @param integer offset within the source string of the opening '(' character.
1762
+ *
1763
+ * @return array ( key => array( 'type' => type, 'value' => value, '/length' => length ) ) for the string
1764
+ */
1765
+ private static function _parse_pdf_string( &$source_string, $offset ) {
1766
+ if ( '(' != $source_string[ $offset ] )
1767
+ return array( 'type' => 'unknown', 'value' => '', '/length' => 0 );
1768
+
1769
+ /*
1770
+ * Brute force, here we come...
1771
+ */
1772
+ $output = '';
1773
+ $level = 0;
1774
+ $in_string = true;
1775
+ $index = $offset + 1;
1776
+ while ( $in_string ) {
1777
+ $byte = $source_string[ $index++ ];
1778
+ if ( '\\' == $byte ) {
1779
+ switch ( $source_string[ $index ] ) {
1780
+ case chr( 0x0A ):
1781
+ if ( chr( 0x0D ) == $source_string[ $index + 1 ] )
1782
+ $index++;
1783
+ break;
1784
+ case chr( 0x0D ):
1785
+ if ( chr( 0x0A ) == $source_string[ $index + 1 ] )
1786
+ $index++;
1787
+ break;
1788
+ case 'n':
1789
+ $output .= chr( 0x0A );
1790
+ break;
1791
+ case 'r':
1792
+ $output .= chr( 0x0D );
1793
+ break;
1794
+ case 't':
1795
+ $output .= chr( 0x09 );
1796
+ break;
1797
+ case 'b':
1798
+ $output .= chr( 0x08 );
1799
+ break;
1800
+ case 'f':
1801
+ $output .= chr( 0x0C );
1802
+ break;
1803
+ case '(':
1804
+ $output .= '(';
1805
+ break;
1806
+ case ')':
1807
+ $output .= ')';
1808
+ break;
1809
+ case '\\':
1810
+ $output .= '\\';
1811
+ break;
1812
+ default: // should be a 1- to 3-digit octal value
1813
+ for ($digit_count = 0; ++$digit_count < 4; )
1814
+ if ( ! ctype_digit( $source_string[ $index + $digit_count ] ) )
1815
+ break;
1816
+
1817
+ if ( $digit_count ) {
1818
+ $output .= chr( octdec( substr( $source_string, $index, $digit_count ) ) );
1819
+ $index += $digit_count - 1;
1820
+ }
1821
+ else // invalid! Back up and just discard the backslash
1822
+ $index--;
1823
+ } // switch
1824
+
1825
+ $index++;
1826
+ } // REVERSE SOLIDUS
1827
+ else {
1828
+ if ( '(' == $byte )
1829
+ $level++;
1830
+ elseif ( ')' == $byte ) {
1831
+ if ( 0 == $level-- ) {
1832
+ $in_string = false;
1833
+ continue;
1834
+ }
1835
+ }
1836
+
1837
+ $output .= $byte;
1838
+ } // just another 8-bit value, but check for balanced parentheses
1839
+ } // $in_string
1840
+
1841
+ return array( 'type' => 'string', 'value' => $output, '/length' => $index - $offset );
1842
  }
1843
 
1844
  /**
1845
  * Parse a PDF dictionary object
1846
  *
1847
+ * Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
1848
+ * indirect (object), name, array, dictionary, stream, and null.
1849
+ * The array also has a '/length' element containing the number of bytes occupied by the
1850
+ * dictionary in the source string, including the enclosing parentheses.
1851
  * @since 1.4x
1852
  *
1853
+ * @param string data within which the string occurs
1854
+ * @param integer offset within the source string of the opening '<<' characters.
1855
  *
1856
+ * @return array ( '/length' => length, key => array( 'type' => type, 'value' => value ) ) for each dictionary field
1857
  */
1858
+ private static function _parse_pdf_dictionary( &$source_string, $offset ) {
1859
+ if ( '<<' == substr( $source_string, $offset, 2 ) ) {
1860
+ $offset += 2;
1861
+ $delimiter_length = 4;
1862
+ }
1863
+ else
1864
+ $delimiter_length = 0;
1865
+
1866
  $dictionary = array();
1867
+ // \x00-\x20 for whitespace
1868
+ // \(|\)|\<|\>|\[|\]|\{|\}|\/|\% for delimiters
1869
+ $match_count = preg_match_all( '!/([^\x00-\x20|\(|\)|\<|\>|\[|\]|\{|\}|\/|\%]*)([\x00-\x20]*)!', substr( $source_string, $offset ), $matches, PREG_OFFSET_CAPTURE );
1870
+
1871
+ $end_data = -1;
1872
+ for ( $match_index = 0; $match_index < $match_count; $match_index++ ) {
1873
+ $name = $matches[1][ $match_index ][0];
1874
+ $value_start = $offset + $matches[2][ $match_index ][1] + strlen( $matches[2][ $match_index ][0] );
1875
+ /*
1876
+ * Skip over false matches within a string or nested dictionary
1877
+ */
1878
+ if ( $value_start < $end_data )
1879
+ continue;
1880
+
1881
+ $end_data = -1;
1882
+ $value_count = preg_match(
1883
+ '!(\/?[^\/\x0D\x0A]*)!',
1884
+ substr( $source_string, $value_start ), $value_matches, PREG_OFFSET_CAPTURE );
1885
+
1886
+ if ( 1 == $value_count ) {
1887
+ $value = $value_matches[0][0];
1888
+ $length = strlen( $value );
1889
+ $dictionary[ $name ]['value'] = $value;
1890
+ if ( ! isset( $value[0] ) ) {
1891
+ error_log( "ERROR: _parse_pdf_dictionary bad value [ {$name} ] dump = " . var_export( self::_hex_dump( $value, 32, 16 ), true ), 0 );
1892
+ continue;
1893
+ }
1894
+
1895
+ if ( in_array( $value, array( 'true', 'false' ) ) )
1896
+ $dictionary[ $name ]['type'] = 'boolean';
1897
+ elseif ( is_numeric( $value ) )
1898
+ $dictionary[ $name ]['type'] = 'numeric';
1899
+ elseif ( '(' == $value[0] ) {
1900
+ $dictionary[ $name ] = self::_parse_pdf_string( $source_string, $value_start );
1901
+ $end_data = $value_start + $dictionary[ $name ]['/length'];
1902
+ unset( $dictionary[ $name ]['/length'] );
1903
+ }
1904
+ elseif ( '<' == $value[0] ) {
1905
+ if ( '<' == $value[1] ) {
1906
+ $dictionary[ $name ]['value'] = self::_parse_pdf_dictionary( $source_string, $value_start );
1907
+ $dictionary[ $name ]['type'] = 'dictionary';
1908
+ $length = $dictionary[ $name ]['value']['/length'];
1909
+ unset( $dictionary[ $name ]['value']['/length'] );
1910
+ $end_data = $value_start + $length;
1911
  }
1912
+ else
1913
+ $dictionary[ $name ]['type'] = 'hex';
1914
+ }
1915
+ elseif ( '/' == $value[0] ) {
1916
+ $dictionary[ $name ]['value'] = substr( $value, 1 );
1917
+ $dictionary[ $name ]['type'] = 'name';
1918
+ $match_index++; // Skip to the next key
1919
+ }
1920
+ elseif ( '[' == $value[0] ) {
1921
+ $dictionary[ $name ]['type'] = 'array';
1922
+ $array_length = strpos( $source_string, ']', $value_start ) - ($value_start + 1);
1923
+ $dictionary[ $name ]['value'] = substr( $source_string, $value_start + 1, $array_length );
1924
+ $end_data = 2 + $value_start + $array_length;
1925
+ }
1926
+ elseif ( 'null' == $value )
1927
+ $dictionary[ $name ]['type'] = 'null';
1928
+ elseif ( 'stream' == substr( $value, 0, 6 ) )
1929
+ $dictionary[ $name ]['type'] = 'stream';
1930
+ else {
1931
+ $object_count = preg_match( '!(\d+)\h+(\d+)\h+R!', $value, $object_matches );
1932
+ if ( 1 == $object_count ) {
1933
+ $dictionary[ $name ]['type'] = 'indirect';
1934
+ $dictionary[ $name ]['object'] = $object_matches[1];
1935
+ $dictionary[ $name ]['generation'] = $object_matches[2];
1936
  }
 
 
 
 
 
 
1937
  else {
1938
+ $dictionary[ $name ]['type'] = 'unknown';
 
 
 
 
 
 
 
 
 
 
 
 
 
1939
  }
1940
  }
1941
+ }
1942
+ else {
1943
+ $dictionary[ $matches[1][ $match_index ][0] ] = array( 'value' => '' );
1944
+ $dictionary[ $matches[1][ $match_index ][0] ]['type'] = 'nomatch';
1945
+ }
1946
+ } // foreach match
1947
+
1948
+ $dictionary['/length'] = $value_start + $length + $delimiter_length;
 
 
1949
  return $dictionary;
1950
  }
1951
 
1959
  * @return array ( key => value ) for each metadata field, in string format
1960
  */
1961
  private static function _extract_pdf_metadata( $string ) {
1962
+ //error_log( '_extract_pdf_metadata $string = '. var_export( $string, true ), 0 );
1963
  $metadata = array();
1964
  $pdf = file_get_contents( $string, true );
1965
  if ( $pdf == false ) {
1973
 
1974
  $header = substr( $pdf, 0, 8 );
1975
  if ( '%PDF-' == substr( $header, 0, 5 ) ) {
1976
+ $metadata['PDF_Version'] = substr( $header, 1, 7 );
1977
+ $metadata['PDF_VersionNumber'] = substr( $header, 5, 3 );
1978
  }
1979
 
 
 
 
1980
  $match_count = preg_match_all( '/[\r|\n]+trailer[\r|\n]+/', $pdf, $matches, PREG_OFFSET_CAPTURE );
1981
  if ( 0 < $match_count ) {
1982
  $tail = substr( $pdf, (integer) $matches[0][ $match_count - 1 ][1] );
 
1983
  $match_count = preg_match_all( '/[\r|\n]+<<(.*)>>[\r|\n]+/', $tail, $matches ); //, PREG_OFFSET_CAPTURE );
1984
+
1985
+ if ( 0 < $match_count ) {
1986
+ $dictionary = self::_parse_pdf_dictionary( $matches[1][ $match_count - 1 ], 0 );
1987
+ //error_log( "_extract_pdf_metadata trailer dictionary {$match_count} = ". var_export( $dictionary, true ), 0 );
 
 
1988
 
1989
  if ( isset( $dictionary['Info'] ) ) {
 
1990
  $info_ref = ($dictionary['Info']['object'] * 1000) + $dictionary['Info']['generation'];
1991
+
1992
  if ( isset( self::$pdf_indirect_objects[ $info_ref ] ) ) {
1993
+ $info_dictionary = self::_parse_pdf_dictionary( substr( $pdf, self::$pdf_indirect_objects[ $info_ref ]['start'], self::$pdf_indirect_objects[ $info_ref ]['/length'] ), 0 );
1994
+ unset( $info_dictionary['/length'] );
1995
+
1996
+ foreach( $info_dictionary as $name => $value ) {
1997
+ if ( 'string' == $value['type'] ) {
1998
+ $prefix = substr( $value['value'], 0, 2 );
1999
+ if ( 'D:' == $prefix )
2000
+ $metadata[ $name ] = self::_parse_pdf_date( $value['value'] );
2001
+ elseif ( ( chr(0xFE) . chr(0xFF) ) == $prefix )
2002
+ $metadata[ $name ] = self::_parse_pdf_UTF16BE( $value['value'] );
2003
+ else
2004
+ $metadata[ $name ] = $value['value'];
2005
+ }
2006
+ else
2007
+ $metadata[ $name ] = $value['value'];
2008
+ } // each info entry
2009
  } // found Info object
2010
  } // found Info ref
2011
+ elseif ( isset( $dictionary['Root'] ) ) {
2012
+ //error_log( '_extract_pdf_metadata trailer dictionary Root = ' . var_export( $dictionary['Root'], true ), 0 );
2013
+ $info_ref = ($dictionary['Root']['object'] * 1000) + $dictionary['Root']['generation'];
2014
+ //error_log( '_extract_pdf_metadata trailer dictionary $info_ref = ' . var_export( $info_ref, true ), 0 );
2015
+ if ( isset( self::$pdf_indirect_objects[ $info_ref ] ) ) {
2016
+ //error_log( '_extract_pdf_metadata Root dictionary ref = ' . var_export( self::$pdf_indirect_objects[ $info_ref ], true ), 0 );
2017
+ //error_log( '_extract_pdf_metadata Root object = ' . "\r\n" . var_export( self::_hex_dump( substr( $pdf, self::$pdf_indirect_objects[ $info_ref ]['start'], self::$pdf_indirect_objects[ $info_ref ]['/length'] ), self::$pdf_indirect_objects[ $info_ref ]['/length'], 32 ), true ) . "\r\n", 0 );
2018
+ $root_dictionary = self::_parse_pdf_dictionary( substr( $pdf, self::$pdf_indirect_objects[ $info_ref ]['start'], self::$pdf_indirect_objects[ $info_ref ]['/length'] ), 0 );
2019
+ unset( $root_dictionary['/length'] );
2020
+ //error_log( "_extract_pdf_metadata Root dictionary = ". var_export( $root_dictionary, true ), 0 );
2021
+ } // found Root object
2022
+ } // found Root ref
2023
  } // found dictionary
2024
  } // found trailer
2025
 
2026
+ //error_log( "_extract_pdf_metadata metadata = ". var_export( $metadata, true ), 0 );
2027
  return $metadata;
2028
  }
2029
 
2066
  if ( seems_utf8( $string ) )
2067
  return $string;
2068
 
2069
+ if(function_exists('utf8_encode')) {
2070
  return utf8_encode( $string );
2071
+ }
2072
 
2073
  $output = '';
2074
  for ($index = 0; $index < strlen( $string ); $index++ ) {
2456
  * @since 1.41
2457
  *
2458
  * @param string field name - IPTC Identifier or friendly name/slug
2459
+ * @param string metadata array containing iptc, exif, and pdf metadata arrays
2460
  *
2461
  * @return mixed string/array representation of metadata value or an empty string
2462
  */
2463
+ public static function mla_iptc_metadata_value( $iptc_key, $item_metadata ) {
2464
  // convert friendly name/slug to identifier
2465
  if ( array_key_exists( $iptc_key, self::$mla_iptc_keys ) ) {
2466
  $iptc_key = self::$mla_iptc_keys[ $iptc_key ];
2467
  }
2468
 
2469
  $text = '';
2470
+ if ( array_key_exists( $iptc_key, $item_metadata['mla_iptc_metadata'] ) ) {
2471
+ $text = $item_metadata['mla_iptc_metadata'][ $iptc_key ];
2472
  if ( is_array( $text ) ) {
2473
  foreach ($text as $key => $value )
2474
  $text[ $key ] = self::_bin_to_utf8( $value );
2489
  * @since 1.13
2490
  *
2491
  * @param string field name
2492
+ * @param string metadata array containing iptc, exif, and pdf metadata arrays
2493
  *
2494
  * @return string string representation of metadata value or an empty string
2495
  */
2496
+ public static function mla_exif_metadata_value( $exif_key, $item_metadata ) {
2497
+ if ( 'pdf:' == substr( $exif_key, 0, 4 ) )
2498
+ return self::mla_pdf_metadata_value( substr( $exif_key, 4 ), $item_metadata );
2499
+
2500
  $text = '';
2501
+ if ( array_key_exists( $exif_key, $item_metadata['mla_exif_metadata'] ) ) {
2502
+ $text = $item_metadata['mla_exif_metadata'][ $exif_key ];
2503
  if ( is_array( $text ) ) {
2504
  foreach ($text as $key => $value ) {
2505
  if ( is_array( $value ) )
2512
  $text = self::_bin_to_utf8( $text );
2513
  } elseif ( 'ALL_EXIF' == $exif_key ) {
2514
  $clean_data = array();
2515
+ foreach ( $item_metadata['mla_exif_metadata'] as $key => $value ) {
2516
  if ( is_array( $value ) )
2517
  $clean_data[ $key ] = '(ARRAY)';
2518
  elseif ( is_string( $value ) )
2524
  $text = var_export( $clean_data, true);
2525
  } elseif ( 'ALL_IPTC' == $exif_key ) {
2526
  $clean_data = array();
2527
+ foreach ( $item_metadata['mla_iptc_metadata'] as $key => $value ) {
2528
  if ( is_array( $value ) ) {
2529
  foreach ($value as $text_key => $text )
2530
  $value[ $text_key ] = self::_bin_to_utf8( $text );
2543
  return $text;
2544
  }
2545
 
2546
+ /**
2547
+ * Parse one PDF metadata field
2548
+ *
2549
+ * Returns a string value, converting array data to a string as necessary.
2550
+ * Also handles the special pseudo-value 'ALL_PDF'.
2551
+ *
2552
+ * @since 1.4x
2553
+ *
2554
+ * @param string field name
2555
+ * @param string metadata array containing iptc, exif, and pdf metadata arrays
2556
+ *
2557
+ * @return string string representation of metadata value or an empty string
2558
+ */
2559
+ public static function mla_pdf_metadata_value( $pdf_key, $item_metadata ) {
2560
+ $text = '';
2561
+ if ( array_key_exists( $pdf_key, $item_metadata['mla_pdf_metadata'] ) ) {
2562
+ $text = $item_metadata['mla_pdf_metadata'][ $pdf_key ];
2563
+ if ( is_array( $text ) ) {
2564
+ foreach ($text as $key => $value ) {
2565
+ if ( is_array( $value ) )
2566
+ $text[ $key ] = self::_bin_to_utf8( var_export( $value, true ) );
2567
+ else
2568
+ $text[ $key ] = self::_bin_to_utf8( $value );
2569
+ }
2570
+ }
2571
+ elseif ( is_string( $text ) )
2572
+ $text = self::_bin_to_utf8( $text );
2573
+ } elseif ( 'ALL_PDF' == $pdf_key ) {
2574
+ $clean_data = array();
2575
+ foreach ( $item_metadata['mla_pdf_metadata'] as $key => $value ) {
2576
+ if ( is_array( $value ) )
2577
+ $clean_data[ $key ] = '(ARRAY)';
2578
+ elseif ( is_string( $value ) )
2579
+ $clean_data[ $key ] = self::_bin_to_utf8( substr( $value, 0, 256 ) );
2580
+ else
2581
+ $clean_data[ $key ] = $value;
2582
+ }
2583
+
2584
+ $text = var_export( $clean_data, true);
2585
+ } // ALL_PDF
2586
+
2587
+ return $text;
2588
+ }
2589
+
2590
  /**
2591
  * Fetch and filter IPTC and EXIF meta data for an image attachment
2592
  *
2610
  $path = get_attached_file($post_id);
2611
 
2612
  if ( ! empty( $path ) ) {
 
2613
  if ( 'pdf' == strtolower( pathinfo( $path, PATHINFO_EXTENSION ) ) ) {
2614
  $results['mla_pdf_metadata'] = self::_extract_pdf_metadata( $path );
2615
  return $results;
2616
  }
2617
+
2618
  $size = getimagesize( $path, $info );
2619
 
2620
  if ( is_callable( 'iptcparse' ) ) {
2982
  * Uncomment this for debugging.
2983
  */
2984
  // $final_message .= '<br>' . $message;
2985
+ // error_log( 'DEBUG: message = ' . var_export( $message, true ), 0 );
2986
 
2987
  return array(
2988
  'message' => $final_message,
3061
  while ( $position < $limit ) {
3062
  $row_length = strlen( substr( $data, $position ) );
3063
 
3064
+ if ( 0 == $row_length )
3065
+ break;
3066
+
3067
  if ( $row_length > ( $limit - $position ) )
3068
  $row_length = $limit - $position;
3069
 
3070
  if ( $row_length > $bytes_per_row )
3071
  $row_length = $bytes_per_row;
3072
+
3073
  $row_data = substr( $data, $position, $row_length );
3074
 
3075
  $print_string = '';
includes/class-mla-list-table.php CHANGED
@@ -87,6 +87,7 @@ class MLA_List_Table extends WP_List_Table {
87
  'caption' => 'Caption',
88
  'description' => 'Description',
89
  'post_mime_type' => 'MIME Type',
 
90
  'base_file' => 'Base File',
91
  'date' => 'Date',
92
  'modified' => 'Last Modified',
@@ -127,6 +128,7 @@ class MLA_List_Table extends WP_List_Table {
127
  'caption',
128
  'description',
129
  'post_mime_type',
 
130
  'base_file',
131
  'date',
132
  'modified',
@@ -169,6 +171,7 @@ class MLA_List_Table extends WP_List_Table {
169
  'caption' => array('post_excerpt',false),
170
  'description' => array('post_content',false),
171
  'post_mime_type' => array('post_mime_type',false),
 
172
  'base_file' => array('_wp_attached_file',false),
173
  'date' => array('post_date',false),
174
  'modified' => array('post_modified',false),
@@ -501,34 +504,12 @@ class MLA_List_Table extends WP_List_Table {
501
  /*
502
  * Build rollover actions
503
  */
504
-
505
- $view_args = array(
506
- 'page' => $_REQUEST['page'],
507
- 'mla_item_ID' => $item->ID
508
- );
509
 
510
  if ( isset( $_REQUEST['paged'] ) )
511
  $view_args['paged'] = $_REQUEST['paged'];
512
 
513
- if ( isset( $_REQUEST['order'] ) )
514
- $view_args['order'] = $_REQUEST['order'];
515
-
516
- if ( isset( $_REQUEST['orderby'] ) )
517
- $view_args['orderby'] = $_REQUEST['orderby'];
518
-
519
- if ( isset( $_REQUEST['detached'] ) )
520
- $view_args['detached'] = $_REQUEST['detached'];
521
- elseif ( isset( $_REQUEST['status'] ) )
522
- $view_args['status'] = $_REQUEST['status'];
523
- elseif ( isset( $_REQUEST['post_mime_type'] ) )
524
- $view_args['post_mime_type'] = $_REQUEST['post_mime_type'];
525
-
526
- if ( isset( $_REQUEST['m'] ) )
527
- $view_args['m'] = $_REQUEST['m'];
528
-
529
- if ( isset( $_REQUEST['mla_filter_term'] ) )
530
- $view_args['mla_filter_term'] = $_REQUEST['mla_filter_term'];
531
-
532
  if ( current_user_can( 'edit_post', $item->ID ) ) {
533
  if ( $this->is_trash )
534
  $actions['restore'] = '<a class="submitdelete" href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_RESTORE, MLA::MLA_ADMIN_NONCE ) ) . '" title="Restore this item from the Trash">Restore</a>';
@@ -557,6 +538,8 @@ class MLA_List_Table extends WP_List_Table {
557
  }
558
  } // delete_post
559
 
 
 
560
  $this->rollover_id = $item->ID;
561
  } // $this->rollover_id != $item->ID
562
 
@@ -882,7 +865,7 @@ class MLA_List_Table extends WP_List_Table {
882
  */
883
  function column_alt_text( $item ) {
884
  if ( isset( $item->mla_wp_attachment_image_alt ) )
885
- return sprintf( '<a href="%1$s" title="Filter by &#8220;%2$s&#8221;"">%3$s</a>', esc_url( add_query_arg( array(
886
  'page' => MLA::ADMIN_PAGE_SLUG,
887
  'mla-metakey' => '_wp_attachment_image_alt',
888
  'mla-metavalue' => urlencode( $item->mla_wp_attachment_image_alt ),
@@ -932,6 +915,20 @@ class MLA_List_Table extends WP_List_Table {
932
  ), 'upload.php' ) ), esc_html( $item->post_mime_type ), esc_html( $item->post_mime_type ) );
933
  }
934
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
935
  /**
936
  * Supply the content for a custom column
937
  *
@@ -1053,6 +1050,105 @@ class MLA_List_Table extends WP_List_Table {
1053
  return sprintf( '%1$s<br>%2$s<br>%3$s', /*%1$s*/ $parent_title, /*%2$s*/ mysql2date( __( 'Y/m/d' ), $parent_date ), /*%3$s*/ $parent_type ) . "<br>\r\n";
1054
  }
1055
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1056
  /**
1057
  * This method dictates the table's columns and titles
1058
  *
@@ -1110,6 +1206,20 @@ class MLA_List_Table extends WP_List_Table {
1110
 
1111
  return $columns;
1112
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1113
 
1114
  /**
1115
  * Returns HTML markup for one view that can be used with this table
@@ -1123,10 +1233,8 @@ class MLA_List_Table extends WP_List_Table {
1123
  */
1124
  function _get_view( $view_slug, $current_view ) {
1125
  global $wpdb;
1126
- static $mla_types = NULL, $posts_per_type, $post_mime_types, $avail_post_mime_types, $matches, $num_posts, $base_url;
1127
 
1128
- $class = ( $view_slug == $current_view ) ? ' class="current"' : '';
1129
-
1130
  /*
1131
  * Calculate the common values once per page load
1132
  */
@@ -1147,23 +1255,11 @@ class MLA_List_Table extends WP_List_Table {
1147
  foreach ( $matches as $type => $reals )
1148
  foreach ( $reals as $real )
1149
  $num_posts[ $type ] = ( isset( $num_posts[ $type ] ) ) ? $num_posts[ $type ] + $posts_per_type[ $real ] : $posts_per_type[ $real ];
1150
-
1151
- /*
1152
- * Remember the view filters
1153
- */
1154
- $base_url = 'upload.php?page=' . MLA::ADMIN_PAGE_SLUG;
1155
-
1156
- if ( isset( $_REQUEST['m'] ) )
1157
- $base_url = add_query_arg( array(
1158
- 'm' => $_REQUEST['m']
1159
- ), $base_url );
1160
-
1161
- if ( isset( $_REQUEST['mla_filter_term'] ) )
1162
- $base_url = add_query_arg( array(
1163
- 'mla_filter_term' => $_REQUEST['mla_filter_term']
1164
- ), $base_url );
1165
  }
1166
 
 
 
 
1167
  /*
1168
  * Handle the special cases: all, unattached and trash
1169
  */
@@ -1218,7 +1314,7 @@ class MLA_List_Table extends WP_List_Table {
1218
  if ( empty( $mla_type->specification ) )
1219
  $query = array ( 'post_mime_type' => $view_slug );
1220
  else
1221
- $query = MLAMime::mla_prepare_view_query( $mla_type->specification );
1222
 
1223
  $total_items = MLAData::mla_count_list_table_items( $query );
1224
  if ( $total_items ) {
@@ -1253,8 +1349,14 @@ class MLA_List_Table extends WP_List_Table {
1253
  $current_view = 'unattached';
1254
  elseif ( $this->is_trash )
1255
  $current_view = 'trash';
1256
- elseif ( empty( $_REQUEST['post_mime_type'] ) )
1257
- $current_view = 'all';
 
 
 
 
 
 
1258
  else
1259
  $current_view = $_REQUEST['post_mime_type'];
1260
 
@@ -1267,8 +1369,13 @@ class MLA_List_Table extends WP_List_Table {
1267
  */
1268
  $view_links = array();
1269
  foreach ( $mla_types as $value ) {
1270
- if ( $value->table_view && $link = self::_get_view( $value->slug, $current_view ) )
1271
- $view_links[ $value->slug ] = $link;
 
 
 
 
 
1272
  }
1273
 
1274
  return $view_links;
87
  'caption' => 'Caption',
88
  'description' => 'Description',
89
  'post_mime_type' => 'MIME Type',
90
+ 'file_url' => 'File URL',
91
  'base_file' => 'Base File',
92
  'date' => 'Date',
93
  'modified' => 'Last Modified',
128
  'caption',
129
  'description',
130
  'post_mime_type',
131
+ 'file_url',
132
  'base_file',
133
  'date',
134
  'modified',
171
  'caption' => array('post_excerpt',false),
172
  'description' => array('post_content',false),
173
  'post_mime_type' => array('post_mime_type',false),
174
+ 'file_url' => array('guid',false),
175
  'base_file' => array('_wp_attached_file',false),
176
  'date' => array('post_date',false),
177
  'modified' => array('post_modified',false),
504
  /*
505
  * Build rollover actions
506
  */
507
+ $view_args = array_merge( array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla_item_ID' => $item->ID ),
508
+ self::_mla_submenu_arguments() );
 
 
 
509
 
510
  if ( isset( $_REQUEST['paged'] ) )
511
  $view_args['paged'] = $_REQUEST['paged'];
512
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
513
  if ( current_user_can( 'edit_post', $item->ID ) ) {
514
  if ( $this->is_trash )
515
  $actions['restore'] = '<a class="submitdelete" href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_RESTORE, MLA::MLA_ADMIN_NONCE ) ) . '" title="Restore this item from the Trash">Restore</a>';
538
  }
539
  } // delete_post
540
 
541
+ $actions['view'] = '<a href="' . site_url( ) . '?attachment_id=' . $item->ID . '" rel="permalink" title="View &#8220;' . esc_attr( $item->post_title ) . '&#8221;">View</a>';
542
+
543
  $this->rollover_id = $item->ID;
544
  } // $this->rollover_id != $item->ID
545
 
865
  */
866
  function column_alt_text( $item ) {
867
  if ( isset( $item->mla_wp_attachment_image_alt ) )
868
+ return sprintf( '<a href="%1$s" title="Filter by &#8220;%2$s&#8221;">%3$s</a>', esc_url( add_query_arg( array(
869
  'page' => MLA::ADMIN_PAGE_SLUG,
870
  'mla-metakey' => '_wp_attachment_image_alt',
871
  'mla-metavalue' => urlencode( $item->mla_wp_attachment_image_alt ),
915
  ), 'upload.php' ) ), esc_html( $item->post_mime_type ), esc_html( $item->post_mime_type ) );
916
  }
917
 
918
+ /**
919
+ * Supply the content for a custom column
920
+ *
921
+ * @since 0.1
922
+ *
923
+ * @param array A singular attachment (post) object
924
+ * @return string HTML markup to be placed inside the column
925
+ */
926
+ function column_file_url( $item ) {
927
+ $attachment_url = wp_get_attachment_url( $item->ID );
928
+
929
+ return $attachment_url ? $attachment_url : 'none';
930
+ }
931
+
932
  /**
933
  * Supply the content for a custom column
934
  *
1050
  return sprintf( '%1$s<br>%2$s<br>%3$s', /*%1$s*/ $parent_title, /*%2$s*/ mysql2date( __( 'Y/m/d' ), $parent_date ), /*%3$s*/ $parent_type ) . "<br>\r\n";
1051
  }
1052
 
1053
+ /**
1054
+ * Process $_REQUEST, building $submenu_arguments
1055
+ *
1056
+ * @since 1.42
1057
+ *
1058
+ * @return array non-empty view, search, filter and sort arguments
1059
+ */
1060
+ private static function _mla_submenu_arguments( ) {
1061
+ static $submenu_arguments = NULL;
1062
+
1063
+ if ( is_array( $submenu_arguments ) )
1064
+ return $submenu_arguments;
1065
+ else
1066
+ $submenu_arguments = array();
1067
+
1068
+ /*
1069
+ * View arguments
1070
+ */
1071
+ if ( isset( $_REQUEST['post_mime_type'] ) )
1072
+ $submenu_arguments['post_mime_type'] = $_REQUEST['post_mime_type'];
1073
+
1074
+ if ( isset( $_REQUEST['detached'] ) )
1075
+ $submenu_arguments['detached'] = $_REQUEST['detached'];
1076
+
1077
+ if ( isset( $_REQUEST['status'] ) )
1078
+ $submenu_arguments['status'] = $_REQUEST['status'];
1079
+
1080
+ if ( isset( $_REQUEST['meta_query'] ) )
1081
+ $submenu_arguments['meta_query'] = $_REQUEST['meta_query'];
1082
+
1083
+ /*
1084
+ * Search box arguments
1085
+ */
1086
+ if ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla_search_fields'] ) ) {
1087
+ $submenu_arguments['s'] = $_REQUEST['s'];
1088
+ $submenu_arguments['mla_search_connector'] = $_REQUEST['mla_search_connector'];
1089
+ $submenu_arguments['mla_search_fields'] = $_REQUEST['mla_search_fields'];
1090
+ }
1091
+
1092
+ /*
1093
+ * Filter arguments (from table header)
1094
+ */
1095
+ if ( isset( $_REQUEST['m'] ) && ( '0' != $_REQUEST['m'] ) )
1096
+ $submenu_arguments['m'] = $_REQUEST['m'];
1097
+
1098
+ if ( isset( $_REQUEST['mla_filter_term'] ) && ( '0' != $_REQUEST['mla_filter_term'] ) )
1099
+ $submenu_arguments['mla_filter_term'] = $_REQUEST['mla_filter_term'];
1100
+
1101
+ /*
1102
+ * Sort arguments (from column header)
1103
+ */
1104
+ if ( isset( $_REQUEST['order'] ) )
1105
+ $submenu_arguments['order'] = $_REQUEST['order'];
1106
+
1107
+ if ( isset( $_REQUEST['orderby'] ) )
1108
+ $submenu_arguments['orderby'] = $_REQUEST['orderby'];
1109
+
1110
+ /*
1111
+ * Filter arguments (from interior table cells)
1112
+ */
1113
+ if ( isset( $_REQUEST['heading_suffix'] ) )
1114
+ $submenu_arguments['heading_suffix'] = $_REQUEST['heading_suffix'];
1115
+
1116
+ if ( isset( $_REQUEST['parent'] ) )
1117
+ $submenu_arguments['parent'] = $_REQUEST['parent'];
1118
+
1119
+ if ( isset( $_REQUEST['author'] ) )
1120
+ $submenu_arguments['author'] = $_REQUEST['author'];
1121
+
1122
+ if ( isset( $_REQUEST['mla-tax'] ) )
1123
+ $submenu_arguments['mla-tax'] = $_REQUEST['mla-tax'];
1124
+
1125
+ if ( isset( $_REQUEST['mla-term'] ) )
1126
+ $submenu_arguments['mla-term'] = $_REQUEST['mla-term'];
1127
+
1128
+ if ( isset( $_REQUEST['meta-key'] ) )
1129
+ $submenu_arguments['meta-key'] = $_REQUEST['meta-key'];
1130
+
1131
+ if ( isset( $_REQUEST['meta-value'] ) )
1132
+ $submenu_arguments['meta-value'] = $_REQUEST['meta-value'];
1133
+
1134
+ return $submenu_arguments;
1135
+ }
1136
+
1137
+ /**
1138
+ * Display the pagination, adding view, search and filter arguments
1139
+ *
1140
+ * @since 1.42
1141
+ *
1142
+ * @param string 'top' | 'bottom'
1143
+ * @return void
1144
+ */
1145
+ function pagination( $which ) {
1146
+ $save_uri = $_SERVER['REQUEST_URI'];
1147
+ $_SERVER['REQUEST_URI'] = add_query_arg( self::_mla_submenu_arguments(), $save_uri );
1148
+ parent::pagination( $which );
1149
+ $_SERVER['REQUEST_URI'] = $save_uri;
1150
+ }
1151
+
1152
  /**
1153
  * This method dictates the table's columns and titles
1154
  *
1206
 
1207
  return $columns;
1208
  }
1209
+
1210
+ /**
1211
+ * Print column headers, adding view, search and filter arguments
1212
+ *
1213
+ * @since 1.42
1214
+ *
1215
+ * @param bool $with_id Whether to set the id attribute or not
1216
+ */
1217
+ function print_column_headers( $with_id = true ) {
1218
+ $save_uri = $_SERVER['REQUEST_URI'];
1219
+ $_SERVER['REQUEST_URI'] = add_query_arg( self::_mla_submenu_arguments(), $save_uri );
1220
+ parent::print_column_headers( $with_id );
1221
+ $_SERVER['REQUEST_URI'] = $save_uri;
1222
+ }
1223
 
1224
  /**
1225
  * Returns HTML markup for one view that can be used with this table
1233
  */
1234
  function _get_view( $view_slug, $current_view ) {
1235
  global $wpdb;
1236
+ static $mla_types = NULL, $posts_per_type, $post_mime_types, $avail_post_mime_types, $matches, $num_posts;
1237
 
 
 
1238
  /*
1239
  * Calculate the common values once per page load
1240
  */
1255
  foreach ( $matches as $type => $reals )
1256
  foreach ( $reals as $real )
1257
  $num_posts[ $type ] = ( isset( $num_posts[ $type ] ) ) ? $num_posts[ $type ] + $posts_per_type[ $real ] : $posts_per_type[ $real ];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1258
  }
1259
 
1260
+ $class = ( $view_slug == $current_view ) ? ' class="current"' : '';
1261
+ $base_url = 'upload.php?page=' . MLA::ADMIN_PAGE_SLUG;
1262
+
1263
  /*
1264
  * Handle the special cases: all, unattached and trash
1265
  */
1314
  if ( empty( $mla_type->specification ) )
1315
  $query = array ( 'post_mime_type' => $view_slug );
1316
  else
1317
+ $query = MLAMime::mla_prepare_view_query( $view_slug, $mla_type->specification );
1318
 
1319
  $total_items = MLAData::mla_count_list_table_items( $query );
1320
  if ( $total_items ) {
1349
  $current_view = 'unattached';
1350
  elseif ( $this->is_trash )
1351
  $current_view = 'trash';
1352
+ elseif ( empty( $_REQUEST['post_mime_type'] ) ) {
1353
+ if ( isset( $_REQUEST['meta_query'] ) ) {
1354
+ $query = unserialize( stripslashes( $_REQUEST['meta_query'] ) );
1355
+ $current_view = $query['slug'];
1356
+ }
1357
+ else
1358
+ $current_view = 'all';
1359
+ }
1360
  else
1361
  $current_view = $_REQUEST['post_mime_type'];
1362
 
1369
  */
1370
  $view_links = array();
1371
  foreach ( $mla_types as $value ) {
1372
+ if ( $value->table_view ) {
1373
+ if ( $current_view == $value->specification )
1374
+ $current_view = $value->slug;
1375
+
1376
+ if ( $link = self::_get_view( $value->slug, $current_view ) )
1377
+ $view_links[ $value->slug ] = $link;
1378
+ }
1379
  }
1380
 
1381
  return $view_links;
includes/class-mla-main.php CHANGED
@@ -38,7 +38,7 @@ class MLA {
38
  *
39
  * @var string
40
  */
41
- const CURRENT_MLA_VERSION = '1.41';
42
 
43
  /**
44
  * Slug for registering and enqueueing plugin style sheet
@@ -611,7 +611,8 @@ class MLA {
611
  );
612
 
613
  /*
614
- * The category taxonomy is a special case because post_categories_meta_box() changes the input name
 
615
  */
616
  if ( !isset( $_REQUEST['tax_input'] ) )
617
  $_REQUEST['tax_input'] = array();
@@ -821,7 +822,8 @@ class MLA {
821
 
822
  // Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
823
  // echo '<form action="' . admin_url( 'upload.php' ) . '" method="get" id="mla-filter">' . "\r\n";
824
- echo '<form action="' . admin_url( 'upload.php?page=mla-menu' ) . '" method="post" id="mla-filter">' . "\r\n";
 
825
  /*
826
  * Compose the Search Media box
827
  */
38
  *
39
  * @var string
40
  */
41
+ const CURRENT_MLA_VERSION = '1.42';
42
 
43
  /**
44
  * Slug for registering and enqueueing plugin style sheet
611
  );
612
 
613
  /*
614
+ * The category taxonomy (edit screens) is a special case because
615
+ * post_categories_meta_box() changes the input name
616
  */
617
  if ( !isset( $_REQUEST['tax_input'] ) )
618
  $_REQUEST['tax_input'] = array();
822
 
823
  // Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
824
  // echo '<form action="' . admin_url( 'upload.php' ) . '" method="get" id="mla-filter">' . "\r\n";
825
+ echo '<form action="' . admin_url( 'upload.php?page=' . self::ADMIN_PAGE_SLUG ) . '" method="post" id="mla-filter">' . "\r\n";
826
+ // echo '<form action="' . admin_url( 'upload.php?page=' . self::ADMIN_PAGE_SLUG ) . '" method="get" id="mla-filter">' . "\r\n";
827
  /*
828
  * Compose the Search Media box
829
  */
includes/class-mla-media-modal.php CHANGED
@@ -374,7 +374,7 @@ class MLAModal {
374
  $query = array_intersect_key( $query, array_flip( array(
375
  'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type',
376
  'post_parent', 'post__in', 'post__not_in', 'm', 'mla_filter_term',
377
- 'mla_search_value', 'mla_search_fields', 'mla_search_connector'
378
  ) ) );
379
 
380
  if ( isset( $query['post_mime_type'] ) ) {
@@ -385,10 +385,13 @@ class MLAModal {
385
  else {
386
  $view = $query['post_mime_type'];
387
  unset( $query['post_mime_type'] );
388
- $query = array_merge( $query, MLAMime::mla_prepare_view_query( $view ) );
389
  }
390
  }
391
 
 
 
 
392
  if ( isset( $query['mla_search_value'] ) ) {
393
  if ( ! empty( $query['mla_search_value'] ) )
394
  $query['s'] = $query['mla_search_value'];
@@ -397,6 +400,10 @@ class MLAModal {
397
 
398
  unset( $query['mla_search_value'] );
399
  }
 
 
 
 
400
 
401
  if ( isset( $query['posts_per_page'] ) ) {
402
  $count = $query['posts_per_page'];
374
  $query = array_intersect_key( $query, array_flip( array(
375
  'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type',
376
  'post_parent', 'post__in', 'post__not_in', 'm', 'mla_filter_term',
377
+ 'mla_search_value', 's', 'mla_search_fields', 'mla_search_connector'
378
  ) ) );
379
 
380
  if ( isset( $query['post_mime_type'] ) ) {
385
  else {
386
  $view = $query['post_mime_type'];
387
  unset( $query['post_mime_type'] );
388
+ $query = array_merge( $query, MLAMime::mla_prepare_view_query( 'view', $view ) );
389
  }
390
  }
391
 
392
+ /*
393
+ * Process the enhanced search box OR fix up the default search box
394
+ */
395
  if ( isset( $query['mla_search_value'] ) ) {
396
  if ( ! empty( $query['mla_search_value'] ) )
397
  $query['s'] = $query['mla_search_value'];
400
 
401
  unset( $query['mla_search_value'] );
402
  }
403
+ elseif ( ! empty( $query['s'] ) ) {
404
+ $query['mla_search_fields'] = array( 'title', 'content' );
405
+ $query['mla_search_connector'] = 'AND';
406
+ }
407
 
408
  if ( isset( $query['posts_per_page'] ) ) {
409
  $count = $query['posts_per_page'];
includes/class-mla-mime-types.php CHANGED
@@ -66,9 +66,9 @@ class MLAMime {
66
  */
67
  public static function mla_sanitize_mime_type_filter( $sanitized_mime_type, $raw_mime_type ) {
68
  global $wp_filter;
69
- // error_log( 'mla_sanitize_mime_type_filter $sanitized_mime_type = ' . var_export( $sanitized_mime_type, true ), 0 );
70
- // error_log( 'mla_sanitize_mime_type_filter $raw_mime_type = ' . var_export( $raw_mime_type, true ), 0 );
71
- // error_log( ' $wp_filter[sanitize_mime_type] = ' . var_export( $wp_filter['sanitize_mime_type'], true ), 0 );
72
  return $sanitized_mime_type;
73
  } // mla_sanitize_mime_type_filter
74
 
@@ -168,11 +168,11 @@ class MLAMime {
168
  */
169
  public static function mla_wp_check_filetype_and_ext_filter( $validate, $file, $filename, $mimes ) {
170
  global $wp_filter;
171
- // error_log( 'mla_wp_check_filetype_and_ext_filter $validate = ' . var_export( $validate, true ), 0 );
172
- // error_log( 'mla_wp_check_filetype_and_ext_filter $file = ' . var_export( $file, true ), 0 );
173
- // error_log( 'mla_wp_check_filetype_and_ext_filter $filename = ' . var_export( $filename, true ), 0 );
174
- // error_log( 'mla_wp_check_filetype_and_ext_filter $mimes = ' . var_export( $mimes, true ), 0 );
175
- // error_log( ' $wp_filter[wp_check_filetype_and_ext] = ' . var_export( $wp_filter['wp_check_filetype_and_ext'], true ), 0 );
176
  return $validate;
177
  } // mla_wp_check_filetype_and_ext_filter
178
 
@@ -768,17 +768,18 @@ class MLAMime {
768
  *
769
  * @since 1.40
770
  *
 
771
  * @param string A specification, e.g., "custom:Field,null" or "audio,application/vnd.*ms*"
772
  *
773
  * @return array post_mime_type specification or custom field query
774
  */
775
- public static function mla_prepare_view_query( $specification ) {
776
- $query = array ();
777
  $specification = self::mla_parse_view_specification( $specification );
778
  if ( 'mime' == $specification['prefix'] )
779
  $query['post_mime_type'] = $specification['value'];
780
  else {
781
- $meta_query = array( 'relation' => 'OR', 'patterns' => array () );
782
  switch( $specification['option'] ) {
783
  case 'match':
784
  $patterns = array_map( 'trim', explode( ',', $specification['value'] ) );
66
  */
67
  public static function mla_sanitize_mime_type_filter( $sanitized_mime_type, $raw_mime_type ) {
68
  global $wp_filter;
69
+ // error_log( 'DEBUG: mla_sanitize_mime_type_filter $sanitized_mime_type = ' . var_export( $sanitized_mime_type, true ), 0 );
70
+ // error_log( 'DEBUG: mla_sanitize_mime_type_filter $raw_mime_type = ' . var_export( $raw_mime_type, true ), 0 );
71
+ // error_log( 'DEBUG: $wp_filter[sanitize_mime_type] = ' . var_export( $wp_filter['sanitize_mime_type'], true ), 0 );
72
  return $sanitized_mime_type;
73
  } // mla_sanitize_mime_type_filter
74
 
168
  */
169
  public static function mla_wp_check_filetype_and_ext_filter( $validate, $file, $filename, $mimes ) {
170
  global $wp_filter;
171
+ // error_log( 'DEBUG: mla_wp_check_filetype_and_ext_filter $validate = ' . var_export( $validate, true ), 0 );
172
+ // error_log( 'DEBUG: mla_wp_check_filetype_and_ext_filter $file = ' . var_export( $file, true ), 0 );
173
+ // error_log( 'DEBUG: mla_wp_check_filetype_and_ext_filter $filename = ' . var_export( $filename, true ), 0 );
174
+ // error_log( 'DEBUG: mla_wp_check_filetype_and_ext_filter $mimes = ' . var_export( $mimes, true ), 0 );
175
+ // error_log( 'DEBUG: $wp_filter[wp_check_filetype_and_ext] = ' . var_export( $wp_filter['wp_check_filetype_and_ext'], true ), 0 );
176
  return $validate;
177
  } // mla_wp_check_filetype_and_ext_filter
178
 
768
  *
769
  * @since 1.40
770
  *
771
+ * @param string View slug, unique identifier
772
  * @param string A specification, e.g., "custom:Field,null" or "audio,application/vnd.*ms*"
773
  *
774
  * @return array post_mime_type specification or custom field query
775
  */
776
+ public static function mla_prepare_view_query( $slug, $specification ) {
777
+ $query = array ( );
778
  $specification = self::mla_parse_view_specification( $specification );
779
  if ( 'mime' == $specification['prefix'] )
780
  $query['post_mime_type'] = $specification['value'];
781
  else {
782
+ $meta_query = array( 'slug' => $slug , 'relation' => 'OR', 'patterns' => array () );
783
  switch( $specification['option'] ) {
784
  case 'match':
785
  $patterns = array_map( 'trim', explode( ',', $specification['value'] ) );
includes/class-mla-options.php CHANGED
@@ -355,7 +355,7 @@ class MLAOptions {
355
 
356
  'template_heading' =>
357
  array('tab' => 'mla_gallery',
358
- 'name' => 'Default [mla_gallery] Templates',
359
  'type' => 'header'),
360
 
361
  'default_style' =>
@@ -376,6 +376,30 @@ class MLAOptions {
376
  'texts' => array(),
377
  'help' => 'Select the default markup template for your [mla_gallery] shortcodes.'),
378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
379
  /*
380
  * Managed by mla_get_style_templates and mla_put_style_templates
381
  */
@@ -1206,14 +1230,18 @@ class MLAOptions {
1206
  * @param array _wp_attachment_metadata meta_value array, indexed by post_id
1207
  * @param integer post->ID of attachment
1208
  *
1209
- * @return array absolute_path, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes
1210
  */
1211
  private static function _evaluate_file_information( $upload_dir, &$wp_attached_files, &$wp_attachment_metadata, $post_id ) {
1212
  $results = array(
 
1213
  'absolute_path' => '',
 
 
1214
  'base_file' => '',
1215
  'path' => '',
1216
  'file_name' => '',
 
1217
  'extension' => '',
1218
  'width' => '',
1219
  'height' => '',
@@ -1238,28 +1266,24 @@ class MLAOptions {
1238
  }
1239
 
1240
  if ( ! empty( $base_file ) ) {
 
1241
  $results['base_file'] = $base_file;
1242
- $last_slash = strrpos( $base_file, '/' );
1243
- if ( false === $last_slash ) {
1244
- $results['absolute_path'] = $upload_dir;
1245
- $results['file_name'] = wptexturize( $base_file );
1246
- }
1247
- else {
1248
- $file_name = substr( $base_file, $last_slash + 1 );
1249
- $path = substr( $base_file, 0, $last_slash + 1 );
1250
- $results['absolute_path'] = $upload_dir . $path;
1251
- $results['path'] = wptexturize( $path );
1252
- $results['file_name'] = wptexturize( $file_name );
1253
- }
1254
-
1255
- $last_dot = strrpos( $base_file, '.' );
1256
- if ( false === $last_dot ) {
1257
- $results['extension'] = '';
1258
  }
1259
  else {
1260
- $results['extension'] = substr( $base_file, $last_dot + 1 );
 
 
1261
  }
1262
 
 
 
 
 
 
1263
  }
1264
 
1265
  $results['sizes'] = $sizes;
@@ -1283,10 +1307,10 @@ class MLAOptions {
1283
 
1284
  if ( NULL == $post_info ) {
1285
  if ( 'custom_field_mapping' == $category ) {
1286
- $post_info = $wpdb->get_results( "SELECT ID, post_date, post_parent FROM {$wpdb->posts} WHERE post_type = 'attachment'", OBJECT_K );
1287
  }
1288
  else {
1289
- $post_info = $wpdb->get_results( "SELECT ID, post_date, post_parent FROM {$wpdb->posts} WHERE ID = '{$post_id}'", OBJECT_K );
1290
  }
1291
  }
1292
 
@@ -1295,6 +1319,8 @@ class MLAOptions {
1295
  return isset( $post_info[ $post_id ]->post_date ) ? $post_info[ $post_id ]->post_date : '';
1296
  case 'post_parent':
1297
  return isset( $post_info[ $post_id ]->post_parent ) ? $post_info[ $post_id ]->post_parent : 0;
 
 
1298
  default:
1299
  return false;
1300
  }
@@ -1419,8 +1445,12 @@ class MLAOptions {
1419
  $attachment_metadata = isset( $wp_attachment_metadata[ $post_id ]->meta_value ) ? unserialize( $wp_attachment_metadata[ $post_id ]->meta_value ) : array();
1420
  $result = MLAData::mla_find_array_element( $data_value['meta_name'], $attachment_metadata, $data_value['option'], $data_value['keep_existing'] );
1421
  break;
 
 
 
1422
  case 'path':
1423
  case 'file_name':
 
1424
  case 'extension':
1425
  case 'width':
1426
  case 'height':
@@ -1439,12 +1469,15 @@ class MLAOptions {
1439
  $result = $file_info[ $data_source ];
1440
  break;
1441
  case 'file_size':
1442
- $filesize = @ filesize( $file_info['absolute_path'] . $file_info['file_name'] );
1443
  if ( ! (false === $filesize ) )
1444
  $result = $filesize;
1445
  break;
1446
  case 'upload_date':
1447
- $result = self::_evaluate_post_information( $post_id, $category, 'post_date' );
 
 
 
1448
  break;
1449
  case 'dimensions':
1450
  $result = $file_info['width'] . 'x' . $file_info['height'];
@@ -1475,7 +1508,7 @@ class MLAOptions {
1475
  case 'size_bytes':
1476
  $result = array();
1477
  foreach( $file_info['sizes'] as $key => $value ) {
1478
- $filesize = @ filesize( $file_info['absolute_path'] . $value['file'] );
1479
  if ( false === $filesize )
1480
  $result[] = '?';
1481
  else {
@@ -1523,7 +1556,7 @@ class MLAOptions {
1523
  $result = $size_info['file'];
1524
  break;
1525
  case 'size_bytes[size]':
1526
- $result = @ filesize( $file_info['absolute_path'] . $size_info['file'] );
1527
  if ( false === $result )
1528
  $result = '?';
1529
  break;
@@ -1783,11 +1816,16 @@ class MLAOptions {
1783
  * @var array
1784
  */
1785
  private static $custom_field_data_sources = array (
 
 
 
1786
  'path',
1787
  'file_name',
 
1788
  'extension',
1789
  'file_size',
1790
  'upload_date',
 
1791
  'dimensions',
1792
  'pixels',
1793
  'width',
@@ -1900,6 +1938,7 @@ class MLAOptions {
1900
  $error_list = '';
1901
  $message_list = '';
1902
  $settings_changed = false;
 
1903
 
1904
  foreach ( $new_values as $new_key => $new_value ) {
1905
  $any_setting_changed = false;
@@ -1913,6 +1952,11 @@ class MLAOptions {
1913
  if ( empty( $new_key ) )
1914
  continue;
1915
 
 
 
 
 
 
1916
  $message_list .= "<br>Adding new field {$new_key}.\r\n";
1917
  $any_setting_changed = true;
1918
  }
@@ -2806,14 +2850,22 @@ class MLAOptions {
2806
 
2807
  /**
2808
  * Generate a list of all (post) Custom Field names
 
 
 
2809
  *
2810
  * @since 1.00
2811
  *
2812
- * @return array Custom field names from the postmeta table
2813
  */
2814
  private static function _get_custom_field_names( ) {
2815
  global $wpdb;
2816
- $limit = (int) apply_filters( 'postmeta_form_limit', 30 );
 
 
 
 
 
2817
  $keys = $wpdb->get_col( "
2818
  SELECT meta_key
2819
  FROM $wpdb->postmeta
@@ -2821,8 +2873,18 @@ class MLAOptions {
2821
  HAVING meta_key NOT LIKE '\_%'
2822
  ORDER BY meta_key
2823
  LIMIT $limit" );
2824
- if ( $keys )
 
 
 
 
 
 
 
 
 
2825
  natcasesort($keys);
 
2826
 
2827
  return $keys;
2828
  } // _get_custom_field_names
355
 
356
  'template_heading' =>
357
  array('tab' => 'mla_gallery',
358
+ 'name' => 'Default [mla_gallery] Templates and Settings',
359
  'type' => 'header'),
360
 
361
  'default_style' =>
376
  'texts' => array(),
377
  'help' => 'Select the default markup template for your [mla_gallery] shortcodes.'),
378
 
379
+ 'mla_gallery_columns' =>
380
+ array('tab' => 'mla_gallery',
381
+ 'name' => 'Default columns',
382
+ 'type' => 'text',
383
+ 'std' => '3',
384
+ 'size' => 3,
385
+ 'help' => 'Enter the number of [mla_gallery] columns; must be a positive integer.'),
386
+
387
+ 'mla_gallery_margin' =>
388
+ array('tab' => 'mla_gallery',
389
+ 'name' => 'Default mla_margin',
390
+ 'type' => 'text',
391
+ 'std' => '1.5%',
392
+ 'size' => 10,
393
+ 'help' => 'Enter the CSS "margin" property value, in length (px, em, pt, etc.), percent (%), "auto" or "inherit".<br>&nbsp;&nbsp;Enter "none" to remove the property entirely.'),
394
+
395
+ 'mla_gallery_itemwidth' =>
396
+ array('tab' => 'mla_gallery',
397
+ 'name' => 'Default mla_itemwidth',
398
+ 'type' => 'text',
399
+ 'std' => 'calculate',
400
+ 'size' => 10,
401
+ 'help' => 'Enter the CSS "width" property value, in length (px, em, pt, etc.), percent (%), "auto" or "inherit".<br>&nbsp;&nbsp;Enter "calculate" (the default) to calculate the value taking the "margin" value into account.<br>&nbsp;&nbsp;Enter "exact" to calculate the value without considering the "margin" value.<br>&nbsp;&nbsp;Enter "none" to remove the property entirely.'),
402
+
403
  /*
404
  * Managed by mla_get_style_templates and mla_put_style_templates
405
  */
1230
  * @param array _wp_attachment_metadata meta_value array, indexed by post_id
1231
  * @param integer post->ID of attachment
1232
  *
1233
+ * @return array absolute_path_raw, absolute_path, absolute_file_name_raw, absolute_file_name, absolute_file, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes
1234
  */
1235
  private static function _evaluate_file_information( $upload_dir, &$wp_attached_files, &$wp_attachment_metadata, $post_id ) {
1236
  $results = array(
1237
+ 'absolute_path_raw' => '',
1238
  'absolute_path' => '',
1239
+ 'absolute_file_name_raw' => '',
1240
+ 'absolute_file_name' => '',
1241
  'base_file' => '',
1242
  'path' => '',
1243
  'file_name' => '',
1244
+ 'name_only' => '',
1245
  'extension' => '',
1246
  'width' => '',
1247
  'height' => '',
1266
  }
1267
 
1268
  if ( ! empty( $base_file ) ) {
1269
+ $pathinfo = pathinfo( $base_file );
1270
  $results['base_file'] = $base_file;
1271
+ if ( '.' == $pathinfo['dirname'] ) {
1272
+ $results['absolute_path_raw'] = $upload_dir;
1273
+ $results['absolute_path'] = wptexturize( str_replace( '\\', '/', $upload_dir ) );
1274
+ $results['path'] = '';
 
 
 
 
 
 
 
 
 
 
 
 
1275
  }
1276
  else {
1277
+ $results['absolute_path_raw'] = $upload_dir . $pathinfo['dirname'] . '/';
1278
+ $results['absolute_path'] = wptexturize( str_replace( '\\', '/', $results['absolute_path_raw'] ) );
1279
+ $results['path'] = wptexturize( $pathinfo['dirname'] . '/' );
1280
  }
1281
 
1282
+ $results['absolute_file_name_raw'] = $results['absolute_path_raw'] . $pathinfo['basename'];
1283
+ $results['absolute_file_name'] = wptexturize( str_replace( '\\', '/', $results['absolute_file_name_raw'] ) );
1284
+ $results['file_name'] = wptexturize( $pathinfo['basename'] );
1285
+ $results['name_only'] = wptexturize( $pathinfo['filename'] );
1286
+ $results['extension'] = wptexturize( $pathinfo['extension'] );
1287
  }
1288
 
1289
  $results['sizes'] = $sizes;
1307
 
1308
  if ( NULL == $post_info ) {
1309
  if ( 'custom_field_mapping' == $category ) {
1310
+ $post_info = $wpdb->get_results( "SELECT ID, post_date, post_parent, post_mime_type FROM {$wpdb->posts} WHERE post_type = 'attachment'", OBJECT_K );
1311
  }
1312
  else {
1313
+ $post_info = $wpdb->get_results( "SELECT ID, post_date, post_parent, post_mime_type FROM {$wpdb->posts} WHERE ID = '{$post_id}'", OBJECT_K );
1314
  }
1315
  }
1316
 
1319
  return isset( $post_info[ $post_id ]->post_date ) ? $post_info[ $post_id ]->post_date : '';
1320
  case 'post_parent':
1321
  return isset( $post_info[ $post_id ]->post_parent ) ? $post_info[ $post_id ]->post_parent : 0;
1322
+ case 'post_mime_type':
1323
+ return isset( $post_info[ $post_id ]->post_mime_type ) ? $post_info[ $post_id ]->post_mime_type : 0;
1324
  default:
1325
  return false;
1326
  }
1445
  $attachment_metadata = isset( $wp_attachment_metadata[ $post_id ]->meta_value ) ? unserialize( $wp_attachment_metadata[ $post_id ]->meta_value ) : array();
1446
  $result = MLAData::mla_find_array_element( $data_value['meta_name'], $attachment_metadata, $data_value['option'], $data_value['keep_existing'] );
1447
  break;
1448
+ case 'absolute_path':
1449
+ case 'absolute_file_name':
1450
+ case 'base_file':
1451
  case 'path':
1452
  case 'file_name':
1453
+ case 'name_only':
1454
  case 'extension':
1455
  case 'width':
1456
  case 'height':
1469
  $result = $file_info[ $data_source ];
1470
  break;
1471
  case 'file_size':
1472
+ $filesize = @ filesize( $file_info['absolute_path_raw'] . $file_info['file_name'] );
1473
  if ( ! (false === $filesize ) )
1474
  $result = $filesize;
1475
  break;
1476
  case 'upload_date':
1477
+ $result = self::_evaluate_post_information( $post_id, $category, 'post_date' );
1478
+ break;
1479
+ case 'mime_type':
1480
+ $result = self::_evaluate_post_information( $post_id, $category, 'post_mime_type' );
1481
  break;
1482
  case 'dimensions':
1483
  $result = $file_info['width'] . 'x' . $file_info['height'];
1508
  case 'size_bytes':
1509
  $result = array();
1510
  foreach( $file_info['sizes'] as $key => $value ) {
1511
+ $filesize = @ filesize( $file_info['absolute_path_raw'] . $value['file'] );
1512
  if ( false === $filesize )
1513
  $result[] = '?';
1514
  else {
1556
  $result = $size_info['file'];
1557
  break;
1558
  case 'size_bytes[size]':
1559
+ $result = @ filesize( $file_info['absolute_path_raw'] . $size_info['file'] );
1560
  if ( false === $result )
1561
  $result = '?';
1562
  break;
1816
  * @var array
1817
  */
1818
  private static $custom_field_data_sources = array (
1819
+ 'absolute_path',
1820
+ 'absolute_file_name',
1821
+ 'base_file',
1822
  'path',
1823
  'file_name',
1824
+ 'name_only',
1825
  'extension',
1826
  'file_size',
1827
  'upload_date',
1828
+ 'mime_type',
1829
  'dimensions',
1830
  'pixels',
1831
  'width',
1938
  $error_list = '';
1939
  $message_list = '';
1940
  $settings_changed = false;
1941
+ $custom_field_names = self::_get_custom_field_names();
1942
 
1943
  foreach ( $new_values as $new_key => $new_value ) {
1944
  $any_setting_changed = false;
1952
  if ( empty( $new_key ) )
1953
  continue;
1954
 
1955
+ if ( in_array( $new_key, $custom_field_names ) ) {
1956
+ $error_list .= "<br>ERROR: new field {$new_key} already exists.\r\n";
1957
+ continue;
1958
+ }
1959
+
1960
  $message_list .= "<br>Adding new field {$new_key}.\r\n";
1961
  $any_setting_changed = true;
1962
  }
2850
 
2851
  /**
2852
  * Generate a list of all (post) Custom Field names
2853
+ *
2854
+ * The list will include any Custom Field and IPTC/EXIF rules that
2855
+ * haven't been mapped to any attachments, yet.
2856
  *
2857
  * @since 1.00
2858
  *
2859
+ * @return array Custom field names from the postmeta table and MLA rules
2860
  */
2861
  private static function _get_custom_field_names( ) {
2862
  global $wpdb;
2863
+
2864
+ $custom_field_mapping = array_keys( self::mla_get_option( 'custom_field_mapping' ) );
2865
+ $iptc_exif_mapping = self::mla_get_option( 'iptc_exif_mapping' );
2866
+ $iptc_exif_mapping = array_keys( $iptc_exif_mapping['custom'] );
2867
+
2868
+ $limit = (int) apply_filters( 'postmeta_form_limit', 50 );
2869
  $keys = $wpdb->get_col( "
2870
  SELECT meta_key
2871
  FROM $wpdb->postmeta
2873
  HAVING meta_key NOT LIKE '\_%'
2874
  ORDER BY meta_key
2875
  LIMIT $limit" );
2876
+
2877
+ if ( $keys ) {
2878
+ foreach( $custom_field_mapping as $value )
2879
+ if ( ! in_array( $value, $keys ) )
2880
+ $keys[] = $value;
2881
+
2882
+ foreach( $iptc_exif_mapping as $value )
2883
+ if ( ! in_array( $value, $keys ) )
2884
+ $keys[] = $value;
2885
+
2886
  natcasesort($keys);
2887
+ }
2888
 
2889
  return $keys;
2890
  } // _get_custom_field_names
includes/class-mla-settings.php CHANGED
@@ -224,16 +224,16 @@ class MLASettings {
224
  global $plugin_page;
225
  global $_registered_pages;
226
 
227
- error_log( 'mla_admin_page_access_denied_action $_SERVER[REQUEST_URI] = ' . var_export( $_SERVER['REQUEST_URI'], true), 0 );
228
- error_log( 'mla_admin_page_access_denied_action $_REQUEST = ' . var_export( $_REQUEST, true), 0 );
229
- error_log( 'mla_admin_page_access_denied_action $pagenow = ' . var_export( $pagenow, true), 0 );
230
- error_log( 'mla_admin_page_access_denied_action $parent = ' . var_export( get_admin_page_parent(), true), 0 );
231
- error_log( 'mla_admin_page_access_denied_action $menu = ' . var_export( $menu, true), 0 );
232
- error_log( 'mla_admin_page_access_denied_action $submenu = ' . var_export( $submenu, true), 0 );
233
- error_log( 'mla_admin_page_access_denied_action $_wp_menu_nopriv = ' . var_export( $_wp_menu_nopriv, true), 0 );
234
- error_log( 'mla_admin_page_access_denied_action $_wp_submenu_nopriv = ' . var_export( $_wp_submenu_nopriv, true), 0 );
235
- error_log( 'mla_admin_page_access_denied_action $plugin_page = ' . var_export( $plugin_page, true), 0 );
236
- error_log( 'mla_admin_page_access_denied_action $_registered_pages = ' . var_export( $_registered_pages, true), 0 );
237
  }
238
  */
239
 
@@ -2242,13 +2242,25 @@ class MLASettings {
2242
  * Start with any page-level options
2243
  */
2244
  foreach ( MLAOptions::$mla_option_definitions as $key => $value ) {
2245
- if ( 'mla_gallery' == $value['tab'] && ( 'select' == $value['type'] ) ) {
2246
- $old_value = MLAOptions::mla_get_option( $key );
2247
- if ( $old_value != $_REQUEST[ MLA_OPTION_PREFIX . $key ] ) {
2248
- $settings_changed = true;
2249
- $message_list .= self::_update_option_row( $key, $value );
 
 
2250
  }
2251
- }
 
 
 
 
 
 
 
 
 
 
2252
  } // foreach mla_options
2253
 
2254
  /*
@@ -2768,7 +2780,7 @@ class MLASettings {
2768
  $examine_count = 0;
2769
  $update_count = 0;
2770
 
2771
- $query = array( 'orderby' => 'none', 'post_parent' => 'all' ); //, 'post_mime_type' => 'image,application/*pdf*' );
2772
  $posts = MLAShortcodes::mla_get_shortcode_attachments( 0, $query );
2773
 
2774
  if ( is_string( $posts ) )
224
  global $plugin_page;
225
  global $_registered_pages;
226
 
227
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $_SERVER[REQUEST_URI] = ' . var_export( $_SERVER['REQUEST_URI'], true), 0 );
228
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $_REQUEST = ' . var_export( $_REQUEST, true), 0 );
229
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $pagenow = ' . var_export( $pagenow, true), 0 );
230
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $parent = ' . var_export( get_admin_page_parent(), true), 0 );
231
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $menu = ' . var_export( $menu, true), 0 );
232
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $submenu = ' . var_export( $submenu, true), 0 );
233
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $_wp_menu_nopriv = ' . var_export( $_wp_menu_nopriv, true), 0 );
234
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $_wp_submenu_nopriv = ' . var_export( $_wp_submenu_nopriv, true), 0 );
235
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $plugin_page = ' . var_export( $plugin_page, true), 0 );
236
+ error_log( 'DEBUG: mla_admin_page_access_denied_action $_registered_pages = ' . var_export( $_registered_pages, true), 0 );
237
  }
238
  */
239
 
2242
  * Start with any page-level options
2243
  */
2244
  foreach ( MLAOptions::$mla_option_definitions as $key => $value ) {
2245
+ if ( 'mla_gallery' == $value['tab'] ) {
2246
+ if ( 'select' == $value['type'] ) {
2247
+ $old_value = MLAOptions::mla_get_option( $key );
2248
+ if ( $old_value != $_REQUEST[ MLA_OPTION_PREFIX . $key ] ) {
2249
+ $settings_changed = true;
2250
+ $message_list .= self::_update_option_row( $key, $value );
2251
+ }
2252
  }
2253
+ elseif ( 'text' == $value['type'] ) {
2254
+ if ( '' == $_REQUEST[ MLA_OPTION_PREFIX . $key ] )
2255
+ $_REQUEST[ MLA_OPTION_PREFIX . $key ] = $value['std'];
2256
+
2257
+ $old_value = MLAOptions::mla_get_option( $key );
2258
+ if ( $old_value != $_REQUEST[ MLA_OPTION_PREFIX . $key ] ) {
2259
+ $settings_changed = true;
2260
+ $message_list .= self::_update_option_row( $key, $value );
2261
+ }
2262
+ } // text
2263
+ } // mla_gallery
2264
  } // foreach mla_options
2265
 
2266
  /*
2780
  $examine_count = 0;
2781
  $update_count = 0;
2782
 
2783
+ $query = array( 'orderby' => 'none', 'post_parent' => 'all', 'post_mime_type' => 'image,application/*pdf*' );
2784
  $posts = MLAShortcodes::mla_get_shortcode_attachments( 0, $query );
2785
 
2786
  if ( is_string( $posts ) )
includes/class-mla-shortcodes.php CHANGED
@@ -163,7 +163,15 @@ class MLAShortcodes {
163
  */
164
  if ( ! is_object( $post ) )
165
  $post = (object) array( 'ID' => 0 );
166
-
 
 
 
 
 
 
 
 
167
  /*
168
  * These are the parameters for gallery display
169
  */
@@ -172,11 +180,13 @@ class MLAShortcodes {
172
  'mla_style' => MLAOptions::mla_get_option('default_style'),
173
  'mla_markup' => MLAOptions::mla_get_option('default_markup'),
174
  'mla_float' => is_rtl() ? 'right' : 'left',
175
- 'mla_itemwidth' => NULL,
176
- 'mla_margin' => '1.5',
177
- 'mla_link_href' => '',
178
  'mla_link_attributes' => '',
 
 
179
  'mla_link_text' => '',
 
180
  'mla_rollover_text' => '',
181
  'mla_image_class' => '',
182
  'mla_image_alt' => '',
@@ -197,7 +207,7 @@ class MLAShortcodes {
197
  'itemtag' => 'dl',
198
  'icontag' => 'dt',
199
  'captiontag' => 'dd',
200
- 'columns' => 3,
201
  'link' => 'permalink', // or 'post' or file' or a registered size
202
  // Photonic-specific
203
  'id' => NULL,
@@ -243,7 +253,14 @@ class MLAShortcodes {
243
  $arguments = shortcode_atts( $default_arguments, $attr );
244
  self::$mla_debug = !empty( $arguments['mla_debug'] ) && ( 'true' == strtolower( $arguments['mla_debug'] ) );
245
 
246
- $attachments = self::mla_get_shortcode_attachments( $post->ID, $attr );
 
 
 
 
 
 
 
247
 
248
  if ( is_string( $attachments ) )
249
  return $attachments;
@@ -253,11 +270,13 @@ class MLAShortcodes {
253
  $output = '<p><strong>mla_debug empty gallery</strong>, query = ' . var_export( $attr, true ) . '</p>';
254
  $output .= self::$mla_debug_messages;
255
  self::$mla_debug_messages = '';
256
- return $output;
257
  }
258
  else {
259
- return '';
260
  }
 
 
 
261
  } // empty $attachments
262
 
263
  /*
@@ -359,19 +378,37 @@ class MLAShortcodes {
359
  $instance++;
360
 
361
  /*
362
- * The default style template includes "margin: 1.5%" to put a bit of
363
- * minimum space between the columns. "mla_margin" can be used to increase
364
  * this. "mla_itemwidth" can be used with "columns=0" to achieve a "responsive"
365
  * layout.
366
  */
367
 
368
- $margin = absint( 2 * (float) $arguments['mla_margin'] );
369
- if ( isset ( $arguments['mla_itemwidth'] ) ) {
370
- $itemwidth = absint( $arguments['mla_itemwidth'] );
371
- }
372
- else {
373
- $itemwidth = $arguments['columns'] > 0 ? (floor(100/$arguments['columns']) - $margin) : 100 - $margin;
374
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
 
376
  $float = strtolower( $arguments['mla_float'] );
377
  if ( ! in_array( $float, array( 'left', 'none', 'right' ) ) )
@@ -385,9 +422,9 @@ class MLAShortcodes {
385
  'itemtag' => tag_escape( $arguments['itemtag'] ),
386
  'icontag' => tag_escape( $arguments['icontag'] ),
387
  'captiontag' => tag_escape( $arguments['captiontag'] ),
388
- 'columns' => intval( $arguments['columns']),
389
- 'itemwidth' => intval( $itemwidth ),
390
- 'margin' => $arguments['mla_margin'],
391
  'float' => $float,
392
  'selector' => "mla_gallery-{$instance}",
393
  'size_class' => sanitize_html_class( $size_class )
@@ -422,7 +459,26 @@ class MLAShortcodes {
422
  }
423
  } // $placeholders
424
 
 
 
 
 
 
 
 
 
 
 
 
 
425
  $gallery_style = MLAData::mla_parse_template( $style_template, $style_values );
 
 
 
 
 
 
 
426
  } // !empty template
427
  } // use_mla_gallery_style
428
 
@@ -446,6 +502,7 @@ class MLAShortcodes {
446
  $custom_placeholders = array();
447
  $iptc_placeholders = array();
448
  $exif_placeholders = array();
 
449
 
450
  $open_template = MLAOptions::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
451
  if ( false === $open_template ) {
@@ -475,7 +532,7 @@ class MLAShortcodes {
475
  /*
476
  * Look for variable query and item-level placeholders
477
  */
478
- $new_text = str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_link_href'] . $arguments['mla_link_attributes'] . $arguments['mla_link_text'] . $arguments['mla_rollover_text'] . $arguments['mla_image_class'] . $arguments['mla_image_alt'] . $arguments['mla_image_attributes'] . $arguments['mla_caption'] ) );
479
 
480
  $placeholders = MLAData::mla_get_template_placeholders( $new_text . $open_template . $row_open_template . $item_template . $row_close_template . $close_template );
481
  foreach ($placeholders as $key => $value ) {
@@ -501,6 +558,9 @@ class MLAShortcodes {
501
  case 'exif':
502
  $exif_placeholders[ $key ] = $value;
503
  break;
 
 
 
504
  default:
505
  // ignore anything else
506
  } // switch
@@ -523,13 +583,6 @@ class MLAShortcodes {
523
  $markup_values[ $key ] = '';
524
  } // $request_placeholders
525
 
526
- /*
527
- * Determine output type
528
- */
529
- $output = strtolower( trim( $arguments['mla_output'] ) );
530
- if ( ! $is_gallery = 'gallery' == $output ) {
531
- }
532
-
533
  if ( self::$mla_debug ) {
534
  $output = self::$mla_debug_messages;
535
  self::$mla_debug_messages = '';
@@ -545,21 +598,31 @@ class MLAShortcodes {
545
 
546
  $output .= apply_filters( 'mla_gallery_style', $gallery_style . $gallery_div, $style_values, $markup_values, $style_template, $open_template );
547
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
548
 
549
  /*
550
  * For "previous_link" and "next_link", discard all of the $attachments except the appropriate choice
551
  */
552
  if ( ! $is_gallery ) {
553
- $output_parameters = explode( ',', $arguments['mla_output'] );
554
- $output_type = strtolower( trim( $output_parameters[0] ) );
555
-
556
- $is_previous = 'previous_link' == $output_type;
557
- $is_next = 'next_link' == $output_type;
558
 
559
  if ( ! ( $is_previous || $is_next ) )
560
  return ''; // unknown outtput type
561
 
562
- $is_wrap = isset( $output_parameters[1] ) && 'wrap' == strtolower( trim( $output_parameters[1] ) );
563
  $current_id = empty( $arguments['id'] ) ? $markup_values['id'] : $arguments['id'];
564
 
565
  foreach ( $attachments as $id => $attachment ) {
@@ -577,16 +640,18 @@ class MLAShortcodes {
577
  else
578
  $attachments = array( array_pop( $attachments ) );
579
  } // is_wrap
 
 
580
  else
581
  return '';
582
  } // ! is_gallery
583
 
584
- $i = 0;
585
  foreach ( $attachments as $id => $attachment ) {
586
  /*
587
  * fill in item-specific elements
588
  */
589
- $markup_values['index'] = (string) 1 + $i;
590
 
591
  $markup_values['excerpt'] = wptexturize( $attachment->post_excerpt );
592
  $markup_values['attachment_ID'] = $attachment->ID;
@@ -660,9 +725,9 @@ class MLAShortcodes {
660
  /*
661
  * Add variable placeholders
662
  */
663
- $image_metadata = get_metadata( 'post', $attachment->ID, '_wp_attachment_metadata', true );
664
  foreach ( $meta_placeholders as $key => $value ) {
665
- $markup_values[ $key ] = MLAData::mla_find_array_element( $value['value'], $image_metadata, $value['option'] );
666
  } // $meta_placeholders */
667
 
668
  foreach ( $terms_placeholders as $key => $value ) {
@@ -712,13 +777,13 @@ class MLAShortcodes {
712
  $markup_values[ $key ] = $text;
713
  } // $custom_placeholders
714
 
715
- if ( !empty( $iptc_placeholders ) || !empty( $exif_placeholders ) ) {
716
- $image_metadata = MLAData::mla_fetch_attachment_image_metadata( $attachment->ID );
717
  }
718
 
719
  foreach ( $iptc_placeholders as $key => $value ) {
720
  $text = '';
721
- $record = MLAData::mla_iptc_metadata_value( $value['value'], $image_metadata );
722
  if ( is_array( $record ) ) {
723
  if ( 'single' == $value['option'] )
724
  $text = sanitize_text_field( array_shift( $record ) );
@@ -738,7 +803,7 @@ class MLAShortcodes {
738
 
739
  foreach ( $exif_placeholders as $key => $value ) {
740
  $text = '';
741
- $record = MLAData::mla_exif_metadata_value( $value['value'], $image_metadata );
742
  if ( is_array( $record ) ) {
743
  if ( 'single' == $value['option'] )
744
  $text = sanitize_text_field( array_shift( $record ) );
@@ -756,6 +821,26 @@ class MLAShortcodes {
756
  $markup_values[ $key ] = $text;
757
  } // $exif_placeholders
758
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
759
  unset(
760
  $markup_values['caption'],
761
  $markup_values['pagelink'],
@@ -799,6 +884,9 @@ class MLAShortcodes {
799
  if ( ! empty( $arguments['mla_link_attributes'] ) )
800
  $link_attributes .= self::_process_shortcode_parameter( $arguments['mla_link_attributes'], $markup_values ) . ' ';
801
 
 
 
 
802
  if ( ! empty( $link_attributes ) ) {
803
  $markup_values['pagelink'] = str_replace( '<a href=', '<a ' . $link_attributes . 'href=', $markup_values['pagelink'] );
804
  $markup_values['filelink'] = str_replace( '<a href=', '<a ' . $link_attributes . 'href=', $markup_values['filelink'] );
@@ -988,19 +1076,24 @@ class MLAShortcodes {
988
  /*
989
  * Start of row markup
990
  */
991
- if ( $markup_values['columns'] > 0 && $i % $markup_values['columns'] == 0 )
992
  $output .= MLAData::mla_parse_template( $row_open_template, $markup_values );
993
 
994
  /*
995
  * item markup
996
  */
 
 
 
 
 
 
997
  $output .= MLAData::mla_parse_template( $item_template, $markup_values );
998
 
999
  /*
1000
  * End of row markup
1001
  */
1002
- $i++;
1003
- if ( $markup_values['columns'] > 0 && $i % $markup_values['columns'] == 0 )
1004
  $output .= MLAData::mla_parse_template( $row_close_template, $markup_values );
1005
  } // is_gallery
1006
  elseif ( ( $is_previous || $is_next ) )
@@ -1011,7 +1104,7 @@ class MLAShortcodes {
1011
  /*
1012
  * Close out partial row
1013
  */
1014
- if ( ! ($markup_values['columns'] > 0 && $i % $markup_values['columns'] == 0 ) )
1015
  $output .= MLAData::mla_parse_template( $row_close_template, $markup_values );
1016
 
1017
  $output .= MLAData::mla_parse_template( $close_template, $markup_values );
@@ -1036,6 +1129,168 @@ class MLAShortcodes {
1036
  return MLAData::mla_parse_template( $new_text, $markup_values );
1037
  }
1038
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1039
  /**
1040
  * WP_Query filter "parameters"
1041
  *
@@ -1190,6 +1445,7 @@ class MLAShortcodes {
1190
  // {tax_slug} => 'term' | array ( 'term, 'term, ... )
1191
  // 'tax_query' => ''
1192
  'tax_operator' => '',
 
1193
  // Post
1194
  'post_type' => 'attachment',
1195
  'post_status' => 'inherit',
@@ -1201,6 +1457,8 @@ class MLAShortcodes {
1201
  'posts_per_archive_page' => 0,
1202
  'paged' => NULL, // page number or 'current'
1203
  'offset' => NULL,
 
 
1204
  // TBD Time
1205
  // Custom Field
1206
  'meta_key' => '',
@@ -1219,10 +1477,13 @@ class MLAShortcodes {
1219
  *
1220
  * @param int Post ID of the parent
1221
  * @param array Attributes of the shortcode
 
1222
  *
1223
  * @return array List of attachments returned from WP_Query
1224
  */
1225
- public static function mla_get_shortcode_attachments( $post_parent, $attr ) {
 
 
1226
  /*
1227
  * Parameters passed to the where and orderby filter functions
1228
  */
@@ -1280,8 +1541,17 @@ class MLAShortcodes {
1280
  elseif ( array_key_exists( $key, $taxonomies ) ) {
1281
  $query_arguments[ $key ] = implode(',', array_filter( array_map( 'trim', explode( ',', $value ) ) ) );
1282
 
1283
- if ( in_array( strtoupper( $arguments['tax_operator'] ), array( 'IN', 'NOT IN', 'AND' ) ) ) {
1284
- $query_arguments['tax_query'] = array( array( 'taxonomy' => $key, 'field' => 'slug', 'terms' => explode( ',', $query_arguments[ $key ] ), 'operator' => strtoupper( $arguments['tax_operator'] ) ) );
 
 
 
 
 
 
 
 
 
1285
  unset( $query_arguments[ $key ] );
1286
  }
1287
  } // array_key_exists
@@ -1352,10 +1622,28 @@ class MLAShortcodes {
1352
  unset( $arguments[ $key ] );
1353
  break;
1354
  case 'paged':
1355
- if ( 'current' == strtolower( $value ) )
1356
- $query_arguments[ $key ] = (get_query_var('paged')) ? get_query_var('paged') : 1;
 
 
 
 
 
 
 
 
1357
  elseif ( is_numeric( $value ) )
1358
  $query_arguments[ $key ] = intval( $value );
 
 
 
 
 
 
 
 
 
 
1359
  unset( $arguments[ $key ] );
1360
  break;
1361
  case 'author':
@@ -1486,10 +1774,27 @@ class MLAShortcodes {
1486
  }
1487
  unset( $query_arguments['numberposts'] );
1488
 
1489
- if ( isset( $query_arguments['posts_per_page'] ) || isset( $query_arguments['posts_per_archive_page'] ) ||
1490
- isset( $query_arguments['paged'] ) || isset( $query_arguments['offset'] ) ) {
 
 
1491
  unset( $query_arguments['nopaging'] );
 
 
 
 
 
 
 
1492
  }
 
 
 
 
 
 
 
 
1493
 
1494
  if ( isset( $query_arguments['post_mime_type'] ) && ('all' == strtolower( $query_arguments['post_mime_type'] ) ) )
1495
  unset( $query_arguments['post_mime_type'] );
@@ -1502,7 +1807,7 @@ class MLAShortcodes {
1502
  $query_arguments['post__not_in'] = wp_parse_id_list( $query_arguments['exclude'] );
1503
 
1504
  $query_arguments['ignore_sticky_posts'] = true;
1505
- $query_arguments['no_found_rows'] = true;
1506
 
1507
  /*
1508
  * We will always handle "orderby" in our filter
@@ -1530,6 +1835,11 @@ class MLAShortcodes {
1530
 
1531
  $get_posts = new WP_Query;
1532
  $attachments = $get_posts->query($query_arguments);
 
 
 
 
 
1533
  remove_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter', 0x7FFFFFFF, 1 );
1534
  remove_filter( 'posts_orderby', 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter', 0x7FFFFFFF, 1 );
1535
 
163
  */
164
  if ( ! is_object( $post ) )
165
  $post = (object) array( 'ID' => 0 );
166
+
167
+ /*
168
+ * Special handling of the mla_paginate_current parameter to make
169
+ * "MLA pagination" easier. Look for this parameter in $_REQUEST
170
+ * if it's not present in the shortcode itself.
171
+ */
172
+ if ( isset( $_REQUEST['mla_paginate_current'] ) && ! isset( $attr['mla_paginate_current'] ) )
173
+ $attr['mla_paginate_current'] = $_REQUEST['mla_paginate_current'];
174
+
175
  /*
176
  * These are the parameters for gallery display
177
  */
180
  'mla_style' => MLAOptions::mla_get_option('default_style'),
181
  'mla_markup' => MLAOptions::mla_get_option('default_markup'),
182
  'mla_float' => is_rtl() ? 'right' : 'left',
183
+ 'mla_itemwidth' => MLAOptions::mla_get_option('mla_gallery_itemwidth'),
184
+ 'mla_margin' => MLAOptions::mla_get_option('mla_gallery_margin'),
 
185
  'mla_link_attributes' => '',
186
+ 'mla_link_class' => '',
187
+ 'mla_link_href' => '',
188
  'mla_link_text' => '',
189
+ 'mla_nolink_text' => '',
190
  'mla_rollover_text' => '',
191
  'mla_image_class' => '',
192
  'mla_image_alt' => '',
207
  'itemtag' => 'dl',
208
  'icontag' => 'dt',
209
  'captiontag' => 'dd',
210
+ 'columns' => MLAOptions::mla_get_option('mla_gallery_columns'),
211
  'link' => 'permalink', // or 'post' or file' or a registered size
212
  // Photonic-specific
213
  'id' => NULL,
253
  $arguments = shortcode_atts( $default_arguments, $attr );
254
  self::$mla_debug = !empty( $arguments['mla_debug'] ) && ( 'true' == strtolower( $arguments['mla_debug'] ) );
255
 
256
+ /*
257
+ * Determine output type
258
+ */
259
+ $output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $arguments['mla_output'] ) ) );
260
+ $is_gallery = 'gallery' == $output_parameters[0];
261
+ $is_pagination = in_array( $output_parameters[0], array( 'previous_page', 'next_page', 'paginate_links' ) );
262
+
263
+ $attachments = self::mla_get_shortcode_attachments( $post->ID, $attr, $is_pagination );
264
 
265
  if ( is_string( $attachments ) )
266
  return $attachments;
270
  $output = '<p><strong>mla_debug empty gallery</strong>, query = ' . var_export( $attr, true ) . '</p>';
271
  $output .= self::$mla_debug_messages;
272
  self::$mla_debug_messages = '';
 
273
  }
274
  else {
275
+ $output = '';
276
  }
277
+
278
+ $output .= $arguments['mla_nolink_text'];
279
+ return $output;
280
  } // empty $attachments
281
 
282
  /*
378
  $instance++;
379
 
380
  /*
381
+ * The default MLA style template includes "margin: 1.5%" to put a bit of
382
+ * minimum space between the columns. "mla_margin" can be used to change
383
  * this. "mla_itemwidth" can be used with "columns=0" to achieve a "responsive"
384
  * layout.
385
  */
386
 
387
+ $columns = absint( $arguments['columns'] );
388
+ $margin_string = strtolower( trim( $arguments['mla_margin'] ) );
389
+
390
+ if ( is_numeric( $margin_string ) && ( 0 != $margin_string) )
391
+ $margin_string .= '%'; // Legacy values are always in percent
392
+
393
+ if ( '%' == substr( $margin_string, -1 ) )
394
+ $margin_percent = (float) substr( $margin_string, 0, strlen( $margin_string ) - 1 );
395
+ else
396
+ $margin_percent = 0;
397
+
398
+ $width_string = strtolower( trim( $arguments['mla_itemwidth'] ) );
399
+ if ( 'none' != $width_string ) {
400
+ switch ( $width_string ) {
401
+ case 'exact':
402
+ $margin_percent = 0;
403
+ /* fallthru */
404
+ case 'calculate':
405
+ $width_string = $columns > 0 ? (floor(1000/$columns)/10) - ( 2.0 * $margin_percent ) : 100 - ( 2.0 * $margin_percent );
406
+ /* fallthru */
407
+ default:
408
+ if ( is_numeric( $width_string ) && ( 0 != $width_string) )
409
+ $width_string .= '%'; // Legacy values are always in percent
410
+ }
411
+ } // $use_width
412
 
413
  $float = strtolower( $arguments['mla_float'] );
414
  if ( ! in_array( $float, array( 'left', 'none', 'right' ) ) )
422
  'itemtag' => tag_escape( $arguments['itemtag'] ),
423
  'icontag' => tag_escape( $arguments['icontag'] ),
424
  'captiontag' => tag_escape( $arguments['captiontag'] ),
425
+ 'columns' => $columns,
426
+ 'itemwidth' => $width_string,
427
+ 'margin' => $margin_string,
428
  'float' => $float,
429
  'selector' => "mla_gallery-{$instance}",
430
  'size_class' => sanitize_html_class( $size_class )
459
  }
460
  } // $placeholders
461
 
462
+ /*
463
+ * Clean up the template to resolve width or margin == 'none'
464
+ */
465
+ if ( 'none' == $margin_string ) {
466
+ $style_values['margin'] = '0';
467
+ $style_template = preg_replace( '/margin:[\s]*\[\+margin\+\][\%]*[\;]*/', '', $style_template );
468
+ }
469
+
470
+ if ( 'none' == $width_string ) {
471
+ $style_values['itemwidth'] = 'auto';
472
+ $style_template = preg_replace( '/width:[\s]*\[\+itemwidth\+\][\%]*[\;]*/', '', $style_template );
473
+ }
474
  $gallery_style = MLAData::mla_parse_template( $style_template, $style_values );
475
+
476
+ /*
477
+ * Clean up the styles to resolve extra "%" suffixes on width or margin (pre v1.42 values)
478
+ */
479
+ $preg_pattern = array( '/([margin|width]:[^\%]*)\%\%/', '/([margin|width]:.*)auto\%/', '/([margin|width]:.*)inherit\%/' );
480
+ $preg_replacement = array( '${1}%', '${1}auto', '${1}inherit', );
481
+ $gallery_style = preg_replace( $preg_pattern, $preg_replacement, $gallery_style );
482
  } // !empty template
483
  } // use_mla_gallery_style
484
 
502
  $custom_placeholders = array();
503
  $iptc_placeholders = array();
504
  $exif_placeholders = array();
505
+ $pdf_placeholders = array();
506
 
507
  $open_template = MLAOptions::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
508
  if ( false === $open_template ) {
532
  /*
533
  * Look for variable query and item-level placeholders
534
  */
535
+ $new_text = str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_link_attributes'] . $arguments['mla_link_class'] . $arguments['mla_link_href'] . $arguments['mla_link_text'] . $arguments['mla_nolink_text'] . $arguments['mla_rollover_text'] . $arguments['mla_image_class'] . $arguments['mla_image_alt'] . $arguments['mla_image_attributes'] . $arguments['mla_caption'] ) );
536
 
537
  $placeholders = MLAData::mla_get_template_placeholders( $new_text . $open_template . $row_open_template . $item_template . $row_close_template . $close_template );
538
  foreach ($placeholders as $key => $value ) {
558
  case 'exif':
559
  $exif_placeholders[ $key ] = $value;
560
  break;
561
+ case 'pdf':
562
+ $pdf_placeholders[ $key ] = $value;
563
+ break;
564
  default:
565
  // ignore anything else
566
  } // switch
583
  $markup_values[ $key ] = '';
584
  } // $request_placeholders
585
 
 
 
 
 
 
 
 
586
  if ( self::$mla_debug ) {
587
  $output = self::$mla_debug_messages;
588
  self::$mla_debug_messages = '';
598
 
599
  $output .= apply_filters( 'mla_gallery_style', $gallery_style . $gallery_div, $style_values, $markup_values, $style_template, $open_template );
600
  }
601
+ else {
602
+ if ( ! isset( $attachments['found_rows'] ) )
603
+ $attachments['found_rows'] = 0;
604
+
605
+ /*
606
+ * Handle 'previous_page', 'next_page', and 'paginate_links'
607
+ */
608
+ $pagination_result = self::_process_pagination_output_types( $output_parameters, $markup_values, $arguments, $attr, $attachments['found_rows'], $output );
609
+ if ( false !== $pagination_result )
610
+ return $pagination_result;
611
+
612
+ unset( $attachments['found_rows'] );
613
+ }
614
 
615
  /*
616
  * For "previous_link" and "next_link", discard all of the $attachments except the appropriate choice
617
  */
618
  if ( ! $is_gallery ) {
619
+ $is_previous = 'previous_link' == $output_parameters[0];
620
+ $is_next = 'next_link' == $output_parameters[0];
 
 
 
621
 
622
  if ( ! ( $is_previous || $is_next ) )
623
  return ''; // unknown outtput type
624
 
625
+ $is_wrap = isset( $output_parameters[1] ) && 'wrap' == $output_parameters[1];
626
  $current_id = empty( $arguments['id'] ) ? $markup_values['id'] : $arguments['id'];
627
 
628
  foreach ( $attachments as $id => $attachment ) {
640
  else
641
  $attachments = array( array_pop( $attachments ) );
642
  } // is_wrap
643
+ elseif ( ! empty( $arguments['mla_nolink_text'] ) )
644
+ return self::_process_shortcode_parameter( $arguments['mla_nolink_text'], $markup_values ) . '</a>';
645
  else
646
  return '';
647
  } // ! is_gallery
648
 
649
+ $column_index = 0;
650
  foreach ( $attachments as $id => $attachment ) {
651
  /*
652
  * fill in item-specific elements
653
  */
654
+ $markup_values['index'] = (string) 1 + $column_index;
655
 
656
  $markup_values['excerpt'] = wptexturize( $attachment->post_excerpt );
657
  $markup_values['attachment_ID'] = $attachment->ID;
725
  /*
726
  * Add variable placeholders
727
  */
728
+ $item_metadata = get_metadata( 'post', $attachment->ID, '_wp_attachment_metadata', true );
729
  foreach ( $meta_placeholders as $key => $value ) {
730
+ $markup_values[ $key ] = MLAData::mla_find_array_element( $value['value'], $item_metadata, $value['option'] );
731
  } // $meta_placeholders */
732
 
733
  foreach ( $terms_placeholders as $key => $value ) {
777
  $markup_values[ $key ] = $text;
778
  } // $custom_placeholders
779
 
780
+ if ( !empty( $iptc_placeholders ) || !empty( $exif_placeholders ) || !empty( $pdf_placeholders ) ) {
781
+ $item_metadata = MLAData::mla_fetch_attachment_image_metadata( $attachment->ID );
782
  }
783
 
784
  foreach ( $iptc_placeholders as $key => $value ) {
785
  $text = '';
786
+ $record = MLAData::mla_iptc_metadata_value( $value['value'], $item_metadata );
787
  if ( is_array( $record ) ) {
788
  if ( 'single' == $value['option'] )
789
  $text = sanitize_text_field( array_shift( $record ) );
803
 
804
  foreach ( $exif_placeholders as $key => $value ) {
805
  $text = '';
806
+ $record = MLAData::mla_exif_metadata_value( $value['value'], $item_metadata );
807
  if ( is_array( $record ) ) {
808
  if ( 'single' == $value['option'] )
809
  $text = sanitize_text_field( array_shift( $record ) );
821
  $markup_values[ $key ] = $text;
822
  } // $exif_placeholders
823
 
824
+ foreach ( $pdf_placeholders as $key => $value ) {
825
+ $text = '';
826
+ $record = MLAData::mla_pdf_metadata_value( $value['value'], $item_metadata );
827
+ if ( is_array( $record ) ) {
828
+ if ( 'single' == $value['option'] )
829
+ $text = sanitize_text_field( array_shift( $record ) );
830
+ elseif ( 'export' == $value['option'] )
831
+ $text = sanitize_text_field( var_export( $record, true ) );
832
+ else
833
+ foreach ( $record as $term ) {
834
+ $term_name = sanitize_text_field( $term );
835
+ $text .= strlen( $text ) ? ', ' . $term_name : $term_name;
836
+ }
837
+ } // is_array
838
+ else
839
+ $text = $record;
840
+
841
+ $markup_values[ $key ] = $text;
842
+ } // $pdf_placeholders
843
+
844
  unset(
845
  $markup_values['caption'],
846
  $markup_values['pagelink'],
884
  if ( ! empty( $arguments['mla_link_attributes'] ) )
885
  $link_attributes .= self::_process_shortcode_parameter( $arguments['mla_link_attributes'], $markup_values ) . ' ';
886
 
887
+ if ( ! empty( $arguments['mla_link_class'] ) )
888
+ $link_attributes .= 'class="' . self::_process_shortcode_parameter( $arguments['mla_link_class'], $markup_values ) . '" ';
889
+
890
  if ( ! empty( $link_attributes ) ) {
891
  $markup_values['pagelink'] = str_replace( '<a href=', '<a ' . $link_attributes . 'href=', $markup_values['pagelink'] );
892
  $markup_values['filelink'] = str_replace( '<a href=', '<a ' . $link_attributes . 'href=', $markup_values['filelink'] );
1076
  /*
1077
  * Start of row markup
1078
  */
1079
+ if ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 )
1080
  $output .= MLAData::mla_parse_template( $row_open_template, $markup_values );
1081
 
1082
  /*
1083
  * item markup
1084
  */
1085
+ $column_index++;
1086
+ if ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 )
1087
+ $markup_values['last_in_row'] = 'last_in_row';
1088
+ else
1089
+ $markup_values['last_in_row'] = '';
1090
+
1091
  $output .= MLAData::mla_parse_template( $item_template, $markup_values );
1092
 
1093
  /*
1094
  * End of row markup
1095
  */
1096
+ if ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 )
 
1097
  $output .= MLAData::mla_parse_template( $row_close_template, $markup_values );
1098
  } // is_gallery
1099
  elseif ( ( $is_previous || $is_next ) )
1104
  /*
1105
  * Close out partial row
1106
  */
1107
+ if ( ! ($markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) )
1108
  $output .= MLAData::mla_parse_template( $row_close_template, $markup_values );
1109
 
1110
  $output .= MLAData::mla_parse_template( $close_template, $markup_values );
1129
  return MLAData::mla_parse_template( $new_text, $markup_values );
1130
  }
1131
 
1132
+ /**
1133
+ * Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'
1134
+ *
1135
+ * @since 1.42
1136
+ *
1137
+ * @param array value(s) for mla_output_type parameter
1138
+ * @param string template substitution values, e.g., ('instance' => '1', ... )
1139
+ * @param string merged default and passed shortcode parameter values
1140
+ * @param string raw passed shortcode parameter values
1141
+ * @param integer number of attachments in the gallery, without pagination
1142
+ * @param string output text so far, may include debug values
1143
+ *
1144
+ * @return mixed false or string with HTML for pagination output types
1145
+ */
1146
+ private static function _process_pagination_output_types( $output_parameters, $markup_values, $arguments, $attr, $found_rows, $output = '' ) {
1147
+ if ( ! in_array( $output_parameters[0], array( 'previous_page', 'next_page', 'paginate_links' ) ) )
1148
+ return false;
1149
+
1150
+ /*
1151
+ * Add data selection parameters to gallery-specific and mla_gallery-specific parameters
1152
+ */
1153
+ $arguments = array_merge( $arguments, shortcode_atts( self::$data_selection_parameters, $attr ) );
1154
+ $posts_per_page = absint( $arguments['posts_per_page'] );
1155
+
1156
+ if ( 0 == $posts_per_page )
1157
+ $posts_per_page = absint( $arguments['numberposts'] );
1158
+
1159
+ if ( 0 == $posts_per_page )
1160
+ $posts_per_page = absint( get_option('posts_per_page') );
1161
+
1162
+ if ( 0 < $posts_per_page ) {
1163
+ $max_page = floor( $found_rows / $posts_per_page );
1164
+ if ( $max_page < ( $found_rows / $posts_per_page ) )
1165
+ $max_page++;
1166
+ }
1167
+ else
1168
+ $max_page = 1;
1169
+
1170
+ if ( isset( $arguments['mla_paginate_total'] ) && $max_page > absint( $arguments['mla_paginate_total'] ) )
1171
+ $max_page = absint( $arguments['mla_paginate_total'] );
1172
+
1173
+ if ( isset( $arguments['mla_paginate_current'] ) )
1174
+ $paged = absint( $arguments['mla_paginate_current'] );
1175
+ else
1176
+ $paged = absint( $arguments['paged'] );
1177
+
1178
+ if ( 0 == $paged )
1179
+ $paged = 1;
1180
+
1181
+ if ( $max_page < $paged )
1182
+ $paged = $max_page;
1183
+
1184
+ switch ( $output_parameters[0] ) {
1185
+ case 'previous_page':
1186
+ $new_text = '&larr; Previous';
1187
+
1188
+ if ( 1 < $paged )
1189
+ $new_page = $paged - 1;
1190
+ else {
1191
+ $new_page = 0;
1192
+
1193
+ if ( isset ( $output_parameters[1] ) )
1194
+ switch ( $output_parameters[1] ) {
1195
+ case 'wrap':
1196
+ $new_page = $max_page;
1197
+ break;
1198
+ case 'first':
1199
+ $new_page = 1;
1200
+ }
1201
+ }
1202
+
1203
+ break;
1204
+ case 'next_page':
1205
+ $new_text = 'Next &rarr;';
1206
+
1207
+ if ( $paged < $max_page )
1208
+ $new_page = $paged + 1;
1209
+ else {
1210
+ $new_page = 0;
1211
+
1212
+ if ( isset ( $output_parameters[1] ) )
1213
+ switch ( $output_parameters[1] ) {
1214
+ case 'last':
1215
+ $new_page = $max_page;
1216
+ break;
1217
+ case 'wrap':
1218
+ $new_page = 1;
1219
+ }
1220
+ }
1221
+
1222
+ break;
1223
+ case 'paginate_links':
1224
+ return $output . 'Found Paginate Links';
1225
+ }
1226
+
1227
+ $markup_values['current_page'] = $paged;
1228
+ $markup_values['new_page'] = $new_page;
1229
+ $markup_values['last_page'] = $max_page;
1230
+ $markup_values['posts_per_page'] = $posts_per_page;
1231
+ $markup_values['found_rows'] = $found_rows;
1232
+
1233
+ if ( $paged )
1234
+ $markup_values['current_offset'] = ( $paged - 1 ) * $posts_per_page;
1235
+ else
1236
+ $markup_values['current_offset'] = 0;
1237
+
1238
+ if ( $new_page )
1239
+ $markup_values['new_offset'] = ( $new_page - 1 ) * $posts_per_page;
1240
+ else
1241
+ $markup_values['new_offset'] = 0;
1242
+
1243
+ $markup_values['current_page_text'] = 'mla_paginate_current="[+current_page+]"';
1244
+ $markup_values['new_page_text'] = 'mla_paginate_current="[+new_page+]"';
1245
+ $markup_values['last_page_text'] = 'mla_paginate_total="[+last_page+]"';
1246
+ $markup_values['posts_per_page_text'] = 'posts_per_page="[+posts_per_page+]"';
1247
+
1248
+ if ( 'HTTPS' == substr( $_SERVER["SERVER_PROTOCOL"], 0, 5 ) )
1249
+ $markup_values['scheme'] = 'https://';
1250
+ else
1251
+ $markup_values['scheme'] = 'http://';
1252
+
1253
+ $markup_values['http_host'] = $_SERVER['HTTP_HOST'];
1254
+ $markup_values['request_uri'] = add_query_arg( array( 'mla_paginate_current' => $new_page ), $_SERVER['REQUEST_URI'] );
1255
+ $markup_values['new_url'] = set_url_scheme( $markup_values['scheme'] . $markup_values['http_host'] . $markup_values['request_uri'] );
1256
+
1257
+ /*
1258
+ * Build the new link, applying Gallery Display Content parameters
1259
+ */
1260
+ if ( 0 == $new_page ) {
1261
+ if ( ! empty( $arguments['mla_nolink_text'] ) )
1262
+ return self::_process_shortcode_parameter( $arguments['mla_nolink_text'], $markup_values ) . '</a>';
1263
+ else
1264
+ return '';
1265
+ }
1266
+
1267
+ $new_link = '<a ';
1268
+
1269
+ if ( ! empty( $arguments['mla_target'] ) )
1270
+ $new_link .= 'target="' . $arguments['mla_target'] . '" ';
1271
+
1272
+ if ( ! empty( $arguments['mla_link_class'] ) )
1273
+ $new_link .= 'class="' . esc_attr( self::_process_shortcode_parameter( $arguments['mla_link_class'], $markup_values ) ) . '" ';
1274
+
1275
+ if ( ! empty( $arguments['mla_rollover_text'] ) )
1276
+ $new_link .= 'title="' . esc_attr( self::_process_shortcode_parameter( $arguments['mla_rollover_text'], $markup_values ) ) . '" ';
1277
+
1278
+ if ( ! empty( $arguments['mla_link_attributes'] ) )
1279
+ $new_link .= esc_attr( self::_process_shortcode_parameter( $arguments['mla_link_attributes'], $markup_values ) ) . ' ';
1280
+
1281
+ if ( ! empty( $arguments['mla_link_href'] ) )
1282
+ $new_link .= 'href="' . esc_attr( self::_process_shortcode_parameter( $arguments['mla_link_href'], $markup_values ) ) . '" >';
1283
+ else
1284
+ $new_link .= 'href="' . $markup_values['new_url'] . '" >';
1285
+
1286
+ if ( ! empty( $arguments['mla_link_text'] ) )
1287
+ $new_link .= self::_process_shortcode_parameter( $arguments['mla_link_text'], $markup_values ) . '</a>';
1288
+ else
1289
+ $new_link .= $new_text . '</a>';
1290
+
1291
+ return $new_link;
1292
+ }
1293
+
1294
  /**
1295
  * WP_Query filter "parameters"
1296
  *
1445
  // {tax_slug} => 'term' | array ( 'term, 'term, ... )
1446
  // 'tax_query' => ''
1447
  'tax_operator' => '',
1448
+ 'tax_include_children' => true,
1449
  // Post
1450
  'post_type' => 'attachment',
1451
  'post_status' => 'inherit',
1457
  'posts_per_archive_page' => 0,
1458
  'paged' => NULL, // page number or 'current'
1459
  'offset' => NULL,
1460
+ 'mla_paginate_current' => NULL,
1461
+ 'mla_paginate_total' => NULL,
1462
  // TBD Time
1463
  // Custom Field
1464
  'meta_key' => '',
1477
  *
1478
  * @param int Post ID of the parent
1479
  * @param array Attributes of the shortcode
1480
+ * @param boolean true to calculate and return ['found_posts'] as an array element
1481
  *
1482
  * @return array List of attachments returned from WP_Query
1483
  */
1484
+ public static function mla_get_shortcode_attachments( $post_parent, $attr, $return_found_rows = false ) {
1485
+ global $wp_query;
1486
+
1487
  /*
1488
  * Parameters passed to the where and orderby filter functions
1489
  */
1541
  elseif ( array_key_exists( $key, $taxonomies ) ) {
1542
  $query_arguments[ $key ] = implode(',', array_filter( array_map( 'trim', explode( ',', $value ) ) ) );
1543
 
1544
+ if ( 'false' == strtolower( trim( $arguments['tax_include_children'] ) ) ) {
1545
+ $arguments['tax_include_children'] = false;
1546
+
1547
+ if ( '' == $arguments['tax_operator'] )
1548
+ $arguments['tax_operator'] = 'OR';
1549
+ }
1550
+ else
1551
+ $arguments['tax_include_children'] = true;
1552
+
1553
+ if ( in_array( strtoupper( $arguments['tax_operator'] ), array( 'OR', 'IN', 'NOT IN', 'AND' ) ) ) {
1554
+ $query_arguments['tax_query'] = array( array( 'taxonomy' => $key, 'field' => 'slug', 'terms' => explode( ',', $query_arguments[ $key ] ), 'operator' => strtoupper( $arguments['tax_operator'] ), 'include_children' => $arguments['tax_include_children'] ) );
1555
  unset( $query_arguments[ $key ] );
1556
  }
1557
  } // array_key_exists
1622
  unset( $arguments[ $key ] );
1623
  break;
1624
  case 'paged':
1625
+ if ( 'current' == strtolower( $value ) ) {
1626
+ /*
1627
+ * Note: The query variable 'page' holds the pagenumber for a single paginated
1628
+ * Post or Page that includes the <!--nextpage--> Quicktag in the post content.
1629
+ */
1630
+ if ( get_query_var('page') )
1631
+ $query_arguments[ $key ] = get_query_var('page');
1632
+ else
1633
+ $query_arguments[ $key ] = (get_query_var('paged')) ? get_query_var('paged') : 1;
1634
+ }
1635
  elseif ( is_numeric( $value ) )
1636
  $query_arguments[ $key ] = intval( $value );
1637
+ elseif ( '' === $value )
1638
+ $query_arguments[ $key ] = 1;
1639
+ unset( $arguments[ $key ] );
1640
+ break;
1641
+ case 'mla_paginate_current':
1642
+ case 'mla_paginate_total':
1643
+ if ( is_numeric( $value ) )
1644
+ $query_arguments[ $key ] = intval( $value );
1645
+ elseif ( '' === $value )
1646
+ $query_arguments[ $key ] = 1;
1647
  unset( $arguments[ $key ] );
1648
  break;
1649
  case 'author':
1774
  }
1775
  unset( $query_arguments['numberposts'] );
1776
 
1777
+ /*
1778
+ * MLA pagination will override WordPress pagination
1779
+ */
1780
+ if ( isset( $query_arguments['mla_paginate_current'] ) ) {
1781
  unset( $query_arguments['nopaging'] );
1782
+ unset( $query_arguments['offset'] );
1783
+ unset( $query_arguments['paged'] );
1784
+
1785
+ if ( isset( $query_arguments['mla_paginate_total'] ) && ( $query_arguments['mla_paginate_current'] > $query_arguments['mla_paginate_total'] ) )
1786
+ $query_arguments['offset'] = 0x7FFFFFFF; // suppress further output
1787
+ else
1788
+ $query_arguments['paged'] = $query_arguments['mla_paginate_current'];
1789
  }
1790
+ else {
1791
+ if ( isset( $query_arguments['posts_per_page'] ) || isset( $query_arguments['posts_per_archive_page'] ) ||
1792
+ isset( $query_arguments['paged'] ) || isset( $query_arguments['offset'] ) ) {
1793
+ unset( $query_arguments['nopaging'] );
1794
+ }
1795
+ }
1796
+ unset( $query_arguments['mla_paginate_current'] );
1797
+ unset( $query_arguments['mla_paginate_total'] );
1798
 
1799
  if ( isset( $query_arguments['post_mime_type'] ) && ('all' == strtolower( $query_arguments['post_mime_type'] ) ) )
1800
  unset( $query_arguments['post_mime_type'] );
1807
  $query_arguments['post__not_in'] = wp_parse_id_list( $query_arguments['exclude'] );
1808
 
1809
  $query_arguments['ignore_sticky_posts'] = true;
1810
+ $query_arguments['no_found_rows'] = ! $return_found_rows;
1811
 
1812
  /*
1813
  * We will always handle "orderby" in our filter
1835
 
1836
  $get_posts = new WP_Query;
1837
  $attachments = $get_posts->query($query_arguments);
1838
+
1839
+ if ( $return_found_rows ) {
1840
+ $attachments['found_rows'] = $get_posts->found_posts;
1841
+ }
1842
+
1843
  remove_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter', 0x7FFFFFFF, 1 );
1844
  remove_filter( 'posts_orderby', 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter', 0x7FFFFFFF, 1 );
1845
 
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 1.41
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: Enhances the Media Library; powerful[mla_gallery], taxonomy support, IPTC/EXIF processing, bulk & quick edit actions and where-used reporting.
16
  Author: David Lingren
17
- Version: 1.41
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 1.42
10
  */
11
 
12
  /*
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support, IPTC/EXIF processing, bulk & quick edit actions and where-used reporting.
16
  Author: David Lingren
17
+ Version: 1.42
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
phpDocs/classes/MLA.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -673,7 +675,7 @@ change the meta data for a single attachment.</h2>
673
  <div class="row"><footer class="span12">
674
  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>
675
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
676
- generated on 2013-06-30T13:10:24-07:00.<br></footer></div>
677
  </div>
678
  </body>
679
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
675
  <div class="row"><footer class="span12">
676
  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>
677
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
678
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
679
  </div>
680
  </body>
681
  </html>
phpDocs/classes/MLAData.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -66,6 +68,7 @@
66
  <li class="method public "><a href="#mla_iptc_metadata_value" title="mla_iptc_metadata_value :: Parse one IPTC metadata field"><span class="description">Parse one IPTC metadata field</span><pre>mla_iptc_metadata_value()</pre></a></li>
67
  <li class="method public "><a href="#mla_load_template" title="mla_load_template :: Load an HTML template from a file"><span class="description">Load an HTML template from a file</span><pre>mla_load_template()</pre></a></li>
68
  <li class="method public "><a href="#mla_parse_template" title="mla_parse_template :: Expand a template, replacing place holders with their values"><span class="description">Expand a template, replacing place holders with their values</span><pre>mla_parse_template()</pre></a></li>
 
69
  <li class="method public "><a href="#mla_query_list_table_items" title="mla_query_list_table_items :: Retrieve attachment objects for list table display"><span class="description">Retrieve attachment objects for list table display</span><pre>mla_query_list_table_items()</pre></a></li>
70
  <li class="method public "><a href="#mla_query_media_modal_items" title="mla_query_media_modal_items :: Retrieve attachment objects for the WordPress Media Manager"><span class="description">Retrieve attachment objects for the WordPress Media Manager</span><pre>mla_query_media_modal_items()</pre></a></li>
71
  <li class="method public "><a href="#mla_query_posts_join_filter" title="mla_query_posts_join_filter :: Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text"><span class="description">Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</span><pre>mla_query_posts_join_filter()</pre></a></li>
@@ -84,7 +87,10 @@ for a single attachment.</span><pre>mla_update_single_item()</pre></a></li>
84
  <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>
85
  <li class="method private "><a href="#_extract_pdf_metadata" title="_extract_pdf_metadata :: Extract Metadata from a PDF file"><span class="description">Extract Metadata from a PDF file</span><pre>_extract_pdf_metadata()</pre></a></li>
86
  <li class="method private "><a href="#_hex_dump" title="_hex_dump :: Format printable version of binary data"><span class="description">Format printable version of binary data</span><pre>_hex_dump()</pre></a></li>
 
 
87
  <li class="method private "><a href="#_parse_pdf_dictionary" title="_parse_pdf_dictionary :: Parse a PDF dictionary object"><span class="description">Parse a PDF dictionary object</span><pre>_parse_pdf_dictionary()</pre></a></li>
 
88
  <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>
89
  <li class="method private "><a href="#_remove_tags" title="_remove_tags :: Remove tags from a term ids list"><span class="description">Remove tags from a term ids list</span><pre>_remove_tags()</pre></a></li>
90
  <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>
@@ -177,7 +183,7 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
177
  </div>
178
  <a name="mla_exif_metadata_value" id="mla_exif_metadata_value"></a><div class="element clickable method public mla_exif_metadata_value" data-toggle="collapse" data-target=".mla_exif_metadata_value .collapse">
179
  <h2>Parse one EXIF metadata field</h2>
180
- <pre>mla_exif_metadata_value(string $exif_key, string $image_metadata) : string</pre>
181
  <div class="labels"></div>
182
  <div class="row collapse"><div class="detail-description">
183
  <p class="long_description"><p>Returns a string value, converting array data to a string as necessary.
@@ -191,9 +197,8 @@ Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p></p>
191
  <h4>$exif_key</h4>
192
  <code>string</code><p>field name</p></div>
193
  <div class="subelement argument">
194
- <h4>$image_metadata</h4>
195
- <code>string</code><p>metadata array containing 'mla_exif_metadata' and 'mla_iptc_metadata' arrays</p>
196
- </div>
197
  <h3>Returns</h3>
198
  <div class="subelement response">
199
  <code>string</code>string representation of metadata value or an empty string</div>
@@ -383,7 +388,7 @@ the posts and postmeta tables, and all references to the attachment.</p></p>
383
  </div>
384
  <a name="mla_iptc_metadata_value" id="mla_iptc_metadata_value"></a><div class="element clickable method public mla_iptc_metadata_value" data-toggle="collapse" data-target=".mla_iptc_metadata_value .collapse">
385
  <h2>Parse one IPTC metadata field</h2>
386
- <pre>mla_iptc_metadata_value(string $iptc_key, string $image_metadata) : mixed</pre>
387
  <div class="labels"></div>
388
  <div class="row collapse"><div class="detail-description">
389
  <p class="long_description"><p>Returns a string value, converting array data to a string as necessary.</p></p>
@@ -397,9 +402,8 @@ the posts and postmeta tables, and all references to the attachment.</p></p>
397
  <code>string</code><p>field name - IPTC Identifier or friendly name/slug</p>
398
  </div>
399
  <div class="subelement argument">
400
- <h4>$image_metadata</h4>
401
- <code>string</code><p>metadata array containing 'mla_iptc_metadata' array</p>
402
- </div>
403
  <h3>Returns</h3>
404
  <div class="subelement response">
405
  <code>mixed</code>string/array representation of metadata value or an empty string</div>
@@ -454,6 +458,29 @@ where "key" becomes the key part of the array.</p></p>
454
  <code>string</code>Placeholders corresponding to the keys of the hash will be replaced with their values</div>
455
  </div></div>
456
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
  <a name="mla_query_list_table_items" id="mla_query_list_table_items"></a><div class="element clickable method public mla_query_list_table_items" data-toggle="collapse" data-target=".mla_query_list_table_items .collapse">
458
  <h2>Retrieve attachment objects for list table display</h2>
459
  <pre>mla_query_list_table_items(array $request, int $offset, int $count) : array</pre>
@@ -787,24 +814,94 @@ for a single attachment.</h2>
787
  <code>string</code>Printable representation of $data</div>
788
  </div></div>
789
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
790
  <a name="_parse_pdf_dictionary" id="_parse_pdf_dictionary"></a><div class="element clickable method private _parse_pdf_dictionary" data-toggle="collapse" data-target="._parse_pdf_dictionary .collapse">
791
  <h2>Parse a PDF dictionary object</h2>
792
- <pre>_parse_pdf_dictionary(string $string) : array</pre>
793
  <div class="labels"></div>
794
  <div class="row collapse"><div class="detail-description">
795
- <p class="long_description"><p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string), indirect (object), name, array, dictionary, stream, and null.</p></p>
 
 
 
796
  <table class="table table-bordered"><tr>
797
  <th>since</th>
798
  <td>1.4x</td>
799
  </tr></table>
800
  <h3>Parameters</h3>
801
  <div class="subelement argument">
802
- <h4>$string</h4>
803
- <code>string</code><p>dictionary content, without enclosing << and >> delimiters</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
804
  </div>
805
  <h3>Returns</h3>
806
  <div class="subelement response">
807
- <code>array</code>( key => array( 'type' => type, 'value' => value ) ) for each dictionary field</div>
808
  </div></div>
809
  </div>
810
  <a name="_prepare_list_table_query" id="_prepare_list_table_query"></a><div class="element clickable method private _prepare_list_table_query" data-toggle="collapse" data-target="._prepare_list_table_query .collapse">
@@ -1072,7 +1169,7 @@ any further logic required to translate those values is contained in the filters
1072
  <div class="row"><footer class="span12">
1073
  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>
1074
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1075
- generated on 2013-06-30T13:10:24-07:00.<br></footer></div>
1076
  </div>
1077
  </body>
1078
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
68
  <li class="method public "><a href="#mla_iptc_metadata_value" title="mla_iptc_metadata_value :: Parse one IPTC metadata field"><span class="description">Parse one IPTC metadata field</span><pre>mla_iptc_metadata_value()</pre></a></li>
69
  <li class="method public "><a href="#mla_load_template" title="mla_load_template :: Load an HTML template from a file"><span class="description">Load an HTML template from a file</span><pre>mla_load_template()</pre></a></li>
70
  <li class="method public "><a href="#mla_parse_template" title="mla_parse_template :: Expand a template, replacing place holders with their values"><span class="description">Expand a template, replacing place holders with their values</span><pre>mla_parse_template()</pre></a></li>
71
+ <li class="method public "><a href="#mla_pdf_metadata_value" title="mla_pdf_metadata_value :: Parse one PDF metadata field"><span class="description">Parse one PDF metadata field</span><pre>mla_pdf_metadata_value()</pre></a></li>
72
  <li class="method public "><a href="#mla_query_list_table_items" title="mla_query_list_table_items :: Retrieve attachment objects for list table display"><span class="description">Retrieve attachment objects for list table display</span><pre>mla_query_list_table_items()</pre></a></li>
73
  <li class="method public "><a href="#mla_query_media_modal_items" title="mla_query_media_modal_items :: Retrieve attachment objects for the WordPress Media Manager"><span class="description">Retrieve attachment objects for the WordPress Media Manager</span><pre>mla_query_media_modal_items()</pre></a></li>
74
  <li class="method public "><a href="#mla_query_posts_join_filter" title="mla_query_posts_join_filter :: Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text"><span class="description">Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</span><pre>mla_query_posts_join_filter()</pre></a></li>
87
  <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>
88
  <li class="method private "><a href="#_extract_pdf_metadata" title="_extract_pdf_metadata :: Extract Metadata from a PDF file"><span class="description">Extract Metadata from a PDF file</span><pre>_extract_pdf_metadata()</pre></a></li>
89
  <li class="method private "><a href="#_hex_dump" title="_hex_dump :: Format printable version of binary data"><span class="description">Format printable version of binary data</span><pre>_hex_dump()</pre></a></li>
90
+ <li class="method private "><a href="#_parse_pdf_UTF16BE" title="_parse_pdf_UTF16BE :: Parse a PDF Unicode (16-bit Big Endian) object"><span class="description">Parse a PDF Unicode (16-bit Big Endian) object</span><pre>_parse_pdf_UTF16BE()</pre></a></li>
91
+ <li class="method private "><a href="#_parse_pdf_date" title="_parse_pdf_date :: Parse a PDF date string object"><span class="description">Parse a PDF date string object</span><pre>_parse_pdf_date()</pre></a></li>
92
  <li class="method private "><a href="#_parse_pdf_dictionary" title="_parse_pdf_dictionary :: Parse a PDF dictionary object"><span class="description">Parse a PDF dictionary object</span><pre>_parse_pdf_dictionary()</pre></a></li>
93
+ <li class="method private "><a href="#_parse_pdf_string" title="_parse_pdf_string :: Parse a PDF string object"><span class="description">Parse a PDF string object</span><pre>_parse_pdf_string()</pre></a></li>
94
  <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>
95
  <li class="method private "><a href="#_remove_tags" title="_remove_tags :: Remove tags from a term ids list"><span class="description">Remove tags from a term ids list</span><pre>_remove_tags()</pre></a></li>
96
  <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>
183
  </div>
184
  <a name="mla_exif_metadata_value" id="mla_exif_metadata_value"></a><div class="element clickable method public mla_exif_metadata_value" data-toggle="collapse" data-target=".mla_exif_metadata_value .collapse">
185
  <h2>Parse one EXIF metadata field</h2>
186
+ <pre>mla_exif_metadata_value(string $exif_key, string $item_metadata) : string</pre>
187
  <div class="labels"></div>
188
  <div class="row collapse"><div class="detail-description">
189
  <p class="long_description"><p>Returns a string value, converting array data to a string as necessary.
197
  <h4>$exif_key</h4>
198
  <code>string</code><p>field name</p></div>
199
  <div class="subelement argument">
200
+ <h4>$item_metadata</h4>
201
+ <code>string</code><p>metadata array containing iptc, exif, and pdf metadata arrays</p></div>
 
202
  <h3>Returns</h3>
203
  <div class="subelement response">
204
  <code>string</code>string representation of metadata value or an empty string</div>
388
  </div>
389
  <a name="mla_iptc_metadata_value" id="mla_iptc_metadata_value"></a><div class="element clickable method public mla_iptc_metadata_value" data-toggle="collapse" data-target=".mla_iptc_metadata_value .collapse">
390
  <h2>Parse one IPTC metadata field</h2>
391
+ <pre>mla_iptc_metadata_value(string $iptc_key, string $item_metadata) : mixed</pre>
392
  <div class="labels"></div>
393
  <div class="row collapse"><div class="detail-description">
394
  <p class="long_description"><p>Returns a string value, converting array data to a string as necessary.</p></p>
402
  <code>string</code><p>field name - IPTC Identifier or friendly name/slug</p>
403
  </div>
404
  <div class="subelement argument">
405
+ <h4>$item_metadata</h4>
406
+ <code>string</code><p>metadata array containing iptc, exif, and pdf metadata arrays</p></div>
 
407
  <h3>Returns</h3>
408
  <div class="subelement response">
409
  <code>mixed</code>string/array representation of metadata value or an empty string</div>
458
  <code>string</code>Placeholders corresponding to the keys of the hash will be replaced with their values</div>
459
  </div></div>
460
  </div>
461
+ <a name="mla_pdf_metadata_value" id="mla_pdf_metadata_value"></a><div class="element clickable method public mla_pdf_metadata_value" data-toggle="collapse" data-target=".mla_pdf_metadata_value .collapse">
462
+ <h2>Parse one PDF metadata field</h2>
463
+ <pre>mla_pdf_metadata_value(string $pdf_key, string $item_metadata) : string</pre>
464
+ <div class="labels"></div>
465
+ <div class="row collapse"><div class="detail-description">
466
+ <p class="long_description"><p>Returns a string value, converting array data to a string as necessary.
467
+ Also handles the special pseudo-value 'ALL_PDF'.</p></p>
468
+ <table class="table table-bordered"><tr>
469
+ <th>since</th>
470
+ <td>1.4x</td>
471
+ </tr></table>
472
+ <h3>Parameters</h3>
473
+ <div class="subelement argument">
474
+ <h4>$pdf_key</h4>
475
+ <code>string</code><p>field name</p></div>
476
+ <div class="subelement argument">
477
+ <h4>$item_metadata</h4>
478
+ <code>string</code><p>metadata array containing iptc, exif, and pdf metadata arrays</p></div>
479
+ <h3>Returns</h3>
480
+ <div class="subelement response">
481
+ <code>string</code>string representation of metadata value or an empty string</div>
482
+ </div></div>
483
+ </div>
484
  <a name="mla_query_list_table_items" id="mla_query_list_table_items"></a><div class="element clickable method public mla_query_list_table_items" data-toggle="collapse" data-target=".mla_query_list_table_items .collapse">
485
  <h2>Retrieve attachment objects for list table display</h2>
486
  <pre>mla_query_list_table_items(array $request, int $offset, int $count) : array</pre>
814
  <code>string</code>Printable representation of $data</div>
815
  </div></div>
816
  </div>
817
+ <a name="_parse_pdf_UTF16BE" id="_parse_pdf_UTF16BE"></a><div class="element clickable method private _parse_pdf_UTF16BE" data-toggle="collapse" data-target="._parse_pdf_UTF16BE .collapse">
818
+ <h2>Parse a PDF Unicode (16-bit Big Endian) object</h2>
819
+ <pre>_parse_pdf_UTF16BE(string $source_string) : string</pre>
820
+ <div class="labels"></div>
821
+ <div class="row collapse"><div class="detail-description">
822
+ <p class="long_description"></p>
823
+ <table class="table table-bordered"><tr>
824
+ <th>since</th>
825
+ <td>1.4x</td>
826
+ </tr></table>
827
+ <h3>Parameters</h3>
828
+ <div class="subelement argument">
829
+ <h4>$source_string</h4>
830
+ <code>string</code><p>PDF string of 16-bit characters</p>
831
+ </div>
832
+ <h3>Returns</h3>
833
+ <div class="subelement response">
834
+ <code>string</code>UTF-8 encoded string</div>
835
+ </div></div>
836
+ </div>
837
+ <a name="_parse_pdf_date" id="_parse_pdf_date"></a><div class="element clickable method private _parse_pdf_date" data-toggle="collapse" data-target="._parse_pdf_date .collapse">
838
+ <h2>Parse a PDF date string object</h2>
839
+ <pre>_parse_pdf_date(string $source_string) : string</pre>
840
+ <div class="labels"></div>
841
+ <div class="row collapse"><div class="detail-description">
842
+ <p class="long_description"></p>
843
+ <table class="table table-bordered"><tr>
844
+ <th>since</th>
845
+ <td>1.4x</td>
846
+ </tr></table>
847
+ <h3>Parameters</h3>
848
+ <div class="subelement argument">
849
+ <h4>$source_string</h4>
850
+ <code>string</code><p>PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm</p>
851
+ </div>
852
+ <h3>Returns</h3>
853
+ <div class="subelement response">
854
+ <code>string</code>formatted date string YYYY-MM-DD HH:mm:SS</div>
855
+ </div></div>
856
+ </div>
857
  <a name="_parse_pdf_dictionary" id="_parse_pdf_dictionary"></a><div class="element clickable method private _parse_pdf_dictionary" data-toggle="collapse" data-target="._parse_pdf_dictionary .collapse">
858
  <h2>Parse a PDF dictionary object</h2>
859
+ <pre>_parse_pdf_dictionary(string $source_string, integer $offset) : array</pre>
860
  <div class="labels"></div>
861
  <div class="row collapse"><div class="detail-description">
862
+ <p class="long_description"><p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
863
+ indirect (object), name, array, dictionary, stream, and null.
864
+ The array also has a '/length' element containing the number of bytes occupied by the
865
+ dictionary in the source string, including the enclosing parentheses.</p></p>
866
  <table class="table table-bordered"><tr>
867
  <th>since</th>
868
  <td>1.4x</td>
869
  </tr></table>
870
  <h3>Parameters</h3>
871
  <div class="subelement argument">
872
+ <h4>$source_string</h4>
873
+ <code>string</code><p>data within which the string occurs</p></div>
874
+ <div class="subelement argument">
875
+ <h4>$offset</h4>
876
+ <code>integer</code><p>offset within the source string of the opening '<<' characters.</p>
877
+ </div>
878
+ <h3>Returns</h3>
879
+ <div class="subelement response">
880
+ <code>array</code>( '/length' => length, key => array( 'type' => type, 'value' => value ) ) for each dictionary field</div>
881
+ </div></div>
882
+ </div>
883
+ <a name="_parse_pdf_string" id="_parse_pdf_string"></a><div class="element clickable method private _parse_pdf_string" data-toggle="collapse" data-target="._parse_pdf_string .collapse">
884
+ <h2>Parse a PDF string object</h2>
885
+ <pre>_parse_pdf_string(string $source_string, integer $offset) : array</pre>
886
+ <div class="labels"></div>
887
+ <div class="row collapse"><div class="detail-description">
888
+ <p class="long_description"><p>Returns an array with one dictionary entry. The array also has a '/length' element containing
889
+ the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p></p>
890
+ <table class="table table-bordered"><tr>
891
+ <th>since</th>
892
+ <td>1.4x</td>
893
+ </tr></table>
894
+ <h3>Parameters</h3>
895
+ <div class="subelement argument">
896
+ <h4>$source_string</h4>
897
+ <code>string</code><p>data within which the string occurs</p></div>
898
+ <div class="subelement argument">
899
+ <h4>$offset</h4>
900
+ <code>integer</code><p>offset within the source string of the opening '(' character.</p>
901
  </div>
902
  <h3>Returns</h3>
903
  <div class="subelement response">
904
+ <code>array</code>( key => array( 'type' => type, 'value' => value, '/length' => length ) ) for the string</div>
905
  </div></div>
906
  </div>
907
  <a name="_prepare_list_table_query" id="_prepare_list_table_query"></a><div class="element clickable method private _prepare_list_table_query" data-toggle="collapse" data-target="._prepare_list_table_query .collapse">
1169
  <div class="row"><footer class="span12">
1170
  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>
1171
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1172
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
1173
  </div>
1174
  </body>
1175
  </html>
phpDocs/classes/MLAEdit.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -343,7 +345,7 @@ The array is built once each page load and cached for subsequent calls.</p></p>
343
  <div class="row"><footer class="span12">
344
  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>
345
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
346
- generated on 2013-06-30T13:10:24-07:00.<br></footer></div>
347
  </div>
348
  </body>
349
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
345
  <div class="row"><footer class="span12">
346
  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>
347
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
348
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
349
  </div>
350
  </body>
351
  </html>
phpDocs/classes/MLAMime.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -625,7 +627,7 @@ of attachments of each type, and
625
  </div>
626
  <a name="mla_prepare_view_query" id="mla_prepare_view_query"></a><div class="element clickable method public mla_prepare_view_query" data-toggle="collapse" data-target=".mla_prepare_view_query .collapse">
627
  <h2>Convert a Library View/Post MIME Type specification to WP_Query parameters</h2>
628
- <pre>mla_prepare_view_query(string $specification) : array</pre>
629
  <div class="labels"></div>
630
  <div class="row collapse"><div class="detail-description">
631
  <p class="long_description"></p>
@@ -635,6 +637,9 @@ of attachments of each type, and
635
  </tr></table>
636
  <h3>Parameters</h3>
637
  <div class="subelement argument">
 
 
 
638
  <h4>$specification</h4>
639
  <code>string</code><p>A specification, e.g., "custom:Field,null" or "audio,application/vnd.<em>ms</em>"</p>
640
  </div>
@@ -1263,7 +1268,7 @@ Defined as public because it's a filter.</p></p>
1263
  <div class="row"><footer class="span12">
1264
  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>
1265
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1266
- generated on 2013-06-30T13:10:24-07:00.<br></footer></div>
1267
  </div>
1268
  </body>
1269
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
627
  </div>
628
  <a name="mla_prepare_view_query" id="mla_prepare_view_query"></a><div class="element clickable method public mla_prepare_view_query" data-toggle="collapse" data-target=".mla_prepare_view_query .collapse">
629
  <h2>Convert a Library View/Post MIME Type specification to WP_Query parameters</h2>
630
+ <pre>mla_prepare_view_query(string $slug, string $specification) : array</pre>
631
  <div class="labels"></div>
632
  <div class="row collapse"><div class="detail-description">
633
  <p class="long_description"></p>
637
  </tr></table>
638
  <h3>Parameters</h3>
639
  <div class="subelement argument">
640
+ <h4>$slug</h4>
641
+ <code>string</code><p>View slug, unique identifier</p></div>
642
+ <div class="subelement argument">
643
  <h4>$specification</h4>
644
  <code>string</code><p>A specification, e.g., "custom:Field,null" or "audio,application/vnd.<em>ms</em>"</p>
645
  </div>
1268
  <div class="row"><footer class="span12">
1269
  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>
1270
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1271
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
1272
  </div>
1273
  </body>
1274
  </html>
phpDocs/classes/MLAModal.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -307,7 +309,7 @@ and mla_print_media_templates_action</h2>
307
  <div class="row"><footer class="span12">
308
  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>
309
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
310
- generated on 2013-06-30T13:10:24-07:00.<br></footer></div>
311
  </div>
312
  </body>
313
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
309
  <div class="row"><footer class="span12">
310
  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>
311
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
312
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
313
  </div>
314
  </body>
315
  </html>
phpDocs/classes/MLAObjects.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -167,7 +169,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 2013-06-30T13:10:24-07:00.<br></footer></div>
171
  </div>
172
  </body>
173
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
169
  <div class="row"><footer class="span12">
170
  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>
171
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
172
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
173
  </div>
174
  </body>
175
  </html>
phpDocs/classes/MLAOptions.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -782,7 +784,7 @@ settings are being updated or reset.</h2>
782
  </div>
783
  <h3>Returns</h3>
784
  <div class="subelement response">
785
- <code>array</code>absolute_path, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes</div>
786
  </div></div>
787
  </div>
788
  <a name="_evaluate_post_information" id="_evaluate_post_information"></a><div class="element clickable method private _evaluate_post_information" data-toggle="collapse" data-target="._evaluate_post_information .collapse">
@@ -818,14 +820,15 @@ settings are being updated or reset.</h2>
818
  <pre>_get_custom_field_names() : array</pre>
819
  <div class="labels"></div>
820
  <div class="row collapse"><div class="detail-description">
821
- <p class="long_description"></p>
 
822
  <table class="table table-bordered"><tr>
823
  <th>since</th>
824
  <td>1.00</td>
825
  </tr></table>
826
  <h3>Returns</h3>
827
  <div class="subelement response">
828
- <code>array</code>Custom field names from the postmeta table</div>
829
  </div></div>
830
  </div>
831
  <a name="_load_option_templates" id="_load_option_templates"></a><div class="element clickable method private _load_option_templates" data-toggle="collapse" data-target="._load_option_templates .collapse">
@@ -1140,7 +1143,7 @@ reset => reset function for 'custom' options; returns nothing. Usage:
1140
  <div class="row"><footer class="span12">
1141
  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>
1142
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1143
- generated on 2013-06-30T13:10:25-07:00.<br></footer></div>
1144
  </div>
1145
  </body>
1146
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
784
  </div>
785
  <h3>Returns</h3>
786
  <div class="subelement response">
787
+ <code>array</code>absolute_path_raw, absolute_path, absolute_file_name_raw, absolute_file_name, absolute_file, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes</div>
788
  </div></div>
789
  </div>
790
  <a name="_evaluate_post_information" id="_evaluate_post_information"></a><div class="element clickable method private _evaluate_post_information" data-toggle="collapse" data-target="._evaluate_post_information .collapse">
820
  <pre>_get_custom_field_names() : array</pre>
821
  <div class="labels"></div>
822
  <div class="row collapse"><div class="detail-description">
823
+ <p class="long_description"><p>The list will include any Custom Field and IPTC/EXIF rules that
824
+ haven't been mapped to any attachments, yet.</p></p>
825
  <table class="table table-bordered"><tr>
826
  <th>since</th>
827
  <td>1.00</td>
828
  </tr></table>
829
  <h3>Returns</h3>
830
  <div class="subelement response">
831
+ <code>array</code>Custom field names from the postmeta table and MLA rules</div>
832
  </div></div>
833
  </div>
834
  <a name="_load_option_templates" id="_load_option_templates"></a><div class="element clickable method private _load_option_templates" data-toggle="collapse" data-target="._load_option_templates .collapse">
1143
  <div class="row"><footer class="span12">
1144
  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>
1145
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1146
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
1147
  </div>
1148
  </body>
1149
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -1102,7 +1104,7 @@ each page load and cached for subsequent use.</p></p>
1102
  <div class="row"><footer class="span12">
1103
  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>
1104
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1105
- generated on 2013-06-30T13:10:25-07:00.<br></footer></div>
1106
  </div>
1107
  </body>
1108
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
1104
  <div class="row"><footer class="span12">
1105
  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>
1106
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1107
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
1108
  </div>
1109
  </body>
1110
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -61,6 +63,7 @@
61
  <li class="method public "><a href="#mla_shortcode_query_posts_orderby_filter" title="mla_shortcode_query_posts_orderby_filter :: Filters the ORDERBY clause for shortcode queries"><span class="description">Filters the ORDERBY clause for shortcode queries</span><pre>mla_shortcode_query_posts_orderby_filter()</pre></a></li>
62
  <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>
63
  <li class="nav-header private">» Private</li>
 
64
  <li class="method private "><a href="#_process_shortcode_parameter" title="_process_shortcode_parameter :: Handles brace/bracket escaping and parses template for a shortcode parameter"><span class="description">Handles brace/bracket escaping and parses template for a shortcode parameter</span><pre>_process_shortcode_parameter()</pre></a></li>
65
  <li class="method private "><a href="#_sanitize_query_specification" title="_sanitize_query_specification :: Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications"><span class="description">Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications</span><pre>_sanitize_query_specification()</pre></a></li>
66
  <li class="method private "><a href="#_validate_sql_orderby" title="_validate_sql_orderby :: Translates query parameters to a valid SQL order by clause."><span class="description">Translates query parameters to a valid SQL order by clause.</span><pre>_validate_sql_orderby()</pre></a></li>
@@ -146,7 +149,7 @@ Enhancements include many additional selection parameters and full taxonomy supp
146
  </div>
147
  <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">
148
  <h2>Parses shortcode parameters and returns the gallery objects</h2>
149
- <pre>mla_get_shortcode_attachments(int $post_parent, array $attr) : array</pre>
150
  <div class="labels"></div>
151
  <div class="row collapse"><div class="detail-description">
152
  <p class="long_description"></p>
@@ -161,6 +164,10 @@ Enhancements include many additional selection parameters and full taxonomy supp
161
  <div class="subelement argument">
162
  <h4>$attr</h4>
163
  <code>array</code><p>Attributes of the shortcode</p></div>
 
 
 
 
164
  <h3>Returns</h3>
165
  <div class="subelement response">
166
  <code>array</code>List of attachments returned from WP_Query</div>
@@ -248,6 +255,42 @@ Defined as public because it's a filter.</p></p>
248
  <code>string</code>query clause after modification</div>
249
  </div></div>
250
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  <a name="_process_shortcode_parameter" id="_process_shortcode_parameter"></a><div class="element clickable method private _process_shortcode_parameter" data-toggle="collapse" data-target="._process_shortcode_parameter .collapse">
252
  <h2>Handles brace/bracket escaping and parses template for a shortcode parameter</h2>
253
  <pre>_process_shortcode_parameter(string $text, string $markup_values) : string</pre>
@@ -373,7 +416,7 @@ any further logic required to translate those values is contained in the filter.
373
  <div class="row"><footer class="span12">
374
  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>
375
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
376
- generated on 2013-06-30T13:10:25-07:00.<br></footer></div>
377
  </div>
378
  </body>
379
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
63
  <li class="method public "><a href="#mla_shortcode_query_posts_orderby_filter" title="mla_shortcode_query_posts_orderby_filter :: Filters the ORDERBY clause for shortcode queries"><span class="description">Filters the ORDERBY clause for shortcode queries</span><pre>mla_shortcode_query_posts_orderby_filter()</pre></a></li>
64
  <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>
65
  <li class="nav-header private">» Private</li>
66
+ <li class="method private "><a href="#_process_pagination_output_types" title="_process_pagination_output_types :: Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'"><span class="description">Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'</span><pre>_process_pagination_output_types()</pre></a></li>
67
  <li class="method private "><a href="#_process_shortcode_parameter" title="_process_shortcode_parameter :: Handles brace/bracket escaping and parses template for a shortcode parameter"><span class="description">Handles brace/bracket escaping and parses template for a shortcode parameter</span><pre>_process_shortcode_parameter()</pre></a></li>
68
  <li class="method private "><a href="#_sanitize_query_specification" title="_sanitize_query_specification :: Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications"><span class="description">Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications</span><pre>_sanitize_query_specification()</pre></a></li>
69
  <li class="method private "><a href="#_validate_sql_orderby" title="_validate_sql_orderby :: Translates query parameters to a valid SQL order by clause."><span class="description">Translates query parameters to a valid SQL order by clause.</span><pre>_validate_sql_orderby()</pre></a></li>
149
  </div>
150
  <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">
151
  <h2>Parses shortcode parameters and returns the gallery objects</h2>
152
+ <pre>mla_get_shortcode_attachments(int $post_parent, array $attr, boolean $return_found_rows) : array</pre>
153
  <div class="labels"></div>
154
  <div class="row collapse"><div class="detail-description">
155
  <p class="long_description"></p>
164
  <div class="subelement argument">
165
  <h4>$attr</h4>
166
  <code>array</code><p>Attributes of the shortcode</p></div>
167
+ <div class="subelement argument">
168
+ <h4>$return_found_rows</h4>
169
+ <code>boolean</code><p>true to calculate and return ['found_posts'] as an array element</p>
170
+ </div>
171
  <h3>Returns</h3>
172
  <div class="subelement response">
173
  <code>array</code>List of attachments returned from WP_Query</div>
255
  <code>string</code>query clause after modification</div>
256
  </div></div>
257
  </div>
258
+ <a name="_process_pagination_output_types" id="_process_pagination_output_types"></a><div class="element clickable method private _process_pagination_output_types" data-toggle="collapse" data-target="._process_pagination_output_types .collapse">
259
+ <h2>Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'</h2>
260
+ <pre>_process_pagination_output_types(array $output_parameters, string $markup_values, string $arguments, string $attr, integer $found_rows, string $output) : mixed</pre>
261
+ <div class="labels"></div>
262
+ <div class="row collapse"><div class="detail-description">
263
+ <p class="long_description"></p>
264
+ <table class="table table-bordered"><tr>
265
+ <th>since</th>
266
+ <td>1.42</td>
267
+ </tr></table>
268
+ <h3>Parameters</h3>
269
+ <div class="subelement argument">
270
+ <h4>$output_parameters</h4>
271
+ <code>array</code><p>value(s) for mla_output_type parameter</p>
272
+ </div>
273
+ <div class="subelement argument">
274
+ <h4>$markup_values</h4>
275
+ <code>string</code><p>template substitution values, e.g., ('instance' => '1', ... )</p>
276
+ </div>
277
+ <div class="subelement argument">
278
+ <h4>$arguments</h4>
279
+ <code>string</code><p>merged default and passed shortcode parameter values</p></div>
280
+ <div class="subelement argument">
281
+ <h4>$attr</h4>
282
+ <code>string</code><p>raw passed shortcode parameter values</p></div>
283
+ <div class="subelement argument">
284
+ <h4>$found_rows</h4>
285
+ <code>integer</code><p>number of attachments in the gallery, without pagination</p></div>
286
+ <div class="subelement argument">
287
+ <h4>$output</h4>
288
+ <code>string</code><p>output text so far, may include debug values</p></div>
289
+ <h3>Returns</h3>
290
+ <div class="subelement response">
291
+ <code>mixed</code>false or string with HTML for pagination output types</div>
292
+ </div></div>
293
+ </div>
294
  <a name="_process_shortcode_parameter" id="_process_shortcode_parameter"></a><div class="element clickable method private _process_shortcode_parameter" data-toggle="collapse" data-target="._process_shortcode_parameter .collapse">
295
  <h2>Handles brace/bracket escaping and parses template for a shortcode parameter</h2>
296
  <pre>_process_shortcode_parameter(string $text, string $markup_values) : string</pre>
416
  <div class="row"><footer class="span12">
417
  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>
418
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
419
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
420
  </div>
421
  </body>
422
  </html>
phpDocs/classes/MLATest.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -160,7 +162,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 2013-06-30T13:10:25-07:00.<br></footer></div>
164
  </div>
165
  </body>
166
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
162
  <div class="row"><footer class="span12">
163
  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>
164
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
165
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
166
  </div>
167
  </body>
168
  </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -67,6 +69,7 @@ calls the parent constructor to set some default configs.</span><pre>__construct
67
  <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>
68
  <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>
69
  <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>
 
70
  <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>
71
  <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>
72
  <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>
@@ -95,7 +98,9 @@ and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></
95
  <li class="method public "><a href="#mla_get_taxonomy_filter_dropdown" title="mla_get_taxonomy_filter_dropdown :: Get dropdown box of terms to filter by, if available"><span class="description">Get dropdown box of terms to filter by, if available</span><pre>mla_get_taxonomy_filter_dropdown()</pre></a></li>
96
  <li class="method public "><a href="#mla_manage_columns_filter" title="mla_manage_columns_filter :: Handler for filter 'manage_media_page_mla-menu_columns'"><span class="description">Handler for filter 'manage_media_page_mla-menu_columns'</span><pre>mla_manage_columns_filter()</pre></a></li>
97
  <li class="method public "><a href="#mla_manage_hidden_columns_filter" title="mla_manage_hidden_columns_filter :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns_filter()</pre></a></li>
 
98
  <li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying"><span class="description">Prepares the list of items for displaying</span><pre>prepare_items()</pre></a></li>
 
99
  <li class="method public "><a href="#single_row" title="single_row :: Generates (echoes) content for a single row of the table"><span class="description">Generates (echoes) content for a single row of the table</span><pre>single_row()</pre></a></li>
100
  <li class="nav-header private">» Private</li>
101
  <li class="method private "><a href="#_avail_mime_types" title="_avail_mime_types :: Get MIME types with one or more attachments for view preparation"><span class="description">Get MIME types with one or more attachments for view preparation</span><pre>_avail_mime_types()</pre></a></li>
@@ -104,6 +109,7 @@ and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></
104
  'ID_parent', 'title_name', 'post_title', 'post_name'"><span class="description">Add rollover actions to exactly one of the following displayed columns:
105
  'ID_parent', 'title_name', 'post_title', 'post_name'</span><pre>_build_rollover_actions()</pre></a></li>
106
  <li class="method private "><a href="#_default_hidden_columns" title="_default_hidden_columns :: Access the default list of hidden columns"><span class="description">Access the default list of hidden columns</span><pre>_default_hidden_columns()</pre></a></li>
 
107
  <li class="nav-header">
108
  <i class="icon-custom icon-property"></i> Properties</li>
109
  <li class="nav-header private">» Private</li>
@@ -402,6 +408,26 @@ a specific method, so this function returns a troubleshooting message.</p></p>
402
  <code>string</code>HTML markup to be placed inside the column</div>
403
  </div></div>
404
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
405
  <a name="column_galleries" id="column_galleries"></a><div class="element clickable method public column_galleries" data-toggle="collapse" data-target=".column_galleries .collapse">
406
  <h2>Supply the content for a custom column</h2>
407
  <pre>column_galleries(array $item) : string</pre>
@@ -814,6 +840,23 @@ is not created in time for the call from screen.php.</p></p>
814
  <code>array</code>updated list of hidden columns</div>
815
  </div></div>
816
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
817
  <a name="prepare_items" id="prepare_items"></a><div class="element clickable method public prepare_items" data-toggle="collapse" data-target=".prepare_items .collapse">
818
  <h2>Prepares the list of items for displaying</h2>
819
  <pre>prepare_items() : void</pre>
@@ -829,6 +872,22 @@ $this->set_pagination_args().</p></p>
829
  </tr></table>
830
  </div></div>
831
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
832
  <a name="single_row" id="single_row"></a><div class="element clickable method public single_row" data-toggle="collapse" data-target=".single_row .collapse">
833
  <h2>Generates (echoes) content for a single row of the table</h2>
834
  <pre>single_row(object $item) : void</pre>
@@ -924,6 +983,21 @@ but uses the output of wp_count_attachments() as input.</p></p>
924
  <code>array</code>default list of hidden columns</div>
925
  </div></div>
926
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
927
  <h3>
928
  <i class="icon-custom icon-property"></i> Properties</h3>
929
  <a name="%24currently_hidden" id="$currently_hidden"> </a><div class="element clickable property private $currently_hidden" data-toggle="collapse" data-target=".$currently_hidden .collapse">
@@ -1018,7 +1092,7 @@ Custom field columns are added to this array by mla_admin_init_action.</p></p>
1018
  <div class="row"><footer class="span12">
1019
  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>
1020
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1021
- generated on 2013-06-30T13:10:24-07:00.<br></footer></div>
1022
  </div>
1023
  </body>
1024
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
69
  <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>
70
  <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>
71
  <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>
72
+ <li class="method public "><a href="#column_file_url" title="column_file_url :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_file_url()</pre></a></li>
73
  <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>
74
  <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>
75
  <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>
98
  <li class="method public "><a href="#mla_get_taxonomy_filter_dropdown" title="mla_get_taxonomy_filter_dropdown :: Get dropdown box of terms to filter by, if available"><span class="description">Get dropdown box of terms to filter by, if available</span><pre>mla_get_taxonomy_filter_dropdown()</pre></a></li>
99
  <li class="method public "><a href="#mla_manage_columns_filter" title="mla_manage_columns_filter :: Handler for filter 'manage_media_page_mla-menu_columns'"><span class="description">Handler for filter 'manage_media_page_mla-menu_columns'</span><pre>mla_manage_columns_filter()</pre></a></li>
100
  <li class="method public "><a href="#mla_manage_hidden_columns_filter" title="mla_manage_hidden_columns_filter :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns_filter()</pre></a></li>
101
+ <li class="method public "><a href="#pagination" title="pagination :: Display the pagination, adding view, search and filter arguments"><span class="description">Display the pagination, adding view, search and filter arguments</span><pre>pagination()</pre></a></li>
102
  <li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying"><span class="description">Prepares the list of items for displaying</span><pre>prepare_items()</pre></a></li>
103
+ <li class="method public "><a href="#print_column_headers" title="print_column_headers :: Print column headers, adding view, search and filter arguments"><span class="description">Print column headers, adding view, search and filter arguments</span><pre>print_column_headers()</pre></a></li>
104
  <li class="method public "><a href="#single_row" title="single_row :: Generates (echoes) content for a single row of the table"><span class="description">Generates (echoes) content for a single row of the table</span><pre>single_row()</pre></a></li>
105
  <li class="nav-header private">» Private</li>
106
  <li class="method private "><a href="#_avail_mime_types" title="_avail_mime_types :: Get MIME types with one or more attachments for view preparation"><span class="description">Get MIME types with one or more attachments for view preparation</span><pre>_avail_mime_types()</pre></a></li>
109
  'ID_parent', 'title_name', 'post_title', 'post_name'"><span class="description">Add rollover actions to exactly one of the following displayed columns:
110
  'ID_parent', 'title_name', 'post_title', 'post_name'</span><pre>_build_rollover_actions()</pre></a></li>
111
  <li class="method private "><a href="#_default_hidden_columns" title="_default_hidden_columns :: Access the default list of hidden columns"><span class="description">Access the default list of hidden columns</span><pre>_default_hidden_columns()</pre></a></li>
112
+ <li class="method private "><a href="#_mla_submenu_arguments" title="_mla_submenu_arguments :: Process $_REQUEST, building $submenu_arguments"><span class="description">Process $_REQUEST, building $submenu_arguments</span><pre>_mla_submenu_arguments()</pre></a></li>
113
  <li class="nav-header">
114
  <i class="icon-custom icon-property"></i> Properties</li>
115
  <li class="nav-header private">» Private</li>
408
  <code>string</code>HTML markup to be placed inside the column</div>
409
  </div></div>
410
  </div>
411
+ <a name="column_file_url" id="column_file_url"></a><div class="element clickable method public column_file_url" data-toggle="collapse" data-target=".column_file_url .collapse">
412
+ <h2>Supply the content for a custom column</h2>
413
+ <pre>column_file_url(array $item) : string</pre>
414
+ <div class="labels"></div>
415
+ <div class="row collapse"><div class="detail-description">
416
+ <p class="long_description"></p>
417
+ <table class="table table-bordered"><tr>
418
+ <th>since</th>
419
+ <td>0.1</td>
420
+ </tr></table>
421
+ <h3>Parameters</h3>
422
+ <div class="subelement argument">
423
+ <h4>$item</h4>
424
+ <code>array</code><p>A singular attachment (post) object</p>
425
+ </div>
426
+ <h3>Returns</h3>
427
+ <div class="subelement response">
428
+ <code>string</code>HTML markup to be placed inside the column</div>
429
+ </div></div>
430
+ </div>
431
  <a name="column_galleries" id="column_galleries"></a><div class="element clickable method public column_galleries" data-toggle="collapse" data-target=".column_galleries .collapse">
432
  <h2>Supply the content for a custom column</h2>
433
  <pre>column_galleries(array $item) : string</pre>
840
  <code>array</code>updated list of hidden columns</div>
841
  </div></div>
842
  </div>
843
+ <a name="pagination" id="pagination"></a><div class="element clickable method public pagination" data-toggle="collapse" data-target=".pagination .collapse">
844
+ <h2>Display the pagination, adding view, search and filter arguments</h2>
845
+ <pre>pagination(string $which) : void</pre>
846
+ <div class="labels"></div>
847
+ <div class="row collapse"><div class="detail-description">
848
+ <p class="long_description"></p>
849
+ <table class="table table-bordered"><tr>
850
+ <th>since</th>
851
+ <td>1.42</td>
852
+ </tr></table>
853
+ <h3>Parameters</h3>
854
+ <div class="subelement argument">
855
+ <h4>$which</h4>
856
+ <code>string</code><p>'top' | 'bottom'</p>
857
+ </div>
858
+ </div></div>
859
+ </div>
860
  <a name="prepare_items" id="prepare_items"></a><div class="element clickable method public prepare_items" data-toggle="collapse" data-target=".prepare_items .collapse">
861
  <h2>Prepares the list of items for displaying</h2>
862
  <pre>prepare_items() : void</pre>
872
  </tr></table>
873
  </div></div>
874
  </div>
875
+ <a name="print_column_headers" id="print_column_headers"></a><div class="element clickable method public print_column_headers" data-toggle="collapse" data-target=".print_column_headers .collapse">
876
+ <h2>Print column headers, adding view, search and filter arguments</h2>
877
+ <pre>print_column_headers(bool $with_id) </pre>
878
+ <div class="labels"></div>
879
+ <div class="row collapse"><div class="detail-description">
880
+ <p class="long_description"></p>
881
+ <table class="table table-bordered"><tr>
882
+ <th>since</th>
883
+ <td>1.42</td>
884
+ </tr></table>
885
+ <h3>Parameters</h3>
886
+ <div class="subelement argument">
887
+ <h4>$with_id</h4>
888
+ <code>bool</code><p>Whether to set the id attribute or not</p></div>
889
+ </div></div>
890
+ </div>
891
  <a name="single_row" id="single_row"></a><div class="element clickable method public single_row" data-toggle="collapse" data-target=".single_row .collapse">
892
  <h2>Generates (echoes) content for a single row of the table</h2>
893
  <pre>single_row(object $item) : void</pre>
983
  <code>array</code>default list of hidden columns</div>
984
  </div></div>
985
  </div>
986
+ <a name="_mla_submenu_arguments" id="_mla_submenu_arguments"></a><div class="element clickable method private _mla_submenu_arguments" data-toggle="collapse" data-target="._mla_submenu_arguments .collapse">
987
+ <h2>Process $_REQUEST, building $submenu_arguments</h2>
988
+ <pre>_mla_submenu_arguments() : array</pre>
989
+ <div class="labels"></div>
990
+ <div class="row collapse"><div class="detail-description">
991
+ <p class="long_description"></p>
992
+ <table class="table table-bordered"><tr>
993
+ <th>since</th>
994
+ <td>1.42</td>
995
+ </tr></table>
996
+ <h3>Returns</h3>
997
+ <div class="subelement response">
998
+ <code>array</code>non-empty view, search, filter and sort arguments</div>
999
+ </div></div>
1000
+ </div>
1001
  <h3>
1002
  <i class="icon-custom icon-property"></i> Properties</h3>
1003
  <a name="%24currently_hidden" id="$currently_hidden"> </a><div class="element clickable property private $currently_hidden" data-toggle="collapse" data-target=".$currently_hidden .collapse">
1092
  <div class="row"><footer class="span12">
1093
  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>
1094
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1095
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
1096
  </div>
1097
  </body>
1098
  </html>
phpDocs/classes/MLA_Upload_List_Table.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -715,7 +717,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
715
  <div class="row"><footer class="span12">
716
  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>
717
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
718
- generated on 2013-06-30T13:10:25-07:00.<br></footer></div>
719
  </div>
720
  </body>
721
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
717
  <div class="row"><footer class="span12">
718
  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>
719
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
720
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
721
  </div>
722
  </body>
723
  </html>
phpDocs/classes/MLA_Upload_Optional_List_Table.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -533,7 +535,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
533
  <div class="row"><footer class="span12">
534
  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>
535
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
536
- generated on 2013-06-30T13:10:25-07:00.<br></footer></div>
537
  </div>
538
  </body>
539
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
535
  <div class="row"><footer class="span12">
536
  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>
537
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
538
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
539
  </div>
540
  </body>
541
  </html>
phpDocs/classes/MLA_View_List_Table.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -612,7 +614,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
612
  <div class="row"><footer class="span12">
613
  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>
614
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
615
- generated on 2013-06-30T13:10:25-07:00.<br></footer></div>
616
  </div>
617
  </body>
618
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
614
  <div class="row"><footer class="span12">
615
  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>
616
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
617
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
618
  </div>
619
  </body>
620
  </html>
phpDocs/deprecated.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -62,7 +64,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 2013-06-30T13:10:25-07:00.<br></footer></div>
66
  </div>
67
  </body>
68
  </html>
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
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 2013-07-31T21:05:23-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
phpDocs/errors.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -81,7 +83,7 @@
81
  <div class="row"><footer class="span12">
82
  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>
83
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
84
- generated on 2013-06-30T13:10:25-07:00.<br></footer></div>
85
  </div>
86
  </body>
87
  </html>
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
83
  <div class="row"><footer class="span12">
84
  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>
85
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
86
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
87
  </div>
88
  </body>
89
  </html>
phpDocs/graph_class.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -59,7 +61,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 2013-06-30T13:10:25-07:00.<br></footer></div>
63
  </div>
64
  </body>
65
  </html>
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
61
  </script><div class="row"><footer class="span12">
62
  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>
63
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
64
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
65
  </div>
66
  </body>
67
  </html>
phpDocs/index.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -70,7 +72,9 @@
70
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
71
  <span class="label label-info">0</span></a></li>
72
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
73
- <ul></ul></a></li>
 
 
74
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
75
  <span class="label label-info">0</span></a></li>
76
  </ul></div>
@@ -79,7 +83,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 2013-06-30T13:10:24-07:00.<br></footer></div>
83
  </div>
84
  </body>
85
  </html>
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
72
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
73
  <span class="label label-info">0</span></a></li>
74
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
75
+ <ul><li>todo 
76
+ <span class="label label-info">1</span>
77
+ </li></ul></a></li>
78
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
79
  <span class="label label-info">0</span></a></li>
80
  </ul></div>
83
  <div class="row"><footer class="span12">
84
  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>
85
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
86
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
87
  </div>
88
  </body>
89
  </html>
phpDocs/markers.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -45,7 +47,10 @@
45
  if Javascript is enabled.
46
  </div></noscript>
47
  <div class="row">
48
- <div class="span4"><ul class="side-nav nav nav-list"><li class="nav-header">Navigation</li></ul></div>
 
 
 
49
  <div class="span8">
50
  <ul class="breadcrumb">
51
  <li>
@@ -53,18 +58,35 @@
53
  </li>
54
  <li>Markers</li>
55
  </ul>
56
- <div class="alert alert-info">No markers have been found in this project.</div>
57
  <div class="alert alert-info">
58
  The following markers were found:
59
- <ul></ul>
 
 
60
  </div>
61
- <div id="marker-accordion"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  </div>
63
  </div>
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 2013-06-30T13:10:25-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
30
  <li><a href="errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
47
  if Javascript is enabled.
48
  </div></noscript>
49
  <div class="row">
50
+ <div class="span4"><ul class="side-nav nav nav-list">
51
+ <li class="nav-header">Navigation</li>
52
+ <li><a href="#includes%5Cclass-mla-data.php"><i class="icon-file"></i>includes\class-mla-data.php</a></li>
53
+ </ul></div>
54
  <div class="span8">
55
  <ul class="breadcrumb">
56
  <li>
58
  </li>
59
  <li>Markers</li>
60
  </ul>
 
61
  <div class="alert alert-info">
62
  The following markers were found:
63
+ <ul><li>todo 
64
+ <span class="label label-info">1</span>
65
+ </li></ul>
66
  </div>
67
+ <div id="marker-accordion"><div class="package-contents">
68
+ <a name="includes%5Cclass-mla-data.php" id="includes\class-mla-data.php"></a><h3>
69
+ <i class="icon-file"></i>includes\class-mla-data.php<small style="float: right;padding-right: 10px;">1</small>
70
+ </h3>
71
+ <div><table class="table markers table-bordered">
72
+ <tr>
73
+ <th>Type</th>
74
+ <th>Line</th>
75
+ <th>Description</th>
76
+ </tr>
77
+ <tr>
78
+ <td>todo</td>
79
+ <td>1745</td>
80
+ <td>encode the rest</td>
81
+ </tr>
82
+ </table></div>
83
+ </div></div>
84
  </div>
85
  </div>
86
  <div class="row"><footer class="span12">
87
  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>
88
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
89
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
90
  </div>
91
  </body>
92
  </html>
phpDocs/namespaces/global.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -222,7 +224,7 @@ searchable database of exension/type associations for the "Uploads" admin settin
222
  <div class="row"><footer class="span12">
223
  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>
224
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
225
- generated on 2013-06-30T13:10:24-07:00.<br></footer></div>
226
  </div>
227
  </body>
228
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
224
  <div class="row"><footer class="span12">
225
  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>
226
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
227
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
228
  </div>
229
  </body>
230
  </html>
phpDocs/packages/Media Library Assistant.html CHANGED
@@ -30,7 +30,9 @@
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
- <ul></ul></a></li>
 
 
34
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
  <span class="label label-info">0</span></a></li>
36
  </ul>
@@ -252,7 +254,7 @@ searchable database of exension/type associations for the "Uploads" admin settin
252
  <div class="row"><footer class="span12">
253
  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>
254
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
255
- generated on 2013-06-30T13:10:24-07:00.<br></footer></div>
256
  </div>
257
  </body>
258
  </html>
30
  <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
  <span class="label label-info">0</span></a></li>
32
  <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul><li>todo 
34
+ <span class="label label-info">1</span>
35
+ </li></ul></a></li>
36
  <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
37
  <span class="label label-info">0</span></a></li>
38
  </ul>
254
  <div class="row"><footer class="span12">
255
  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>
256
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
257
+ generated on 2013-07-31T21:05:23-07:00.<br></footer></div>
258
  </div>
259
  </body>
260
  </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="03a3dfce019a73f10b56b8824d7c6da8" 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>
@@ -68,10 +68,10 @@ any further logic required to translate those values is contained in the filters
68
  </tag>
69
  </docblock>
70
  </property>
71
- <property final="false" static="true" visibility="private" line="1466" namespace="global" package="Media Library Assistant">
72
  <name>$galleries</name>
73
  <default><![CDATA[null]]></default>
74
- <docblock line="1447">
75
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
76
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
77
  and array(s) of which attachments each [gallery] contains. The arrays are built once
@@ -84,111 +84,111 @@ each page load and cached for subsequent calls.</p>
84
  ['galleries'] array of [gallery] entries numbered from one (1), containing:
85
  galleries[X]['query'] contains a string with the arguments of the [gallery],
86
  galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
87
- <tag line="1447" name="since" description="0.70"/>
88
- <tag line="1447" name="var" description="" type="array">
89
  <type by_reference="false">array</type>
90
  </tag>
91
  </docblock>
92
  </property>
93
- <property final="false" static="true" visibility="private" line="1479" namespace="global" package="Media Library Assistant">
94
  <name>$mla_galleries</name>
95
  <default><![CDATA[null]]></default>
96
- <docblock line="1468">
97
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
98
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
99
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
100
  each page load and cached for subsequent calls.</p>]]></long-description>
101
- <tag line="1468" name="since" description="0.70"/>
102
- <tag line="1468" name="var" description="" type="array">
103
  <type by_reference="false">array</type>
104
  </tag>
105
  </docblock>
106
  </property>
107
- <property final="false" static="true" visibility="private" line="1662" namespace="global" package="Media Library Assistant">
108
  <name>$pdf_indirect_objects</name>
109
  <default><![CDATA[NULL]]></default>
110
- <docblock line="1653">
111
  <description><![CDATA[Array of PDF indirect objects]]></description>
112
  <long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths</p>]]></long-description>
113
- <tag line="1653" name="since" description="1.4x"/>
114
- <tag line="1653" name="var" description="" type="array">
115
  <type by_reference="false">array</type>
116
  </tag>
117
  </docblock>
118
  </property>
119
- <property final="false" static="true" visibility="private" line="1874" namespace="global" package="Media Library Assistant">
120
  <name>$utf8_chars</name>
121
  <default><![CDATA[array("\xC2\x80", "\xC2\x81", "\xC2\x82", "\xC2\x83", "\xC2\x84", "\xC2\x85", "\xC2\x86", "\xC2\x87", "\xC2\x88", "\xC2\x89", "\xC2\x8A", "\xC2\x8B", "\xC2\x8C", "\xC2\x8D", "\xC2\x8E", "\xC2\x8F", "\xC2\x90", "\xC2\x91", "\xC2\x92", "\xC2\x93", "\xC2\x94", "\xC2\x95", "\xC2\x96", "\xC2\x97", "\xC2\x98", "\xC2\x99", "\xC2\x9A", "\xC2\x9B", "\xC2\x9C", "\xC2\x9D", "\xC2\x9E", "\xC2\x9F", "\xC2\xA0", "\xC2\xA1", "\xC2\xA2", "\xC2\xA3", "\xC2\xA4", "\xC2\xA5", "\xC2\xA6", "\xC2\xA7", "\xC2\xA8", "\xC2\xA9", "\xC2\xAA", "\xC2\xAB", "\xC2\xAC", "\xC2\xAD", "\xC2\xAE", "\xC2\xAF", "\xC2\xB0", "\xC2\xB1", "\xC2\xB2", "\xC2\xB3", "\xC2\xB4", "\xC2\xB5", "\xC2\xB6", "\xC2\xB7", "\xC2\xB8", "\xC2\xB9", "\xC2\xBA", "\xC2\xBB", "\xC2\xBC", "\xC2\xBD", "\xC2\xBE", "\xC2\xBF", "\xC3\x80", "\xC3\x81", "\xC3\x82", "\xC3\x83", "\xC3\x84", "\xC3\x85", "\xC3\x86", "\xC3\x87", "\xC3\x88", "\xC3\x89", "\xC3\x8A", "\xC3\x8B", "\xC3\x8C", "\xC3\x8D", "\xC3\x8E", "\xC3\x8F", "\xC3\x90", "\xC3\x91", "\xC3\x92", "\xC3\x93", "\xC3\x94", "\xC3\x95", "\xC3\x96", "\xC3\x97", "\xC3\x98", "\xC3\x99", "\xC3\x9A", "\xC3\x9B", "\xC3\x9C", "\xC3\x9D", "\xC3\x9E", "\xC3\x9F", "\xC3\xA0", "\xC3\xA1", "\xC3\xA2", "\xC3\xA3", "\xC3\xA4", "\xC3\xA5", "\xC3\xA6", "\xC3\xA7", "\xC3\xA8", "\xC3\xA9", "\xC3\xAA", "\xC3\xAB", "\xC3\xAC", "\xC3\xAD", "\xC3\xAE", "\xC3\xAF", "\xC3\xB0", "\xC3\xB1", "\xC3\xB2", "\xC3\xB3", "\xC3\xB4", "\xC3\xB5", "\xC3\xB6", "\xC3\xB7", "\xC3\xB8", "\xC3\xB9", "\xC3\xBA", "\xC3\xBB", "\xC3\xBC", "\xC3\xBD", "\xC3\xBE", "\xC3\xBF")]]></default>
122
- <docblock line="1867">
123
  <description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
124
  <long-description><![CDATA[]]></long-description>
125
- <tag line="1867" name="since" description="1.41"/>
126
- <tag line="1867" name="var" description="" type="array">
127
  <type by_reference="false">array</type>
128
  </tag>
129
  </docblock>
130
  </property>
131
- <property final="false" static="true" visibility="private" line="1931" namespace="global" package="Media Library Assistant">
132
  <name>$mla_iptc_records</name>
133
  <default><![CDATA[array("1#000" => "Model Version", "1#005" => "Destination", "1#020" => "File Format", "1#022" => "File Format Version", "1#030" => "Service Identifier", "1#040" => "Envelope Number", "1#050" => "Product ID", "1#060" => "Envelope Priority", "1#070" => "Date Sent", "1#080" => "Time Sent", "1#090" => "Coded Character Set", "1#100" => "UNO", "1#120" => "ARM Identifier", "1#122" => "ARM Version", "2#000" => "Record Version", "2#003" => "Object Type Reference", "2#004" => "Object Attribute Reference", "2#005" => "Object Name", "2#007" => "Edit Status", "2#008" => "Editorial Update", "2#010" => "Urgency", "2#012" => "Subject Reference", "2#015" => "Category", "2#020" => "Supplemental Category", "2#022" => "Fixture Identifier", "2#025" => "Keywords", "2#026" => "Content Location Code", "2#027" => "Content Location Name", "2#030" => "Release Date", "2#035" => "Release Time", "2#037" => "Expiration Date", "2#038" => "Expiration Time", "2#040" => "Special Instructions", "2#042" => "Action Advised", "2#045" => "Reference Service", "2#047" => "Reference Date", "2#050" => "Reference Number", "2#055" => "Date Created", "2#060" => "Time Created", "2#062" => "Digital Creation Date", "2#063" => "Digital Creation Time", "2#065" => "Originating Program", "2#070" => "Program Version", "2#075" => "Object Cycle", "2#080" => "By-line", "2#085" => "By-line Title", "2#090" => "City", "2#092" => "Sub-location", "2#095" => "Province or State", "2#100" => "Country or Primary Location Code", "2#101" => "Country or Primary Location Name", "2#103" => "Original Transmission Reference", "2#105" => "Headline", "2#110" => "Credit", "2#115" => "Source", "2#116" => "Copyright Notice", "2#118" => "Contact", "2#120" => "Caption or Abstract", "2#122" => "Caption Writer or Editor", "2#125" => "Rasterized Caption", "2#130" => "Image Type", "2#131" => "Image Orientation", "2#135" => "Language Identifier", "2#150" => "Audio Type", "2#151" => "Audio Sampling Rate", "2#152" => "Audio Sampling Resolution", "2#153" => "Audio Duration", "2#154" => "Audio Outcue", "2#200" => "ObjectData Preview File Format", "2#201" => "ObjectData Preview File Format Version", "2#202" => "ObjectData Preview Data", "7#010" => "Size Mode", "7#020" => "Max Subfile Size", "7#090" => "ObjectData Size Announced", "7#095" => "Maximum ObjectData Size", "8#010" => "Subfile", "9#010" => "Confirmed ObjectData Size")]]></default>
134
- <docblock line="1921">
135
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
136
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
137
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
138
- <tag line="1921" name="since" description="0.90"/>
139
- <tag line="1921" name="var" description="" type="array">
140
  <type by_reference="false">array</type>
141
  </tag>
142
  </docblock>
143
  </property>
144
- <property final="false" static="true" visibility="public" line="2030" namespace="global" package="Media Library Assistant">
145
  <name>$mla_iptc_keys</name>
146
  <default><![CDATA[array('model-version' => '1#000', 'destination' => '1#005', 'file-format' => '1#020', 'file-format-version' => '1#022', 'service-identifier' => '1#030', 'envelope-number' => '1#040', 'product-id' => '1#050', 'envelope-priority' => '1#060', 'date-sent' => '1#070', 'time-sent' => '1#080', 'coded-character-set' => '1#090', 'uno' => '1#100', 'arm-identifier' => '1#120', 'arm-version' => '1#122', 'record-version' => '2#000', 'object-type-reference' => '2#003', 'object-attribute-reference' => '2#004', 'object-name' => '2#005', 'edit-status' => '2#007', 'editorial-update' => '2#008', 'urgency' => '2#010', 'subject-reference' => '2#012', 'category' => '2#015', 'supplemental-category' => '2#020', 'fixture-identifier' => '2#022', 'keywords' => '2#025', 'content-location-code' => '2#026', 'content-location-name' => '2#027', 'release-date' => '2#030', 'release-time' => '2#035', 'expiration-date' => '2#037', 'expiration-time' => '2#038', 'special-instructions' => '2#040', 'action-advised' => '2#042', 'reference-service' => '2#045', 'reference-date' => '2#047', 'reference-number' => '2#050', 'date-created' => '2#055', 'time-created' => '2#060', 'digital-creation-date' => '2#062', 'digital-creation-time' => '2#063', 'originating-program' => '2#065', 'program-version' => '2#070', 'object-cycle' => '2#075', 'by-line' => '2#080', 'by-line-title' => '2#085', 'city' => '2#090', 'sub-location' => '2#092', 'province-or-state' => '2#095', 'country-or-primary-location-code' => '2#100', 'country-or-primary-location-name' => '2#101', 'original-transmission-reference' => '2#103', 'headline' => '2#105', 'credit' => '2#110', 'source' => '2#115', 'copyright-notice' => '2#116', 'contact' => '2#118', 'caption-or-abstract' => '2#120', 'caption-writer-or-editor' => '2#122', 'rasterized-caption' => '2#125', 'image-type' => '2#130', 'image-orientation' => '2#131', 'language-identifier' => '2#135', 'audio-type' => '2#150', 'audio-sampling-rate' => '2#151', 'audio-sampling-resolution' => '2#152', 'audio-duration' => '2#153', 'audio-outcue' => '2#154', 'objectdata-preview-file-format' => '2#200', 'objectdata-preview-file-format-version' => '2#201', 'objectdata-preview-data' => '2#202', 'size-mode' => '7#010', 'max-subfile-size' => '7#020', 'objectdata-size-announced' => '7#090', 'maximum-objectdata-size' => '7#095', 'subfile' => '8#010', 'confirmed-objectdata-size' => '9#010')]]></default>
147
- <docblock line="2020">
148
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
149
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
150
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
151
- <tag line="2020" name="since" description="0.90"/>
152
- <tag line="2020" name="var" description="" type="array">
153
  <type by_reference="false">array</type>
154
  </tag>
155
  </docblock>
156
  </property>
157
- <property final="false" static="true" visibility="private" line="2129" namespace="global" package="Media Library Assistant">
158
  <name>$mla_iptc_descriptions</name>
159
  <default><![CDATA[array("1#000" => "2 octet binary IIM version number", "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable", "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A", "1#022" => "2 octet binary file format version number", "1#030" => "Max 10 characters of Service Identifier and product", "1#040" => "8 Character Envelope Number", "1#050" => "Max 32 characters subset of provider's overall service; repeatable", "1#060" => "1 numeric character of envelope handling priority (not urgency)", "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD", "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM", "1#090" => "Max 32 characters of control functions, etc.", "1#100" => "14 to 80 characters of eternal, globally unique identification for objects", "1#120" => "2 octet binary Abstract Relationship Model Identifier", "1#122" => "2 octet binary Abstract Relationship Model Version", "2#000" => "2 octet binary Information Interchange Model, Part II version number", "2#003" => "3 to 67 Characters of Object Type Reference number and optional text", "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable", "2#005" => "Max 64 characters of the object name or shorthand reference", "2#007" => "Max 64 characters of the status of the objectdata", "2#008" => "2 numeric characters of the type of update this object provides", "2#010" => "1 numeric character of the editorial urgency of content", "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable", "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED", "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable", "2#022" => "Max 32 characters identifying recurring, predictable content", "2#025" => "Max 64 characters (each) of tags; repeatable", "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable", "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable", "2#030" => "8 numeric characters of Release Date - CCYYMMDD", "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM", "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD", "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM", "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings", "2#042" => "2 numeric characters of type of action this object provides to a previous object", "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable", "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable", "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable", "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD", "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM", "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD", "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM", "2#065" => "Max 32 characters of the program used to create the objectdata", "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata", "2#075" => "1 character where a=morning, p=evening, b=both", "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable", "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable", "2#090" => "Max 32 Characters of the city of objectdata origin", "2#092" => "Max 32 Characters of the location within the city of objectdata origin", "2#095" => "Max 32 Characters of the objectdata origin Province or State", "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin", "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin", "2#103" => "Max 32 characters of a code representing the location of original transmission", "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata", "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)", "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content", "2#116" => "Max 128 Characters that contains any necessary copyright notice", "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable", "2#120" => "Max 2000 Characters of a textual description of the objectdata", "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable", "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image", "2#130" => "2 characters of color composition type and information", "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square", "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes", "2#150" => "2 characters identifying monaural/stereo and exact type of audio content", "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)", "2#152" => "2 numeric characters representing the number of bits in each audio sample", "2#153" => "6 numeric characters of the Audio Duration - HHMMSS", "2#154" => "Max 64 characters of the content of the end of an audio objectdata", "2#200" => "2 octet binary file format of the ObjectData Preview", "2#201" => "2 octet binary particular version of the ObjectData Preview File Format", "2#202" => "Max 256000 binary octets containing the ObjectData Preview data", "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer", "7#020" => "4 octet binary maximum subfile dataset(s) size", "7#090" => "4 octet binary objectdata size if known at beginning of transfer", "7#095" => "4 octet binary largest possible objectdata size", "8#010" => "Subfile DataSet containing the objectdata itself; repeatable", "9#010" => "4 octet binary total objectdata size")]]></default>
160
- <docblock line="2119">
161
  <description><![CDATA[IPTC Dataset descriptions]]></description>
162
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
163
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
164
- <tag line="2119" name="since" description="0.90"/>
165
- <tag line="2119" name="var" description="" type="array">
166
  <type by_reference="false">array</type>
167
  </tag>
168
  </docblock>
169
  </property>
170
- <property final="false" static="true" visibility="private" line="2228" namespace="global" package="Media Library Assistant">
171
  <name>$mla_iptc_formats</name>
172
  <default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 0 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 0 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
173
- <docblock line="2218">
174
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
175
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
176
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
177
- <tag line="2218" name="since" description="0.90"/>
178
- <tag line="2218" name="var" description="" type="array">
179
  <type by_reference="false">array</type>
180
  </tag>
181
  </docblock>
182
  </property>
183
- <property final="false" static="true" visibility="private" line="2271" namespace="global" package="Media Library Assistant">
184
  <name>$mla_iptc_image_types</name>
185
  <default><![CDATA[array("M" => "Monochrome", "Y" => "Yellow Component", "M" => "Magenta Component", "C" => "Cyan Component", "K" => "Black Component", "R" => "Red Component", "G" => "Green Component", "B" => "Blue Component", "T" => "Text Only", "F" => "Full colour composite, frame sequential", "L" => "Full colour composite, line sequential", "P" => "Full colour composite, pixel sequential", "S" => "Full colour composite, special interleaving")]]></default>
186
- <docblock line="2261">
187
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
188
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
189
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
190
- <tag line="2261" name="since" description="0.90"/>
191
- <tag line="2261" name="var" description="" type="array">
192
  <type by_reference="false">array</type>
193
  </tag>
194
  </docblock>
@@ -429,678 +429,790 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-descri
429
  <type/>
430
  </argument>
431
  </method>
432
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="650" package="Media Library Assistant">
433
  <name>_execute_list_table_query</name>
434
  <full_name>_execute_list_table_query</full_name>
435
- <docblock line="641">
436
  <description><![CDATA[Add filters, run query, remove filters]]></description>
437
  <long-description><![CDATA[]]></long-description>
438
- <tag line="641" name="since" description="0.30"/>
439
- <tag line="641" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
440
  <type by_reference="false">array</type>
441
  </tag>
442
- <tag line="641" name="return" description="WP_Query object with query results" type="object">
443
  <type by_reference="false">object</type>
444
  </tag>
445
  </docblock>
446
- <argument line="650">
447
  <name>$request</name>
448
  <default><![CDATA[]]></default>
449
  <type/>
450
  </argument>
451
  </method>
452
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="727" package="Media Library Assistant">
453
  <name>mla_query_posts_search_filter</name>
454
  <full_name>mla_query_posts_search_filter</full_name>
455
- <docblock line="715">
456
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
457
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
458
- <tag line="715" name="since" description="0.60"/>
459
- <tag line="715" name="param" description="query clause before modification" type="string" variable="$search_string">
460
  <type by_reference="false">string</type>
461
  </tag>
462
- <tag line="715" name="param" description="WP_Query object" type="object" variable="$query_object">
463
  <type by_reference="false">object</type>
464
  </tag>
465
- <tag line="715" name="return" description="query clause after keyword search addition" type="string">
466
  <type by_reference="false">string</type>
467
  </tag>
468
  </docblock>
469
- <argument line="727">
470
  <name>$search_string</name>
471
  <default><![CDATA[]]></default>
472
  <type/>
473
  </argument>
474
- <argument line="727">
475
  <name>$query_object</name>
476
  <default><![CDATA[]]></default>
477
  <type/>
478
  </argument>
479
  </method>
480
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="838" package="Media Library Assistant">
481
  <name>mla_query_posts_join_filter</name>
482
  <full_name>mla_query_posts_join_filter</full_name>
483
- <docblock line="827">
484
  <description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
485
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
486
- <tag line="827" name="since" description="0.30"/>
487
- <tag line="827" name="param" description="query clause before modification" type="string" variable="$join_clause">
488
  <type by_reference="false">string</type>
489
  </tag>
490
- <tag line="827" name="return" description="query clause after &quot;LEFT JOIN view ON post_id&quot; item modification" type="string">
491
  <type by_reference="false">string</type>
492
  </tag>
493
  </docblock>
494
- <argument line="838">
495
  <name>$join_clause</name>
496
  <default><![CDATA[]]></default>
497
  <type/>
498
  </argument>
499
  </method>
500
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="865" package="Media Library Assistant">
501
  <name>mla_query_posts_where_filter</name>
502
  <full_name>mla_query_posts_where_filter</full_name>
503
- <docblock line="853">
504
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
505
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
506
  Defined as public because it's a filter.</p>]]></long-description>
507
- <tag line="853" name="since" description="0.1"/>
508
- <tag line="853" name="param" description="query clause before modification" type="string" variable="$where_clause">
509
  <type by_reference="false">string</type>
510
  </tag>
511
- <tag line="853" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
512
  <type by_reference="false">string</type>
513
  </tag>
514
  </docblock>
515
- <argument line="865">
516
  <name>$where_clause</name>
517
  <default><![CDATA[]]></default>
518
  <type/>
519
  </argument>
520
  </method>
521
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="913" package="Media Library Assistant">
522
  <name>mla_query_posts_orderby_filter</name>
523
  <full_name>mla_query_posts_orderby_filter</full_name>
524
- <docblock line="901">
525
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
526
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
527
  Defined as public because it's a filter.</p>]]></long-description>
528
- <tag line="901" name="since" description="0.30"/>
529
- <tag line="901" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
530
  <type by_reference="false">string</type>
531
  </tag>
532
- <tag line="901" name="return" description="updated query clause" type="string">
533
  <type by_reference="false">string</type>
534
  </tag>
535
  </docblock>
536
- <argument line="913">
537
  <name>$orderby_clause</name>
538
  <default><![CDATA[]]></default>
539
  <type/>
540
  </argument>
541
  </method>
542
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="972" package="Media Library Assistant">
543
  <name>mla_get_attachment_by_id</name>
544
  <full_name>mla_get_attachment_by_id</full_name>
545
- <docblock line="960">
546
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
547
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
548
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
549
- <tag line="960" name="since" description="0.1"/>
550
- <tag line="960" name="uses" description="\global\$post" refers="\global\$post"/>
551
- <tag line="960" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
552
  <type by_reference="false">int</type>
553
  </tag>
554
- <tag line="960" name="return" description="NULL on failure else associative array" type="NULL|array">
555
  <type by_reference="false">NULL</type>
556
  <type by_reference="false">array</type>
557
  </tag>
558
  </docblock>
559
- <argument line="972">
560
  <name>$post_id</name>
561
  <default><![CDATA[]]></default>
562
  <type/>
563
  </argument>
564
  </method>
565
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1026" package="Media Library Assistant">
566
  <name>mla_fetch_attachment_parent_data</name>
567
  <full_name>mla_fetch_attachment_parent_data</full_name>
568
- <docblock line="1017">
569
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
570
  <long-description><![CDATA[]]></long-description>
571
- <tag line="1017" name="since" description="0.1"/>
572
- <tag line="1017" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
573
  <type by_reference="false">int</type>
574
  </tag>
575
- <tag line="1017" name="return" description="Parent information; post_date, post_title and post_type" type="array">
576
  <type by_reference="false">array</type>
577
  </tag>
578
  </docblock>
579
- <argument line="1026">
580
  <name>$parent_id</name>
581
  <default><![CDATA[]]></default>
582
  <type/>
583
  </argument>
584
  </method>
585
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1062" package="Media Library Assistant">
586
  <name>mla_find_array_element</name>
587
  <full_name>mla_find_array_element</full_name>
588
- <docblock line="1047">
589
  <description><![CDATA[Finds the value of a key in a possibily nested array structure]]></description>
590
  <long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
591
  Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
592
- <tag line="1047" name="since" description="1.30"/>
593
- <tag line="1047" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
594
  <type by_reference="false">string</type>
595
  </tag>
596
- <tag line="1047" name="param" description="PHP nested arrays" type="array" variable="$haystack">
597
  <type by_reference="false">array</type>
598
  </tag>
599
- <tag line="1047" name="param" description="format option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
600
  <type by_reference="false">string</type>
601
  </tag>
602
- <tag line="1047" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
603
  <type by_reference="false">boolean</type>
604
  </tag>
605
- <tag line="1047" name="return" description="value matching key(.key ...) or ''" type="string">
606
  <type by_reference="false">string</type>
607
  </tag>
608
  </docblock>
609
- <argument line="1062">
610
  <name>$needle</name>
611
  <default><![CDATA[]]></default>
612
  <type/>
613
  </argument>
614
- <argument line="1062">
615
  <name>$haystack</name>
616
  <default><![CDATA[]]></default>
617
  <type/>
618
  </argument>
619
- <argument line="1062">
620
  <name>$option</name>
621
  <default><![CDATA[]]></default>
622
  <type/>
623
  </argument>
624
- <argument line="1062">
625
  <name>$keep_existing</name>
626
  <default><![CDATA[false]]></default>
627
  <type/>
628
  </argument>
629
  </method>
630
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1114" package="Media Library Assistant">
631
  <name>mla_fetch_attachment_metadata</name>
632
  <full_name>mla_fetch_attachment_metadata</full_name>
633
- <docblock line="1101">
634
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
635
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
636
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
637
  a string containing the first array element.</p>]]></long-description>
638
- <tag line="1101" name="since" description="0.1"/>
639
- <tag line="1101" name="param" description="post ID of attachment" type="int" variable="$post_id">
640
  <type by_reference="false">int</type>
641
  </tag>
642
- <tag line="1101" name="return" description="Meta data variables" type="array">
643
  <type by_reference="false">array</type>
644
  </tag>
645
  </docblock>
646
- <argument line="1114">
647
  <name>$post_id</name>
648
  <default><![CDATA[]]></default>
649
  <type/>
650
  </argument>
651
  </method>
652
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1186" package="Media Library Assistant">
653
  <name>mla_fetch_attachment_references</name>
654
  <full_name>mla_fetch_attachment_references</full_name>
655
- <docblock line="1173">
656
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
657
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
658
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
659
- <tag line="1173" name="since" description="0.1"/>
660
- <tag line="1173" name="param" description="post ID of attachment" type="int" variable="$ID">
661
  <type by_reference="false">int</type>
662
  </tag>
663
- <tag line="1173" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
664
  <type by_reference="false">int</type>
665
  </tag>
666
- <tag line="1173" name="return" description="Reference information; see $references array comments" type="array">
667
  <type by_reference="false">array</type>
668
  </tag>
669
  </docblock>
670
- <argument line="1186">
671
  <name>$ID</name>
672
  <default><![CDATA[]]></default>
673
  <type/>
674
  </argument>
675
- <argument line="1186">
676
  <name>$parent</name>
677
  <default><![CDATA[]]></default>
678
  <type/>
679
  </argument>
680
  </method>
681
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1490" package="Media Library Assistant">
682
  <name>mla_flush_mla_galleries</name>
683
  <full_name>mla_flush_mla_galleries</full_name>
684
- <docblock line="1481">
685
  <description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
686
  <long-description><![CDATA[]]></long-description>
687
- <tag line="1481" name="since" description="1.00"/>
688
- <tag line="1481" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
689
  <type by_reference="false">string</type>
690
  </tag>
691
- <tag line="1481" name="return" description="" type="void">
692
  <type by_reference="false">void</type>
693
  </tag>
694
  </docblock>
695
- <argument line="1490">
696
  <name>$option_name</name>
697
  <default><![CDATA[]]></default>
698
  <type/>
699
  </argument>
700
  </method>
701
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1514" package="Media Library Assistant">
702
  <name>mla_save_post_action</name>
703
  <full_name>mla_save_post_action</full_name>
704
- <docblock line="1505">
705
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
706
  <long-description><![CDATA[]]></long-description>
707
- <tag line="1505" name="since" description="1.00"/>
708
- <tag line="1505" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
709
  <type by_reference="false">integer</type>
710
  </tag>
711
- <tag line="1505" name="return" description="" type="void">
712
  <type by_reference="false">void</type>
713
  </tag>
714
  </docblock>
715
- <argument line="1514">
716
  <name>$post_id</name>
717
  <default><![CDATA[]]></default>
718
  <type/>
719
  </argument>
720
  </method>
721
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1531" package="Media Library Assistant">
722
  <name>_build_mla_galleries</name>
723
  <full_name>_build_mla_galleries</full_name>
724
- <docblock line="1519">
725
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
726
  <long-description><![CDATA[]]></long-description>
727
- <tag line="1519" name="since" description="0.70"/>
728
- <tag line="1519" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
729
  <type by_reference="false">string</type>
730
  </tag>
731
- <tag line="1519" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
732
  <type by_reference="false">array</type>
733
  </tag>
734
- <tag line="1519" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
735
  <type by_reference="false">string</type>
736
  </tag>
737
- <tag line="1519" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
738
  <type by_reference="false">boolean</type>
739
  </tag>
740
- <tag line="1519" name="return" description="true if the galleries array is not empty" type="boolean">
741
  <type by_reference="false">boolean</type>
742
  </tag>
743
  </docblock>
744
- <argument line="1531">
745
  <name>$option_name</name>
746
  <default><![CDATA[]]></default>
747
  <type/>
748
  </argument>
749
- <argument line="1531">
750
  <name>$galleries_array</name>
751
  <default><![CDATA[]]></default>
752
  <type/>
753
  </argument>
754
- <argument line="1531">
755
  <name>$shortcode</name>
756
  <default><![CDATA[]]></default>
757
  <type/>
758
  </argument>
759
- <argument line="1531">
760
  <name>$exclude_revisions</name>
761
  <default><![CDATA[]]></default>
762
  <type/>
763
  </argument>
764
  </method>
765
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1640" package="Media Library Assistant">
766
  <name>_search_mla_galleries</name>
767
  <full_name>_search_mla_galleries</full_name>
768
- <docblock line="1629">
769
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
770
  <long-description><![CDATA[]]></long-description>
771
- <tag line="1629" name="since" description="0.70"/>
772
- <tag line="1629" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
773
  <type by_reference="false">array</type>
774
  </tag>
775
- <tag line="1629" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
776
  <type by_reference="false">int</type>
777
  </tag>
778
- <tag line="1629" 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">
779
  <type by_reference="false">array</type>
780
  </tag>
781
  </docblock>
782
- <argument line="1640">
783
  <name>$galleries_array</name>
784
  <default><![CDATA[]]></default>
785
  <type/>
786
  </argument>
787
- <argument line="1640">
788
  <name>$attachment_id</name>
789
  <default><![CDATA[]]></default>
790
  <type/>
791
  </argument>
792
  </method>
793
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1674" package="Media Library Assistant">
794
  <name>_build_pdf_indirect_objects</name>
795
  <full_name>_build_pdf_indirect_objects</full_name>
796
- <docblock line="1664">
797
  <description><![CDATA[Build an array of indirect object definitions]]></description>
798
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
799
- <tag line="1664" name="since" description="1.4x"/>
800
- <tag line="1664" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
801
  <type by_reference="false">string</type>
802
  </tag>
803
- <tag line="1664" name="return" description="" type="void">
804
  <type by_reference="false">void</type>
805
  </tag>
806
  </docblock>
807
- <argument line="1674">
808
  <name>$string</name>
809
  <default><![CDATA[]]></default>
810
  <type/>
811
  </argument>
812
  </method>
813
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1728" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
814
  <name>_parse_pdf_dictionary</name>
815
  <full_name>_parse_pdf_dictionary</full_name>
816
- <docblock line="1718">
817
  <description><![CDATA[Parse a PDF dictionary object]]></description>
818
- <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string), indirect (object), name, array, dictionary, stream, and null.</p>]]></long-description>
819
- <tag line="1718" name="since" description="1.4x"/>
820
- <tag line="1718" name="param" description="dictionary content, without enclosing &lt;&lt; and &gt;&gt; delimiters" type="string" variable="$string">
 
 
 
821
  <type by_reference="false">string</type>
822
  </tag>
823
- <tag line="1718" name="return" description="( key =&gt; array( 'type' =&gt; type, 'value' =&gt; value ) ) for each dictionary field" type="array">
 
 
 
824
  <type by_reference="false">array</type>
825
  </tag>
826
  </docblock>
827
- <argument line="1728">
828
- <name>$string</name>
 
 
 
 
 
829
  <default><![CDATA[]]></default>
830
  <type/>
831
  </argument>
832
  </method>
833
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1817" package="Media Library Assistant">
834
  <name>_extract_pdf_metadata</name>
835
  <full_name>_extract_pdf_metadata</full_name>
836
- <docblock line="1808">
837
  <description><![CDATA[Extract Metadata from a PDF file]]></description>
838
  <long-description><![CDATA[]]></long-description>
839
- <tag line="1808" name="since" description="1.4x"/>
840
- <tag line="1808" name="param" description="full path to the desired file" type="string" variable="$string">
841
  <type by_reference="false">string</type>
842
  </tag>
843
- <tag line="1808" name="return" description="( key =&gt; value ) for each metadata field, in string format" type="array">
844
  <type by_reference="false">array</type>
845
  </tag>
846
  </docblock>
847
- <argument line="1817">
848
  <name>$string</name>
849
  <default><![CDATA[]]></default>
850
  <type/>
851
  </argument>
852
  </method>
853
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1902" package="Media Library Assistant">
854
  <name>_bin_to_utf8</name>
855
  <full_name>_bin_to_utf8</full_name>
856
- <docblock line="1893">
857
  <description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
858
  <long-description><![CDATA[]]></long-description>
859
- <tag line="1893" name="since" description="1.41"/>
860
- <tag line="1893" name="param" description="unencoded string" type="string" variable="$string">
861
  <type by_reference="false">string</type>
862
  </tag>
863
- <tag line="1893" name="return" description="UTF-8 encoded string" type="string">
864
  <type by_reference="false">string</type>
865
  </tag>
866
  </docblock>
867
- <argument line="1902">
868
  <name>$string</name>
869
  <default><![CDATA[]]></default>
870
  <type/>
871
  </argument>
872
  </method>
873
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2299" package="Media Library Assistant">
874
  <name>mla_iptc_metadata_value</name>
875
  <full_name>mla_iptc_metadata_value</full_name>
876
- <docblock line="2287">
877
  <description><![CDATA[Parse one IPTC metadata field]]></description>
878
  <long-description><![CDATA[<p>Returns a string value, converting array data to a string as necessary.</p>]]></long-description>
879
- <tag line="2287" name="since" description="1.41"/>
880
- <tag line="2287" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
881
  <type by_reference="false">string</type>
882
  </tag>
883
- <tag line="2287" name="param" description="metadata array containing 'mla_iptc_metadata' array" type="string" variable="$image_metadata">
884
  <type by_reference="false">string</type>
885
  </tag>
886
- <tag line="2287" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
887
  <type by_reference="false">mixed</type>
888
  </tag>
889
  </docblock>
890
- <argument line="2299">
891
  <name>$iptc_key</name>
892
  <default><![CDATA[]]></default>
893
  <type/>
894
  </argument>
895
- <argument line="2299">
896
- <name>$image_metadata</name>
897
  <default><![CDATA[]]></default>
898
  <type/>
899
  </argument>
900
  </method>
901
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2332" package="Media Library Assistant">
902
  <name>mla_exif_metadata_value</name>
903
  <full_name>mla_exif_metadata_value</full_name>
904
- <docblock line="2319">
905
  <description><![CDATA[Parse one EXIF metadata field]]></description>
906
  <long-description><![CDATA[<p>Returns a string value, converting array data to a string as necessary.
907
  Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
908
- <tag line="2319" name="since" description="1.13"/>
909
- <tag line="2319" name="param" description="field name" type="string" variable="$exif_key">
910
  <type by_reference="false">string</type>
911
  </tag>
912
- <tag line="2319" name="param" description="metadata array containing 'mla_exif_metadata' and 'mla_iptc_metadata' arrays" type="string" variable="$image_metadata">
913
  <type by_reference="false">string</type>
914
  </tag>
915
- <tag line="2319" name="return" description="string representation of metadata value or an empty string" type="string">
916
  <type by_reference="false">string</type>
917
  </tag>
918
  </docblock>
919
- <argument line="2332">
920
  <name>$exif_key</name>
921
  <default><![CDATA[]]></default>
922
  <type/>
923
  </argument>
924
- <argument line="2332">
925
- <name>$image_metadata</name>
926
  <default><![CDATA[]]></default>
927
  <type/>
928
  </argument>
929
  </method>
930
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2391" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
931
  <name>mla_fetch_attachment_image_metadata</name>
932
  <full_name>mla_fetch_attachment_image_metadata</full_name>
933
- <docblock line="2379">
934
  <description><![CDATA[Fetch and filter IPTC and EXIF meta data for an image attachment]]></description>
935
  <long-description><![CDATA[<p>Returns</p>]]></long-description>
936
- <tag line="2379" name="since" description="0.90"/>
937
- <tag line="2379" name="param" description="post ID of attachment" type="int" variable="$post_id">
938
  <type by_reference="false">int</type>
939
  </tag>
940
- <tag line="2379" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
941
  <type by_reference="false">string</type>
942
  </tag>
943
- <tag line="2379" name="return" description="Meta data variables" type="array">
944
  <type by_reference="false">array</type>
945
  </tag>
946
  </docblock>
947
- <argument line="2391">
948
  <name>$post_id</name>
949
  <default><![CDATA[]]></default>
950
  <type/>
951
  </argument>
952
- <argument line="2391">
953
  <name>$path</name>
954
  <default><![CDATA['']]></default>
955
  <type/>
956
  </argument>
957
  </method>
958
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2459" package="Media Library Assistant">
959
  <name>mla_update_item_postmeta</name>
960
  <full_name>mla_update_item_postmeta</full_name>
961
- <docblock line="2449">
962
  <description><![CDATA[Update custom field data for a single attachment.]]></description>
963
  <long-description><![CDATA[]]></long-description>
964
- <tag line="2449" name="since" description="1.40"/>
965
- <tag line="2449" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
966
  <type by_reference="false">int</type>
967
  </tag>
968
- <tag line="2449" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
969
  <type by_reference="false">array</type>
970
  </tag>
971
- <tag line="2449" name="return" description="success/failure message(s)" type="string">
972
  <type by_reference="false">string</type>
973
  </tag>
974
  </docblock>
975
- <argument line="2459">
976
  <name>$post_id</name>
977
  <default><![CDATA[]]></default>
978
  <type/>
979
  </argument>
980
- <argument line="2459">
981
  <name>$new_meta</name>
982
  <default><![CDATA[]]></default>
983
  <type/>
984
  </argument>
985
  </method>
986
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2587" package="Media Library Assistant">
987
  <name>mla_update_single_item</name>
988
  <full_name>mla_update_single_item</full_name>
989
- <docblock line="2574">
990
  <description><![CDATA[Update a single item; change the meta data
991
  for a single attachment.]]></description>
992
  <long-description><![CDATA[]]></long-description>
993
- <tag line="2574" name="since" description="0.1"/>
994
- <tag line="2574" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
995
  <type by_reference="false">int</type>
996
  </tag>
997
- <tag line="2574" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
998
  <type by_reference="false">array</type>
999
  </tag>
1000
- <tag line="2574" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
1001
  <type by_reference="false">array</type>
1002
  </tag>
1003
- <tag line="2574" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
1004
  <type by_reference="false">array</type>
1005
  </tag>
1006
- <tag line="2574" name="return" description="success/failure message and NULL content" type="array">
1007
  <type by_reference="false">array</type>
1008
  </tag>
1009
  </docblock>
1010
- <argument line="2587">
1011
  <name>$post_id</name>
1012
  <default><![CDATA[]]></default>
1013
  <type/>
1014
  </argument>
1015
- <argument line="2587">
1016
  <name>$new_data</name>
1017
  <default><![CDATA[]]></default>
1018
  <type/>
1019
  </argument>
1020
- <argument line="2587">
1021
  <name>$tax_input</name>
1022
  <default><![CDATA[NULL]]></default>
1023
  <type/>
1024
  </argument>
1025
- <argument line="2587">
1026
  <name>$tax_actions</name>
1027
  <default><![CDATA[NULL]]></default>
1028
  <type/>
1029
  </argument>
1030
  </method>
1031
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2801" package="Media Library Assistant">
1032
  <name>_remove_tags</name>
1033
  <full_name>_remove_tags</full_name>
1034
- <docblock line="2790">
1035
  <description><![CDATA[Remove tags from a term ids list]]></description>
1036
  <long-description><![CDATA[]]></long-description>
1037
- <tag line="2790" name="since" description="0.40"/>
1038
- <tag line="2790" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
1039
  <type by_reference="false">array</type>
1040
  </tag>
1041
- <tag line="2790" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
1042
  <type by_reference="false">array</type>
1043
  </tag>
1044
- <tag line="2790" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
1045
  <type by_reference="false">object</type>
1046
  </tag>
1047
- <tag line="2790" name="return" description="Term ids of the surviving tags" type="array">
1048
  <type by_reference="false">array</type>
1049
  </tag>
1050
  </docblock>
1051
- <argument line="2801">
1052
  <name>$terms_before</name>
1053
  <default><![CDATA[]]></default>
1054
  <type/>
1055
  </argument>
1056
- <argument line="2801">
1057
  <name>$tags</name>
1058
  <default><![CDATA[]]></default>
1059
  <type/>
1060
  </argument>
1061
- <argument line="2801">
1062
  <name>$taxonomy_obj</name>
1063
  <default><![CDATA[]]></default>
1064
  <type/>
1065
  </argument>
1066
  </method>
1067
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2844" package="Media Library Assistant">
1068
  <name>_hex_dump</name>
1069
  <full_name>_hex_dump</full_name>
1070
- <docblock line="2833">
1071
  <description><![CDATA[Format printable version of binary data]]></description>
1072
  <long-description><![CDATA[]]></long-description>
1073
- <tag line="2833" name="since" description="0.90"/>
1074
- <tag line="2833" name="param" description="Binary data" type="string" variable="$data">
1075
  <type by_reference="false">string</type>
1076
  </tag>
1077
- <tag line="2833" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
1078
  <type by_reference="false">integer</type>
1079
  </tag>
1080
- <tag line="2833" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
1081
  <type by_reference="false">\intger</type>
1082
  </tag>
1083
- <tag line="2833" name="return" description="Printable representation of $data" type="string">
1084
  <type by_reference="false">string</type>
1085
  </tag>
1086
  </docblock>
1087
- <argument line="2844">
1088
  <name>$data</name>
1089
  <default><![CDATA[]]></default>
1090
  <type/>
1091
  </argument>
1092
- <argument line="2844">
1093
  <name>$limit</name>
1094
  <default><![CDATA[0]]></default>
1095
  <type/>
1096
  </argument>
1097
- <argument line="2844">
1098
  <name>$bytes_per_row</name>
1099
  <default><![CDATA[16]]></default>
1100
  <type/>
1101
  </argument>
1102
  </method>
1103
  </class>
 
 
 
1104
  </file>
1105
  <file path="includes\class-mla-edit-media.php" hash="ffa4ba62a4969d2e50e12b044ce0cace" package="Media Library Assistant">
1106
  <docblock line="2">
@@ -1406,7 +1518,7 @@ The array is built once each page load and cached for subsequent calls.</p>]]></
1406
  </method>
1407
  </class>
1408
  </file>
1409
- <file path="includes\class-mla-list-table.php" hash="b2a45827f60c65bfcde5d3295760bf97" package="Media Library Assistant">
1410
  <docblock line="2">
1411
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
1412
  <long-description><![CDATA[]]></long-description>
@@ -1452,7 +1564,7 @@ The array is built once each page load and cached for subsequent calls.</p>]]></
1452
  </property>
1453
  <property final="false" static="true" visibility="private" line="73" namespace="global" package="Media Library Assistant">
1454
  <name>$default_columns</name>
1455
- <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>
1456
  <docblock line="55">
1457
  <description><![CDATA[Table column definitions]]></description>
1458
  <long-description><![CDATA[<p>This array defines table columns and titles where the key is the column slug (and class)
@@ -1471,10 +1583,10 @@ Custom field columns are added to this array by mla_admin_init_action.</p>]]></l
1471
  </tag>
1472
  </docblock>
1473
  </property>
1474
- <property final="false" static="true" visibility="private" line="115" namespace="global" package="Media Library Assistant">
1475
  <name>$default_hidden_columns</name>
1476
- <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>
1477
- <docblock line="99">
1478
  <description><![CDATA[Default values for hidden columns]]></description>
1479
  <long-description><![CDATA[<p>This array is used when the user-level option is not set, i.e.,
1480
  the user has not altered the selection of hidden columns.</p>
@@ -1484,16 +1596,16 @@ array(0 => 'ID_parent, 1 => 'title_name').</p>
1484
 
1485
  <p>Taxonomy columns are added to this array by mla_admin_init_action.
1486
  Custom field columns are added to this array by mla_admin_init_action.</p>]]></long-description>
1487
- <tag line="99" name="since" description="0.1"/>
1488
- <tag line="99" name="var" description="" type="array">
1489
  <type by_reference="false">array</type>
1490
  </tag>
1491
  </docblock>
1492
  </property>
1493
- <property final="false" static="true" visibility="private" line="157" namespace="global" package="Media Library Assistant">
1494
  <name>$default_sortable_columns</name>
1495
- <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>
1496
- <docblock line="139">
1497
  <description><![CDATA[Sortable column definitions]]></description>
1498
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
1499
  is the column slug that needs to be sortable, and the value is database column
@@ -1505,797 +1617,866 @@ sorted by that column. This is computed each time the table is displayed.</p>
1505
 
1506
  <p>Taxonomy columns, if any, are added to this array by mla_admin_init_action.
1507
  Custom field columns are added to this array by mla_admin_init_action.</p>]]></long-description>
1508
- <tag line="139" name="since" description="0.1"/>
1509
- <tag line="139" name="var" description="" type="array">
1510
  <type by_reference="false">array</type>
1511
  </tag>
1512
  </docblock>
1513
  </property>
1514
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="188" package="Media Library Assistant">
1515
  <name>_default_hidden_columns</name>
1516
  <full_name>_default_hidden_columns</full_name>
1517
- <docblock line="181">
1518
  <description><![CDATA[Access the default list of hidden columns]]></description>
1519
  <long-description><![CDATA[]]></long-description>
1520
- <tag line="181" name="since" description="0.1"/>
1521
- <tag line="181" name="return" description="default list of hidden columns" type="array">
1522
  <type by_reference="false">array</type>
1523
  </tag>
1524
  </docblock>
1525
  </method>
1526
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="204" package="Media Library Assistant">
1527
  <name>_avail_mime_types</name>
1528
  <full_name>_avail_mime_types</full_name>
1529
- <docblock line="192">
1530
  <description><![CDATA[Get MIME types with one or more attachments for view preparation]]></description>
1531
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
1532
  but uses the output of wp_count_attachments() as input.</p>]]></long-description>
1533
- <tag line="192" name="since" description="0.1"/>
1534
- <tag line="192" name="param" description="Number of posts for each MIME type" type="array" variable="$num_posts">
1535
  <type by_reference="false">array</type>
1536
  </tag>
1537
- <tag line="192" name="return" description="Mime type names" type="array">
1538
  <type by_reference="false">array</type>
1539
  </tag>
1540
  </docblock>
1541
- <argument line="204">
1542
  <name>$num_posts</name>
1543
  <default><![CDATA[]]></default>
1544
  <type/>
1545
  </argument>
1546
  </method>
1547
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="224" package="Media Library Assistant">
1548
  <name>mla_get_taxonomy_filter_dropdown</name>
1549
  <full_name>mla_get_taxonomy_filter_dropdown</full_name>
1550
- <docblock line="215">
1551
  <description><![CDATA[Get dropdown box of terms to filter by, if available]]></description>
1552
  <long-description><![CDATA[]]></long-description>
1553
- <tag line="215" name="since" description="1.20"/>
1554
- <tag line="215" name="param" description="currently selected term_id || zero (default)" type="integer" variable="$selected">
1555
  <type by_reference="false">integer</type>
1556
  </tag>
1557
- <tag line="215" name="return" description="HTML markup for dropdown box" type="string">
1558
  <type by_reference="false">string</type>
1559
  </tag>
1560
  </docblock>
1561
- <argument line="224">
1562
  <name>$selected</name>
1563
  <default><![CDATA[0]]></default>
1564
  <type/>
1565
  </argument>
1566
  </method>
1567
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="269" package="Media Library Assistant">
1568
  <name>mla_get_sortable_columns</name>
1569
  <full_name>mla_get_sortable_columns</full_name>
1570
- <docblock line="262">
1571
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
1572
  <long-description><![CDATA[]]></long-description>
1573
- <tag line="262" name="since" description="0.30"/>
1574
- <tag line="262" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
1575
  <type by_reference="false">array</type>
1576
  </tag>
1577
  </docblock>
1578
  </method>
1579
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="296" package="Media Library Assistant">
1580
  <name>mla_manage_hidden_columns_filter</name>
1581
  <full_name>mla_manage_hidden_columns_filter</full_name>
1582
- <docblock line="281">
1583
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
1584
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
1585
  the get_user_option result. Set when the file is loaded because the object
1586
  is not created in time for the call from screen.php.</p>]]></long-description>
1587
- <tag line="281" name="since" description="0.1"/>
1588
- <tag line="281" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
1589
  <type by_reference="false">string</type>
1590
  </tag>
1591
- <tag line="281" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
1592
  <type by_reference="false">string</type>
1593
  </tag>
1594
- <tag line="281" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
1595
  <type by_reference="false">object</type>
1596
  </tag>
1597
- <tag line="281" name="return" description="updated list of hidden columns" type="array">
1598
  <type by_reference="false">array</type>
1599
  </tag>
1600
  </docblock>
1601
- <argument line="296">
1602
  <name>$result</name>
1603
  <default><![CDATA[]]></default>
1604
  <type/>
1605
  </argument>
1606
- <argument line="296">
1607
  <name>$option</name>
1608
  <default><![CDATA[]]></default>
1609
  <type/>
1610
  </argument>
1611
- <argument line="296">
1612
  <name>$user_data</name>
1613
  <default><![CDATA[]]></default>
1614
  <type/>
1615
  </argument>
1616
  </method>
1617
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="314" package="Media Library Assistant">
1618
  <name>mla_manage_columns_filter</name>
1619
  <full_name>mla_manage_columns_filter</full_name>
1620
- <docblock line="303">
1621
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
1622
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
1623
  file is loaded because the list_table object isn't created in time
1624
  to affect the "screen options" setup.</p>]]></long-description>
1625
- <tag line="303" name="since" description="0.1"/>
1626
- <tag line="303" name="return" description="list of table columns" type="array">
1627
  <type by_reference="false">array</type>
1628
  </tag>
1629
  </docblock>
1630
  </method>
1631
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="329" package="Media Library Assistant">
1632
  <name>mla_admin_init_action</name>
1633
  <full_name>mla_admin_init_action</full_name>
1634
- <docblock line="319">
1635
  <description><![CDATA[Adds support for taxonomy and custom field columns]]></description>
1636
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
1637
  created in time to affect the "screen options" setup.</p>]]></long-description>
1638
- <tag line="319" name="since" description="0.30"/>
1639
- <tag line="319" name="return" description="" type="void">
1640
  <type by_reference="false">void</type>
1641
  </tag>
1642
  </docblock>
1643
  </method>
1644
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="355" package="Media Library Assistant">
1645
  <name>__construct</name>
1646
  <full_name>__construct</full_name>
1647
- <docblock line="347">
1648
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
1649
  calls the parent constructor to set some default configs.]]></description>
1650
  <long-description><![CDATA[]]></long-description>
1651
- <tag line="347" name="since" description="0.1"/>
1652
- <tag line="347" name="return" description="" type="void">
1653
  <type by_reference="false">void</type>
1654
  </tag>
1655
  </docblock>
1656
  </method>
1657
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="388" package="Media Library Assistant">
1658
  <name>column_default</name>
1659
  <full_name>column_default</full_name>
1660
- <docblock line="375">
1661
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
1662
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a given column.
1663
  The taxonomy and custom field columns are handled here. All other columns should have
1664
  a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
1665
- <tag line="375" name="since" description="0.1"/>
1666
- <tag line="375" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
1667
  <type by_reference="false">array</type>
1668
  </tag>
1669
- <tag line="375" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
1670
  <type by_reference="false">array</type>
1671
  </tag>
1672
- <tag line="375" name="return" description="Text or HTML to be placed inside the column" type="string">
1673
  <type by_reference="false">string</type>
1674
  </tag>
1675
  </docblock>
1676
- <argument line="388">
1677
  <name>$item</name>
1678
  <default><![CDATA[]]></default>
1679
  <type/>
1680
  </argument>
1681
- <argument line="388">
1682
  <name>$column_name</name>
1683
  <default><![CDATA[]]></default>
1684
  <type/>
1685
  </argument>
1686
  </method>
1687
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="457" package="Media Library Assistant">
1688
  <name>column_cb</name>
1689
  <full_name>column_cb</full_name>
1690
- <docblock line="448">
1691
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
1692
  <long-description><![CDATA[<p>The 'cb' column
1693
  is given special treatment when columns are processed.</p>]]></long-description>
1694
- <tag line="448" name="since" description="0.1"/>
1695
- <tag line="448" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1696
  <type by_reference="false">array</type>
1697
  </tag>
1698
- <tag line="448" name="return" description="HTML markup to be placed inside the column" type="string">
1699
  <type by_reference="false">string</type>
1700
  </tag>
1701
  </docblock>
1702
- <argument line="457">
1703
  <name>$item</name>
1704
  <default><![CDATA[]]></default>
1705
  <type/>
1706
  </argument>
1707
  </method>
1708
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="473" package="Media Library Assistant">
1709
  <name>column_icon</name>
1710
  <full_name>column_icon</full_name>
1711
- <docblock line="465">
1712
  <description><![CDATA[Supply the content for a custom column]]></description>
1713
  <long-description><![CDATA[]]></long-description>
1714
- <tag line="465" name="since" description="0.1"/>
1715
- <tag line="465" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1716
  <type by_reference="false">array</type>
1717
  </tag>
1718
- <tag line="465" name="return" description="HTML markup to be placed inside the column" type="string">
1719
  <type by_reference="false">string</type>
1720
  </tag>
1721
  </docblock>
1722
- <argument line="473">
1723
  <name>$item</name>
1724
  <default><![CDATA[]]></default>
1725
  <type/>
1726
  </argument>
1727
  </method>
1728
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="497" package="Media Library Assistant">
1729
  <name>_build_rollover_actions</name>
1730
  <full_name>_build_rollover_actions</full_name>
1731
- <docblock line="486">
1732
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
1733
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
1734
  <long-description><![CDATA[]]></long-description>
1735
- <tag line="486" name="since" description="0.1"/>
1736
- <tag line="486" name="param" description="A singular attachment (post) object" type="object" variable="$item">
1737
  <type by_reference="false">object</type>
1738
  </tag>
1739
- <tag line="486" name="param" description="Current column name" type="string" variable="$column">
1740
  <type by_reference="false">string</type>
1741
  </tag>
1742
- <tag line="486" name="return" description="Names and URLs of row-level actions" type="array">
1743
  <type by_reference="false">array</type>
1744
  </tag>
1745
  </docblock>
1746
- <argument line="497">
1747
  <name>$item</name>
1748
  <default><![CDATA[]]></default>
1749
  <type/>
1750
  </argument>
1751
- <argument line="497">
1752
  <name>$column</name>
1753
  <default><![CDATA[]]></default>
1754
  <type/>
1755
  </argument>
1756
  </method>
1757
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="575" package="Media Library Assistant">
1758
  <name>_build_inline_data</name>
1759
  <full_name>_build_inline_data</full_name>
1760
- <docblock line="566">
1761
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
1762
  <long-description><![CDATA[]]></long-description>
1763
- <tag line="566" name="since" description="0.20"/>
1764
- <tag line="566" name="param" description="A singular attachment (post) object" type="object" variable="$item">
1765
  <type by_reference="false">object</type>
1766
  </tag>
1767
- <tag line="566" name="return" description="HTML &lt;div&gt; with row data" type="string">
1768
  <type by_reference="false">string</type>
1769
  </tag>
1770
  </docblock>
1771
- <argument line="575">
1772
  <name>$item</name>
1773
  <default><![CDATA[]]></default>
1774
  <type/>
1775
  </argument>
1776
  </method>
1777
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="623" package="Media Library Assistant">
1778
  <name>column_ID_parent</name>
1779
  <full_name>column_ID_parent</full_name>
1780
- <docblock line="615">
1781
  <description><![CDATA[Supply the content for a custom column]]></description>
1782
  <long-description><![CDATA[]]></long-description>
1783
- <tag line="615" name="since" description="0.1"/>
1784
- <tag line="615" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1785
  <type by_reference="false">array</type>
1786
  </tag>
1787
- <tag line="615" name="return" description="HTML markup to be placed inside the column" type="string">
1788
  <type by_reference="false">string</type>
1789
  </tag>
1790
  </docblock>
1791
- <argument line="623">
1792
  <name>$item</name>
1793
  <default><![CDATA[]]></default>
1794
  <type/>
1795
  </argument>
1796
  </method>
1797
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="655" package="Media Library Assistant">
1798
  <name>column_title_name</name>
1799
  <full_name>column_title_name</full_name>
1800
- <docblock line="647">
1801
  <description><![CDATA[Supply the content for a custom column]]></description>
1802
  <long-description><![CDATA[]]></long-description>
1803
- <tag line="647" name="since" description="0.1"/>
1804
- <tag line="647" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1805
  <type by_reference="false">array</type>
1806
  </tag>
1807
- <tag line="647" name="return" description="HTML markup to be placed inside the column" type="string">
1808
  <type by_reference="false">string</type>
1809
  </tag>
1810
  </docblock>
1811
- <argument line="655">
1812
  <name>$item</name>
1813
  <default><![CDATA[]]></default>
1814
  <type/>
1815
  </argument>
1816
  </method>
1817
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="678" package="Media Library Assistant">
1818
  <name>column_post_title</name>
1819
  <full_name>column_post_title</full_name>
1820
- <docblock line="670">
1821
  <description><![CDATA[Supply the content for a custom column]]></description>
1822
  <long-description><![CDATA[]]></long-description>
1823
- <tag line="670" name="since" description="0.1"/>
1824
- <tag line="670" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1825
  <type by_reference="false">array</type>
1826
  </tag>
1827
- <tag line="670" name="return" description="HTML markup to be placed inside the column" type="string">
1828
  <type by_reference="false">string</type>
1829
  </tag>
1830
  </docblock>
1831
- <argument line="678">
1832
  <name>$item</name>
1833
  <default><![CDATA[]]></default>
1834
  <type/>
1835
  </argument>
1836
  </method>
1837
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="696" package="Media Library Assistant">
1838
  <name>column_post_name</name>
1839
  <full_name>column_post_name</full_name>
1840
- <docblock line="688">
1841
  <description><![CDATA[Supply the content for a custom column]]></description>
1842
  <long-description><![CDATA[]]></long-description>
1843
- <tag line="688" name="since" description="0.1"/>
1844
- <tag line="688" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1845
  <type by_reference="false">array</type>
1846
  </tag>
1847
- <tag line="688" name="return" description="HTML markup to be placed inside the column" type="string">
1848
  <type by_reference="false">string</type>
1849
  </tag>
1850
  </docblock>
1851
- <argument line="696">
1852
  <name>$item</name>
1853
  <default><![CDATA[]]></default>
1854
  <type/>
1855
  </argument>
1856
  </method>
1857
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="714" package="Media Library Assistant">
1858
  <name>column_parent</name>
1859
  <full_name>column_parent</full_name>
1860
- <docblock line="706">
1861
  <description><![CDATA[Supply the content for a custom column]]></description>
1862
  <long-description><![CDATA[]]></long-description>
1863
- <tag line="706" name="since" description="0.1"/>
1864
- <tag line="706" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1865
  <type by_reference="false">array</type>
1866
  </tag>
1867
- <tag line="706" name="return" description="HTML markup to be placed inside the column" type="string">
1868
  <type by_reference="false">string</type>
1869
  </tag>
1870
  </docblock>
1871
- <argument line="714">
1872
  <name>$item</name>
1873
  <default><![CDATA[]]></default>
1874
  <type/>
1875
  </argument>
1876
  </method>
1877
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="739" package="Media Library Assistant">
1878
  <name>column_menu_order</name>
1879
  <full_name>column_menu_order</full_name>
1880
- <docblock line="731">
1881
  <description><![CDATA[Supply the content for a custom column]]></description>
1882
  <long-description><![CDATA[]]></long-description>
1883
- <tag line="731" name="since" description="0.60"/>
1884
- <tag line="731" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1885
  <type by_reference="false">array</type>
1886
  </tag>
1887
- <tag line="731" name="return" description="HTML markup to be placed inside the column" type="string">
1888
  <type by_reference="false">string</type>
1889
  </tag>
1890
  </docblock>
1891
- <argument line="739">
1892
  <name>$item</name>
1893
  <default><![CDATA[]]></default>
1894
  <type/>
1895
  </argument>
1896
  </method>
1897
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="751" package="Media Library Assistant">
1898
  <name>column_featured</name>
1899
  <full_name>column_featured</full_name>
1900
- <docblock line="743">
1901
  <description><![CDATA[Supply the content for a custom column]]></description>
1902
  <long-description><![CDATA[]]></long-description>
1903
- <tag line="743" name="since" description="0.1"/>
1904
- <tag line="743" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1905
  <type by_reference="false">array</type>
1906
  </tag>
1907
- <tag line="743" name="return" description="HTML markup to be placed inside the column" type="string">
1908
  <type by_reference="false">string</type>
1909
  </tag>
1910
  </docblock>
1911
- <argument line="751">
1912
  <name>$item</name>
1913
  <default><![CDATA[]]></default>
1914
  <type/>
1915
  </argument>
1916
  </method>
1917
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="783" package="Media Library Assistant">
1918
  <name>column_inserted</name>
1919
  <full_name>column_inserted</full_name>
1920
- <docblock line="775">
1921
  <description><![CDATA[Supply the content for a custom column]]></description>
1922
  <long-description><![CDATA[]]></long-description>
1923
- <tag line="775" name="since" description="0.1"/>
1924
- <tag line="775" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1925
  <type by_reference="false">array</type>
1926
  </tag>
1927
- <tag line="775" name="return" description="HTML markup to be placed inside the column" type="string">
1928
  <type by_reference="false">string</type>
1929
  </tag>
1930
  </docblock>
1931
- <argument line="783">
1932
  <name>$item</name>
1933
  <default><![CDATA[]]></default>
1934
  <type/>
1935
  </argument>
1936
  </method>
1937
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="819" package="Media Library Assistant">
1938
  <name>column_galleries</name>
1939
  <full_name>column_galleries</full_name>
1940
- <docblock line="811">
1941
  <description><![CDATA[Supply the content for a custom column]]></description>
1942
  <long-description><![CDATA[]]></long-description>
1943
- <tag line="811" name="since" description="0.70"/>
1944
- <tag line="811" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1945
  <type by_reference="false">array</type>
1946
  </tag>
1947
- <tag line="811" name="return" description="HTML markup to be placed inside the column" type="string">
1948
  <type by_reference="false">string</type>
1949
  </tag>
1950
  </docblock>
1951
- <argument line="819">
1952
  <name>$item</name>
1953
  <default><![CDATA[]]></default>
1954
  <type/>
1955
  </argument>
1956
  </method>
1957
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="851" package="Media Library Assistant">
1958
  <name>column_mla_galleries</name>
1959
  <full_name>column_mla_galleries</full_name>
1960
- <docblock line="843">
1961
  <description><![CDATA[Supply the content for a custom column]]></description>
1962
  <long-description><![CDATA[]]></long-description>
1963
- <tag line="843" name="since" description="0.70"/>
1964
- <tag line="843" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1965
  <type by_reference="false">array</type>
1966
  </tag>
1967
- <tag line="843" name="return" description="HTML markup to be placed inside the column" type="string">
1968
  <type by_reference="false">string</type>
1969
  </tag>
1970
  </docblock>
1971
- <argument line="851">
1972
  <name>$item</name>
1973
  <default><![CDATA[]]></default>
1974
  <type/>
1975
  </argument>
1976
  </method>
1977
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="883" package="Media Library Assistant">
1978
  <name>column_alt_text</name>
1979
  <full_name>column_alt_text</full_name>
1980
- <docblock line="875">
1981
  <description><![CDATA[Supply the content for a custom column]]></description>
1982
  <long-description><![CDATA[]]></long-description>
1983
- <tag line="875" name="since" description="0.1"/>
1984
- <tag line="875" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1985
  <type by_reference="false">array</type>
1986
  </tag>
1987
- <tag line="875" name="return" description="HTML markup to be placed inside the column" type="string">
1988
  <type by_reference="false">string</type>
1989
  </tag>
1990
  </docblock>
1991
- <argument line="883">
1992
  <name>$item</name>
1993
  <default><![CDATA[]]></default>
1994
  <type/>
1995
  </argument>
1996
  </method>
1997
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="903" package="Media Library Assistant">
1998
  <name>column_caption</name>
1999
  <full_name>column_caption</full_name>
2000
- <docblock line="895">
2001
  <description><![CDATA[Supply the content for a custom column]]></description>
2002
  <long-description><![CDATA[]]></long-description>
2003
- <tag line="895" name="since" description="0.1"/>
2004
- <tag line="895" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2005
  <type by_reference="false">array</type>
2006
  </tag>
2007
- <tag line="895" name="return" description="HTML markup to be placed inside the column" type="string">
2008
  <type by_reference="false">string</type>
2009
  </tag>
2010
  </docblock>
2011
- <argument line="903">
2012
  <name>$item</name>
2013
  <default><![CDATA[]]></default>
2014
  <type/>
2015
  </argument>
2016
  </method>
2017
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="915" package="Media Library Assistant">
2018
  <name>column_description</name>
2019
  <full_name>column_description</full_name>
2020
- <docblock line="907">
2021
  <description><![CDATA[Supply the content for a custom column]]></description>
2022
  <long-description><![CDATA[]]></long-description>
2023
- <tag line="907" name="since" description="0.1"/>
2024
- <tag line="907" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2025
  <type by_reference="false">array</type>
2026
  </tag>
2027
- <tag line="907" name="return" description="HTML markup to be placed inside the column" type="string">
2028
  <type by_reference="false">string</type>
2029
  </tag>
2030
  </docblock>
2031
- <argument line="915">
2032
  <name>$item</name>
2033
  <default><![CDATA[]]></default>
2034
  <type/>
2035
  </argument>
2036
  </method>
2037
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="927" package="Media Library Assistant">
2038
  <name>column_post_mime_type</name>
2039
  <full_name>column_post_mime_type</full_name>
2040
- <docblock line="919">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2041
  <description><![CDATA[Supply the content for a custom column]]></description>
2042
  <long-description><![CDATA[]]></long-description>
2043
- <tag line="919" name="since" description="0.30"/>
2044
- <tag line="919" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2045
  <type by_reference="false">array</type>
2046
  </tag>
2047
- <tag line="919" name="return" description="HTML markup to be placed inside the column" type="string">
2048
  <type by_reference="false">string</type>
2049
  </tag>
2050
  </docblock>
2051
- <argument line="927">
2052
  <name>$item</name>
2053
  <default><![CDATA[]]></default>
2054
  <type/>
2055
  </argument>
2056
  </method>
2057
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="943" package="Media Library Assistant">
2058
  <name>column_base_file</name>
2059
  <full_name>column_base_file</full_name>
2060
- <docblock line="935">
2061
  <description><![CDATA[Supply the content for a custom column]]></description>
2062
  <long-description><![CDATA[]]></long-description>
2063
- <tag line="935" name="since" description="0.1"/>
2064
- <tag line="935" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2065
  <type by_reference="false">array</type>
2066
  </tag>
2067
- <tag line="935" name="return" description="HTML markup to be placed inside the column" type="string">
2068
  <type by_reference="false">string</type>
2069
  </tag>
2070
  </docblock>
2071
- <argument line="943">
2072
  <name>$item</name>
2073
  <default><![CDATA[]]></default>
2074
  <type/>
2075
  </argument>
2076
  </method>
2077
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="955" package="Media Library Assistant">
2078
  <name>column_date</name>
2079
  <full_name>column_date</full_name>
2080
- <docblock line="947">
2081
  <description><![CDATA[Supply the content for a custom column]]></description>
2082
  <long-description><![CDATA[]]></long-description>
2083
- <tag line="947" name="since" description="0.1"/>
2084
- <tag line="947" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2085
  <type by_reference="false">array</type>
2086
  </tag>
2087
- <tag line="947" name="return" description="HTML markup to be placed inside the column" type="string">
2088
  <type by_reference="false">string</type>
2089
  </tag>
2090
  </docblock>
2091
- <argument line="955">
2092
  <name>$item</name>
2093
  <default><![CDATA[]]></default>
2094
  <type/>
2095
  </argument>
2096
  </method>
2097
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="984" package="Media Library Assistant">
2098
  <name>column_modified</name>
2099
  <full_name>column_modified</full_name>
2100
- <docblock line="976">
2101
  <description><![CDATA[Supply the content for a custom column]]></description>
2102
  <long-description><![CDATA[]]></long-description>
2103
- <tag line="976" name="since" description="0.30"/>
2104
- <tag line="976" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2105
  <type by_reference="false">array</type>
2106
  </tag>
2107
- <tag line="976" name="return" description="HTML markup to be placed inside the column" type="string">
2108
  <type by_reference="false">string</type>
2109
  </tag>
2110
  </docblock>
2111
- <argument line="984">
2112
  <name>$item</name>
2113
  <default><![CDATA[]]></default>
2114
  <type/>
2115
  </argument>
2116
  </method>
2117
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1013" package="Media Library Assistant">
2118
  <name>column_author</name>
2119
  <full_name>column_author</full_name>
2120
- <docblock line="1005">
2121
  <description><![CDATA[Supply the content for a custom column]]></description>
2122
  <long-description><![CDATA[]]></long-description>
2123
- <tag line="1005" name="since" description="0.30"/>
2124
- <tag line="1005" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2125
  <type by_reference="false">array</type>
2126
  </tag>
2127
- <tag line="1005" name="return" description="HTML markup to be placed inside the column" type="string">
2128
  <type by_reference="false">string</type>
2129
  </tag>
2130
  </docblock>
2131
- <argument line="1013">
2132
  <name>$item</name>
2133
  <default><![CDATA[]]></default>
2134
  <type/>
2135
  </argument>
2136
  </method>
2137
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1034" package="Media Library Assistant">
2138
  <name>column_attached_to</name>
2139
  <full_name>column_attached_to</full_name>
2140
- <docblock line="1026">
2141
  <description><![CDATA[Supply the content for a custom column]]></description>
2142
  <long-description><![CDATA[]]></long-description>
2143
- <tag line="1026" name="since" description="0.1"/>
2144
- <tag line="1026" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2145
  <type by_reference="false">array</type>
2146
  </tag>
2147
- <tag line="1026" name="return" description="HTML markup to be placed inside the column" type="string">
2148
  <type by_reference="false">string</type>
2149
  </tag>
2150
  </docblock>
2151
- <argument line="1034">
2152
  <name>$item</name>
2153
  <default><![CDATA[]]></default>
2154
  <type/>
2155
  </argument>
2156
  </method>
2157
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1063" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2158
  <name>get_columns</name>
2159
  <full_name>get_columns</full_name>
2160
- <docblock line="1056">
2161
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
2162
  <long-description><![CDATA[]]></long-description>
2163
- <tag line="1056" name="since" description="0.1"/>
2164
- <tag line="1056" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
2165
  <type by_reference="false">array</type>
2166
  </tag>
2167
  </docblock>
2168
  </method>
2169
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1075" package="Media Library Assistant">
2170
  <name>get_hidden_columns</name>
2171
  <full_name>get_hidden_columns</full_name>
2172
- <docblock line="1067">
2173
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
2174
  from default values if the option is not set]]></description>
2175
  <long-description><![CDATA[]]></long-description>
2176
- <tag line="1067" name="since" description="0.1"/>
2177
- <tag line="1067" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
2178
  <type by_reference="false">array</type>
2179
  </tag>
2180
  </docblock>
2181
  </method>
2182
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1095" package="Media Library Assistant">
2183
  <name>get_sortable_columns</name>
2184
  <full_name>get_sortable_columns</full_name>
2185
- <docblock line="1085">
2186
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
2187
  and the value is db column to sort by.]]></description>
2188
  <long-description><![CDATA[<p>Also notes the current sort column,
2189
  if set.</p>]]></long-description>
2190
- <tag line="1085" name="since" description="0.1"/>
2191
- <tag line="1085" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
2192
  <type by_reference="false">array</type>
2193
  </tag>
2194
  </docblock>
2195
  </method>
2196
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1124" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2197
  <name>_get_view</name>
2198
  <full_name>_get_view</full_name>
2199
- <docblock line="1114">
2200
  <description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
2201
  <long-description><![CDATA[]]></long-description>
2202
- <tag line="1114" name="since" description="1.40"/>
2203
- <tag line="1114" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
2204
  <type by_reference="false">string</type>
2205
  </tag>
2206
- <tag line="1114" name="param" description="Slug for current view" type="string" variable="$current_view">
2207
  <type by_reference="false">string</type>
2208
  </tag>
2209
- <tag line="1114" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
2210
  <type by_reference="false">string</type>
2211
  </tag>
2212
  </docblock>
2213
- <argument line="1124">
2214
  <name>$view_slug</name>
2215
  <default><![CDATA[]]></default>
2216
  <type/>
2217
  </argument>
2218
- <argument line="1124">
2219
  <name>$current_view</name>
2220
  <default><![CDATA[]]></default>
2221
  <type/>
2222
  </argument>
2223
  </method>
2224
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1248" package="Media Library Assistant">
2225
  <name>get_views</name>
2226
  <full_name>get_views</full_name>
2227
- <docblock line="1240">
2228
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
2229
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
2230
- <tag line="1240" name="since" description="0.1"/>
2231
- <tag line="1240" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
2232
  <type by_reference="false">array</type>
2233
  </tag>
2234
  </docblock>
2235
  </method>
2236
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1285" package="Media Library Assistant">
2237
  <name>get_bulk_actions</name>
2238
  <full_name>get_bulk_actions</full_name>
2239
- <docblock line="1277">
2240
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
2241
  of bulk actions available on this table.]]></description>
2242
  <long-description><![CDATA[]]></long-description>
2243
- <tag line="1277" name="since" description="0.1"/>
2244
- <tag line="1277" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
2245
  <type by_reference="false">array</type>
2246
  </tag>
2247
  </docblock>
2248
  </method>
2249
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1316" package="Media Library Assistant">
2250
  <name>extra_tablenav</name>
2251
  <full_name>extra_tablenav</full_name>
2252
- <docblock line="1305">
2253
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
2254
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
2255
- <tag line="1305" name="since" description="0.1"/>
2256
- <tag line="1305" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
2257
  <type by_reference="false">string</type>
2258
  </tag>
2259
- <tag line="1305" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
2260
  <type by_reference="false">array</type>
2261
  </tag>
2262
  </docblock>
2263
- <argument line="1316">
2264
  <name>$which</name>
2265
  <default><![CDATA[]]></default>
2266
  <type/>
2267
  </argument>
2268
  </method>
2269
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1349" package="Media Library Assistant">
2270
  <name>prepare_items</name>
2271
  <full_name>prepare_items</full_name>
2272
- <docblock line="1337">
2273
  <description><![CDATA[Prepares the list of items for displaying]]></description>
2274
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
2275
  be used to query the database, sort and filter the data, and generally
2276
  get it ready to be displayed. At a minimum, we should set $this->items and
2277
  $this->set_pagination_args().</p>]]></long-description>
2278
- <tag line="1337" name="since" description="0.1"/>
2279
- <tag line="1337" name="return" description="" type="void">
2280
  <type by_reference="false">void</type>
2281
  </tag>
2282
  </docblock>
2283
  </method>
2284
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1396" package="Media Library Assistant">
2285
  <name>single_row</name>
2286
  <full_name>single_row</full_name>
2287
- <docblock line="1387">
2288
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
2289
  <long-description><![CDATA[]]></long-description>
2290
- <tag line="1387" name="since" description=".20"/>
2291
- <tag line="1387" name="param" description="the current item" type="object" variable="$item">
2292
  <type by_reference="false">object</type>
2293
  </tag>
2294
- <tag line="1387" name="return" description="Echoes the row HTML" type="void">
2295
  <type by_reference="false">void</type>
2296
  </tag>
2297
  </docblock>
2298
- <argument line="1396">
2299
  <name>$item</name>
2300
  <default><![CDATA[]]></default>
2301
  <type/>
@@ -2303,7 +2484,7 @@ $this->set_pagination_args().</p>]]></long-description>
2303
  </method>
2304
  </class>
2305
  </file>
2306
- <file path="includes\class-mla-main.php" hash="a0c161c9e231102af6c7557668a713ea" package="Media Library Assistant">
2307
  <docblock line="2">
2308
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
2309
  <long-description><![CDATA[]]></long-description>
@@ -2340,7 +2521,7 @@ of images and files held in the WordPress Media Library.]]></description>
2340
  <constant namespace="global" line="41" package="Media Library Assistant">
2341
  <name>CURRENT_MLA_VERSION</name>
2342
  <full_name>CURRENT_MLA_VERSION</full_name>
2343
- <value><![CDATA['1.41']]></value>
2344
  <docblock line="34">
2345
  <description><![CDATA[Current version number]]></description>
2346
  <long-description><![CDATA[]]></long-description>
@@ -2748,164 +2929,164 @@ going to the Edit Media screen.</p>]]></long-description>
2748
  </tag>
2749
  </docblock>
2750
  </method>
2751
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="918" package="Media Library Assistant">
2752
  <name>mla_inline_edit_action</name>
2753
  <full_name>mla_inline_edit_action</full_name>
2754
- <docblock line="909">
2755
  <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
2756
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
2757
- <tag line="909" name="since" description="0.20"/>
2758
- <tag line="909" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
2759
  <type by_reference="false">void</type>
2760
  </tag>
2761
  </docblock>
2762
  </method>
2763
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1013" package="Media Library Assistant">
2764
  <name>_build_inline_edit_form</name>
2765
  <full_name>_build_inline_edit_form</full_name>
2766
- <docblock line="1002">
2767
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
2768
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
2769
- <tag line="1002" name="since" description="0.20"/>
2770
- <tag line="1002" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
2771
  <type by_reference="false">object</type>
2772
  </tag>
2773
- <tag line="1002" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
2774
  <type by_reference="false">string</type>
2775
  </tag>
2776
  </docblock>
2777
- <argument line="1013">
2778
  <name>$MLAListTable</name>
2779
  <default><![CDATA[]]></default>
2780
  <type/>
2781
  </argument>
2782
  </method>
2783
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1170" package="Media Library Assistant">
2784
  <name>_authors_dropdown</name>
2785
  <full_name>_authors_dropdown</full_name>
2786
- <docblock line="1159">
2787
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
2788
  <long-description><![CDATA[]]></long-description>
2789
- <tag line="1159" name="since" description="0.20"/>
2790
- <tag line="1159" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
2791
  <type by_reference="false">integer</type>
2792
  </tag>
2793
- <tag line="1159" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
2794
  <type by_reference="false">string</type>
2795
  </tag>
2796
- <tag line="1159" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
2797
  <type by_reference="false">string</type>
2798
  </tag>
2799
- <tag line="1159" name="return" description="HTML markup for the dropdown field or False" type="string|false">
2800
  <type by_reference="false">string</type>
2801
  <type by_reference="false">false</type>
2802
  </tag>
2803
  </docblock>
2804
- <argument line="1170">
2805
  <name>$author</name>
2806
  <default><![CDATA[0]]></default>
2807
  <type/>
2808
  </argument>
2809
- <argument line="1170">
2810
  <name>$name</name>
2811
  <default><![CDATA['post_author']]></default>
2812
  <type/>
2813
  </argument>
2814
- <argument line="1170">
2815
  <name>$class</name>
2816
  <default><![CDATA['authors']]></default>
2817
  <type/>
2818
  </argument>
2819
  </method>
2820
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1204" package="Media Library Assistant">
2821
  <name>_current_bulk_action</name>
2822
  <full_name>_current_bulk_action</full_name>
2823
- <docblock line="1197">
2824
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
2825
  <long-description><![CDATA[]]></long-description>
2826
- <tag line="1197" name="since" description="0.1"/>
2827
- <tag line="1197" name="return" description="The action name or False if no action was selected" type="string|false">
2828
  <type by_reference="false">string</type>
2829
  <type by_reference="false">false</type>
2830
  </tag>
2831
  </docblock>
2832
  </method>
2833
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1233" package="Media Library Assistant">
2834
  <name>_delete_single_item</name>
2835
  <full_name>_delete_single_item</full_name>
2836
- <docblock line="1224">
2837
  <description><![CDATA[Delete a single item permanently]]></description>
2838
  <long-description><![CDATA[]]></long-description>
2839
- <tag line="1224" name="since" description="0.1"/>
2840
- <tag line="1224" name="param" description="The form POST data" type="array" variable="$post_id">
2841
  <type by_reference="false">array</type>
2842
  </tag>
2843
- <tag line="1224" name="return" description="success/failure message and NULL content" type="array">
2844
  <type by_reference="false">array</type>
2845
  </tag>
2846
  </docblock>
2847
- <argument line="1233">
2848
  <name>$post_id</name>
2849
  <default><![CDATA[]]></default>
2850
  <type/>
2851
  </argument>
2852
  </method>
2853
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1264" package="Media Library Assistant">
2854
  <name>_display_single_item</name>
2855
  <full_name>_display_single_item</full_name>
2856
- <docblock line="1252">
2857
  <description><![CDATA[Display a single item sub page; prepare the form to
2858
  change the meta data for a single attachment.]]></description>
2859
  <long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
2860
- <tag line="1252" name="since" description="0.1"/>
2861
- <tag line="1252" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
2862
  <type by_reference="false">int</type>
2863
  </tag>
2864
- <tag line="1252" name="return" description="message and/or HTML content" type="array">
2865
  <type by_reference="false">array</type>
2866
  </tag>
2867
  </docblock>
2868
- <argument line="1264">
2869
  <name>$post_id</name>
2870
  <default><![CDATA[]]></default>
2871
  <type/>
2872
  </argument>
2873
  </method>
2874
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1504" package="Media Library Assistant">
2875
  <name>_restore_single_item</name>
2876
  <full_name>_restore_single_item</full_name>
2877
- <docblock line="1495">
2878
  <description><![CDATA[Restore a single item from the Trash]]></description>
2879
  <long-description><![CDATA[]]></long-description>
2880
- <tag line="1495" name="since" description="0.1"/>
2881
- <tag line="1495" name="param" description="The form POST data" type="array" variable="$post_id">
2882
  <type by_reference="false">array</type>
2883
  </tag>
2884
- <tag line="1495" name="return" description="success/failure message and NULL content" type="array">
2885
  <type by_reference="false">array</type>
2886
  </tag>
2887
  </docblock>
2888
- <argument line="1504">
2889
  <name>$post_id</name>
2890
  <default><![CDATA[]]></default>
2891
  <type/>
2892
  </argument>
2893
  </method>
2894
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1540" package="Media Library Assistant">
2895
  <name>_trash_single_item</name>
2896
  <full_name>_trash_single_item</full_name>
2897
- <docblock line="1531">
2898
  <description><![CDATA[Move a single item to Trash]]></description>
2899
  <long-description><![CDATA[]]></long-description>
2900
- <tag line="1531" name="since" description="0.1"/>
2901
- <tag line="1531" name="param" description="The form POST data" type="array" variable="$post_id">
2902
  <type by_reference="false">array</type>
2903
  </tag>
2904
- <tag line="1531" name="return" description="success/failure message and NULL content" type="array">
2905
  <type by_reference="false">array</type>
2906
  </tag>
2907
  </docblock>
2908
- <argument line="1540">
2909
  <name>$post_id</name>
2910
  <default><![CDATA[]]></default>
2911
  <type/>
@@ -2913,7 +3094,7 @@ change the meta data for a single attachment.]]></description>
2913
  </method>
2914
  </class>
2915
  </file>
2916
- <file path="includes\class-mla-media-modal.php" hash="03f8ccf2977381a07297c81d2053bf28" package="Media Library Assistant">
2917
  <docblock line="2">
2918
  <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
2919
  <long-description><![CDATA[]]></long-description>
@@ -3140,7 +3321,7 @@ and mla_print_media_templates_action]]></description>
3140
  </method>
3141
  </class>
3142
  </file>
3143
- <file path="includes\class-mla-mime-types.php" hash="52f673229b272019c9633c7118d92140" package="Media Library Assistant">
3144
  <docblock line="2">
3145
  <description><![CDATA[Media Library Assistant MIME Type Support]]></description>
3146
  <long-description><![CDATA[]]></long-description>
@@ -3206,62 +3387,62 @@ the Views and Uploads Settings tabs]]></description>
3206
  </tag>
3207
  </docblock>
3208
  </property>
3209
- <property final="false" static="true" visibility="private" line="1394" namespace="global" package="Media Library Assistant">
3210
  <name>$mla_core_icon_types</name>
3211
  <default><![CDATA[NULL]]></default>
3212
- <docblock line="1387">
3213
  <description><![CDATA[Icon types without MLA filtering]]></description>
3214
  <long-description><![CDATA[]]></long-description>
3215
- <tag line="1387" name="since" description="1.40"/>
3216
- <tag line="1387" name="var" description="extension =&gt; ( core_icon_type )" type="array">
3217
  <type by_reference="false">array</type>
3218
  </tag>
3219
  </docblock>
3220
  </property>
3221
- <property final="false" static="true" visibility="private" line="1403" namespace="global" package="Media Library Assistant">
3222
  <name>$mla_current_icon_types</name>
3223
  <default><![CDATA[NULL]]></default>
3224
- <docblock line="1396">
3225
  <description><![CDATA[Icon types with MLA filtering - basenames of files in the current icon directory]]></description>
3226
  <long-description><![CDATA[]]></long-description>
3227
- <tag line="1396" name="since" description="1.40"/>
3228
- <tag line="1396" name="var" description="( icon_type =&gt; icon_image_uri )" type="array">
3229
  <type by_reference="false">array</type>
3230
  </tag>
3231
  </docblock>
3232
  </property>
3233
- <property final="false" static="true" visibility="private" line="1412" namespace="global" package="Media Library Assistant">
3234
  <name>$mla_upload_mime_templates</name>
3235
  <default><![CDATA[NULL]]></default>
3236
- <docblock line="1405">
3237
  <description><![CDATA[In-memory representation of the Upload MIME Types]]></description>
3238
  <long-description><![CDATA[]]></long-description>
3239
- <tag line="1405" name="since" description="1.40"/>
3240
- <tag line="1405" name="var" description="extension =&gt; ( post_ID, mime_type, core_type, mla_type, source, standard_source, disabled, description, icon_type, wp_icon_type, mla_icon_type, core_icon_type )" type="array">
3241
  <type by_reference="false">array</type>
3242
  </tag>
3243
  </docblock>
3244
  </property>
3245
- <property final="false" static="true" visibility="private" line="1421" namespace="global" package="Media Library Assistant">
3246
  <name>$mla_upload_mime_highest_ID</name>
3247
  <default><![CDATA[0]]></default>
3248
- <docblock line="1414">
3249
  <description><![CDATA[Highest existing Upload MIME Type ID value]]></description>
3250
  <long-description><![CDATA[]]></long-description>
3251
- <tag line="1414" name="since" description="1.40"/>
3252
- <tag line="1414" name="var" description="" type="integer">
3253
  <type by_reference="false">integer</type>
3254
  </tag>
3255
  </docblock>
3256
  </property>
3257
- <property final="false" static="true" visibility="private" line="2153" namespace="global" package="Media Library Assistant">
3258
  <name>$mla_optional_upload_mime_templates</name>
3259
  <default><![CDATA[NULL]]></default>
3260
- <docblock line="2146">
3261
  <description><![CDATA[In-memory representation of the (read-only) Optional Upload MIME Types]]></description>
3262
  <long-description><![CDATA[]]></long-description>
3263
- <tag line="2146" name="since" description="1.40"/>
3264
- <tag line="2146" name="var" description="( ID, slug, mime_type, core_type, mla_type, description )" type="array">
3265
  <type by_reference="false">array</type>
3266
  </tag>
3267
  </docblock>
@@ -3724,13 +3905,16 @@ Defined as public because it's a filter.</p>]]></long-description>
3724
  </tag>
3725
  </docblock>
3726
  </method>
3727
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="775" package="Media Library Assistant">
3728
  <name>mla_prepare_view_query</name>
3729
  <full_name>mla_prepare_view_query</full_name>
3730
  <docblock line="766">
3731
  <description><![CDATA[Convert a Library View/Post MIME Type specification to WP_Query parameters]]></description>
3732
  <long-description><![CDATA[]]></long-description>
3733
  <tag line="766" name="since" description="1.40"/>
 
 
 
3734
  <tag line="766" name="param" description="A specification, e.g., &quot;custom:Field,null&quot; or &quot;audio,application/vnd.*ms*&quot;" type="string" variable="$specification">
3735
  <type by_reference="false">string</type>
3736
  </tag>
@@ -3738,619 +3922,624 @@ Defined as public because it's a filter.</p>]]></long-description>
3738
  <type by_reference="false">array</type>
3739
  </tag>
3740
  </docblock>
3741
- <argument line="775">
 
 
 
 
 
3742
  <name>$specification</name>
3743
  <default><![CDATA[]]></default>
3744
  <type/>
3745
  </argument>
3746
  </method>
3747
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="825" package="Media Library Assistant">
3748
  <name>mla_parse_view_specification</name>
3749
  <full_name>mla_parse_view_specification</full_name>
3750
- <docblock line="816">
3751
  <description><![CDATA[Analyze a Library View/Post MIME Type specification, returning an array of the place holders it contains]]></description>
3752
  <long-description><![CDATA[]]></long-description>
3753
- <tag line="816" name="since" description="1.40"/>
3754
- <tag line="816" name="param" description="A specification, e.g., &quot;custom:Field,null&quot; or &quot;audio,application/vnd.*ms*&quot;" type="string" variable="$specification">
3755
  <type by_reference="false">string</type>
3756
  </tag>
3757
- <tag line="816" name="return" description="( ['prefix'] =&gt; string, ['name'] =&gt; string, ['value'] =&gt; string, ['option'] =&gt; string, optional ['error'] =&gt; string )" type="array">
3758
  <type by_reference="false">array</type>
3759
  </tag>
3760
  </docblock>
3761
- <argument line="825">
3762
  <name>$specification</name>
3763
  <default><![CDATA[]]></default>
3764
  <type/>
3765
  </argument>
3766
  </method>
3767
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="884" package="Media Library Assistant">
3768
  <name>mla_add_post_mime_type</name>
3769
  <full_name>mla_add_post_mime_type</full_name>
3770
- <docblock line="875">
3771
  <description><![CDATA[Add an MLA post_mime_type object]]></description>
3772
  <long-description><![CDATA[]]></long-description>
3773
- <tag line="875" name="since" description="1.40"/>
3774
- <tag line="875" name="param" description="Query variables for a single object, including slug" type="array" variable="$request">
3775
  <type by_reference="false">array</type>
3776
  </tag>
3777
- <tag line="875" name="return" description="Message(s) reflecting the results of the operation" type="array">
3778
  <type by_reference="false">array</type>
3779
  </tag>
3780
  </docblock>
3781
- <argument line="884">
3782
  <name>$request</name>
3783
  <default><![CDATA[]]></default>
3784
  <type/>
3785
  </argument>
3786
  </method>
3787
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="955" package="Media Library Assistant">
3788
  <name>mla_update_post_mime_type</name>
3789
  <full_name>mla_update_post_mime_type</full_name>
3790
- <docblock line="946">
3791
  <description><![CDATA[Update an MLA post_mime_type object]]></description>
3792
  <long-description><![CDATA[]]></long-description>
3793
- <tag line="946" name="since" description="1.40"/>
3794
- <tag line="946" name="param" description="Query variables for new object values, including optional original_slug" type="array" variable="$request">
3795
  <type by_reference="false">array</type>
3796
  </tag>
3797
- <tag line="946" name="return" description="Message(s) reflecting the results of the operation" type="array">
3798
  <type by_reference="false">array</type>
3799
  </tag>
3800
  </docblock>
3801
- <argument line="955">
3802
  <name>$request</name>
3803
  <default><![CDATA[]]></default>
3804
  <type/>
3805
  </argument>
3806
  </method>
3807
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1054" package="Media Library Assistant">
3808
  <name>mla_get_post_mime_type_slug</name>
3809
  <full_name>mla_get_post_mime_type_slug</full_name>
3810
- <docblock line="1045">
3811
  <description><![CDATA[Retrieve an MLA post_mime_type slug given a post_ID]]></description>
3812
  <long-description><![CDATA[]]></long-description>
3813
- <tag line="1045" name="since" description="1.40"/>
3814
- <tag line="1045" name="param" description="MLA post_mime_type post_ID" type="integer" variable="$post_ID">
3815
  <type by_reference="false">integer</type>
3816
  </tag>
3817
- <tag line="1045" name="return" description="string with slug of the requested object; false if object not found" type="mixed">
3818
  <type by_reference="false">mixed</type>
3819
  </tag>
3820
  </docblock>
3821
- <argument line="1054">
3822
  <name>$post_ID</name>
3823
  <default><![CDATA[]]></default>
3824
  <type/>
3825
  </argument>
3826
  </method>
3827
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1075" package="Media Library Assistant">
3828
  <name>mla_get_post_mime_type</name>
3829
  <full_name>mla_get_post_mime_type</full_name>
3830
- <docblock line="1066">
3831
  <description><![CDATA[Retrieve an MLA post_mime_type object]]></description>
3832
  <long-description><![CDATA[]]></long-description>
3833
- <tag line="1066" name="since" description="1.40"/>
3834
- <tag line="1066" name="param" description="MLA post_mime_type slug" type="string" variable="$slug">
3835
  <type by_reference="false">string</type>
3836
  </tag>
3837
- <tag line="1066" name="return" description="Array of elements, including slug, for the requested object; false if object not found" type="mixed">
3838
  <type by_reference="false">mixed</type>
3839
  </tag>
3840
  </docblock>
3841
- <argument line="1075">
3842
  <name>$slug</name>
3843
  <default><![CDATA[]]></default>
3844
  <type/>
3845
  </argument>
3846
  </method>
3847
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1097" package="Media Library Assistant">
3848
  <name>mla_delete_post_mime_type</name>
3849
  <full_name>mla_delete_post_mime_type</full_name>
3850
- <docblock line="1088">
3851
  <description><![CDATA[Delete an MLA post_mime_type object]]></description>
3852
  <long-description><![CDATA[]]></long-description>
3853
- <tag line="1088" name="since" description="1.40"/>
3854
- <tag line="1088" name="param" description="MLA post_mime_type slug" type="string" variable="$slug">
3855
  <type by_reference="false">string</type>
3856
  </tag>
3857
- <tag line="1088" name="return" description="Message(s) reflecting the results of the operation" type="array">
3858
  <type by_reference="false">array</type>
3859
  </tag>
3860
  </docblock>
3861
- <argument line="1097">
3862
  <name>$slug</name>
3863
  <default><![CDATA[]]></default>
3864
  <type/>
3865
  </argument>
3866
  </method>
3867
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1135" package="Media Library Assistant">
3868
  <name>_prepare_upload_items_query</name>
3869
  <full_name>_prepare_upload_items_query</full_name>
3870
- <docblock line="1124">
3871
  <description><![CDATA[Sanitize and expand Upload MIME Type query arguments from request variables]]></description>
3872
  <long-description><![CDATA[]]></long-description>
3873
- <tag line="1124" name="since" description="1.40"/>
3874
- <tag line="1124" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
3875
  <type by_reference="false">array</type>
3876
  </tag>
3877
- <tag line="1124" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
3878
  <type by_reference="false">int</type>
3879
  </tag>
3880
- <tag line="1124" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
3881
  <type by_reference="false">int</type>
3882
  </tag>
3883
- <tag line="1124" name="return" description="revised arguments suitable for query" type="array">
3884
  <type by_reference="false">array</type>
3885
  </tag>
3886
  </docblock>
3887
- <argument line="1135">
3888
  <name>$raw_request</name>
3889
  <default><![CDATA[]]></default>
3890
  <type/>
3891
  </argument>
3892
- <argument line="1135">
3893
  <name>$offset</name>
3894
  <default><![CDATA[0]]></default>
3895
  <type/>
3896
  </argument>
3897
- <argument line="1135">
3898
  <name>$count</name>
3899
  <default><![CDATA[0]]></default>
3900
  <type/>
3901
  </argument>
3902
  </method>
3903
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1211" package="Media Library Assistant">
3904
  <name>_execute_upload_items_query</name>
3905
  <full_name>_execute_upload_items_query</full_name>
3906
- <docblock line="1202">
3907
  <description><![CDATA[Execute an Upload MIME Types query]]></description>
3908
  <long-description><![CDATA[]]></long-description>
3909
- <tag line="1202" name="since" description="1.40"/>
3910
- <tag line="1202" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
3911
  <type by_reference="false">array</type>
3912
  </tag>
3913
- <tag line="1202" name="return" description="query results; array of MLA Upload MIME Type objects" type="array">
3914
  <type by_reference="false">array</type>
3915
  </tag>
3916
  </docblock>
3917
- <argument line="1211">
3918
  <name>$request</name>
3919
  <default><![CDATA[]]></default>
3920
  <type/>
3921
  </argument>
3922
  </method>
3923
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1329" package="Media Library Assistant">
3924
  <name>mla_count_upload_items</name>
3925
  <full_name>mla_count_upload_items</full_name>
3926
- <docblock line="1320">
3927
  <description><![CDATA[Get the total number of MLA Upload MIME Type objects]]></description>
3928
  <long-description><![CDATA[]]></long-description>
3929
- <tag line="1320" name="since" description="1.40"/>
3930
- <tag line="1320" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
3931
  <type by_reference="false">array</type>
3932
  </tag>
3933
- <tag line="1320" name="return" description="Number of MLA Upload MIME Type objects" type="integer">
3934
  <type by_reference="false">integer</type>
3935
  </tag>
3936
  </docblock>
3937
- <argument line="1329">
3938
  <name>$request</name>
3939
  <default><![CDATA[]]></default>
3940
  <type/>
3941
  </argument>
3942
  </method>
3943
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1346" package="Media Library Assistant">
3944
  <name>mla_query_upload_items</name>
3945
  <full_name>mla_query_upload_items</full_name>
3946
- <docblock line="1335">
3947
  <description><![CDATA[Retrieve MLA Upload MIME Type objects for list table display]]></description>
3948
  <long-description><![CDATA[]]></long-description>
3949
- <tag line="1335" name="since" description="1.40"/>
3950
- <tag line="1335" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
3951
  <type by_reference="false">array</type>
3952
  </tag>
3953
- <tag line="1335" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
3954
  <type by_reference="false">int</type>
3955
  </tag>
3956
- <tag line="1335" name="param" description="number of rows on each page" type="int" variable="$count">
3957
  <type by_reference="false">int</type>
3958
  </tag>
3959
- <tag line="1335" name="return" description="MLA Upload MIME Type objects" type="array">
3960
  <type by_reference="false">array</type>
3961
  </tag>
3962
  </docblock>
3963
- <argument line="1346">
3964
  <name>$request</name>
3965
  <default><![CDATA[]]></default>
3966
  <type/>
3967
  </argument>
3968
- <argument line="1346">
3969
  <name>$offset</name>
3970
  <default><![CDATA[]]></default>
3971
  <type/>
3972
  </argument>
3973
- <argument line="1346">
3974
  <name>$count</name>
3975
  <default><![CDATA[]]></default>
3976
  <type/>
3977
  </argument>
3978
  </method>
3979
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1361" package="Media Library Assistant">
3980
  <name>mla_tabulate_upload_items</name>
3981
  <full_name>mla_tabulate_upload_items</full_name>
3982
- <docblock line="1352">
3983
  <description><![CDATA[Tabulate MLA Upload MIME Type objects by view for list table display]]></description>
3984
  <long-description><![CDATA[]]></long-description>
3985
- <tag line="1352" name="since" description="1.40"/>
3986
- <tag line="1352" name="param" description="keyword search criterion, optional" type="string" variable="$s">
3987
  <type by_reference="false">string</type>
3988
  </tag>
3989
- <tag line="1352" name="return" description="( 'singular' label, 'plural' label, 'count' of items )" type="array">
3990
  <type by_reference="false">array</type>
3991
  </tag>
3992
  </docblock>
3993
- <argument line="1361">
3994
  <name>$s</name>
3995
  <default><![CDATA['']]></default>
3996
  <type/>
3997
  </argument>
3998
  </method>
3999
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1430" package="Media Library Assistant">
4000
  <name>_get_core_icon_types</name>
4001
  <full_name>_get_core_icon_types</full_name>
4002
- <docblock line="1423">
4003
  <description><![CDATA[Assemble the list of icon types without MLA filtering]]></description>
4004
  <long-description><![CDATA[]]></long-description>
4005
- <tag line="1423" name="since" description="1.40"/>
4006
- <tag line="1423" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4007
  <type by_reference="false">boolean</type>
4008
  </tag>
4009
  </docblock>
4010
  </method>
4011
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1467" package="Media Library Assistant">
4012
  <name>_get_current_icon_types</name>
4013
  <full_name>_get_current_icon_types</full_name>
4014
- <docblock line="1460">
4015
  <description><![CDATA[Assemble the list of icon types with MLA filtering]]></description>
4016
  <long-description><![CDATA[]]></long-description>
4017
- <tag line="1460" name="since" description="1.40"/>
4018
- <tag line="1460" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4019
  <type by_reference="false">boolean</type>
4020
  </tag>
4021
  </docblock>
4022
  </method>
4023
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1512" package="Media Library Assistant">
4024
  <name>mla_get_core_icon_type</name>
4025
  <full_name>mla_get_core_icon_type</full_name>
4026
- <docblock line="1503">
4027
  <description><![CDATA[Retrieve a standard icon type, i.e., without MLA filtering]]></description>
4028
  <long-description><![CDATA[]]></long-description>
4029
- <tag line="1503" name="since" description="1.40"/>
4030
- <tag line="1503" name="param" description="file extension" type="string" variable="$extension">
4031
  <type by_reference="false">string</type>
4032
  </tag>
4033
- <tag line="1503" name="return" description="icon type for the requested extension; 'default' if extension not found" type="string">
4034
  <type by_reference="false">string</type>
4035
  </tag>
4036
  </docblock>
4037
- <argument line="1512">
4038
  <name>$extension</name>
4039
  <default><![CDATA[]]></default>
4040
  <type/>
4041
  </argument>
4042
  </method>
4043
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1530" package="Media Library Assistant">
4044
  <name>mla_get_icon_type_image</name>
4045
  <full_name>mla_get_icon_type_image</full_name>
4046
- <docblock line="1520">
4047
  <description><![CDATA[Get an HTML img element representing an attachment icon]]></description>
4048
  <long-description><![CDATA[]]></long-description>
4049
- <tag line="1520" name="since" description="1.40"/>
4050
- <tag line="1520" name="param" description="Icon Type, e.g., audio, video, spreadsheet" type="string" variable="$icon_type">
4051
  <type by_reference="false">string</type>
4052
  </tag>
4053
- <tag line="1520" name="param" description="( width, height ) optional image size, default (64, 64)." type="array" variable="$size">
4054
  <type by_reference="false">array</type>
4055
  </tag>
4056
- <tag line="1520" name="return" description="HTML img element or empty string on failure." type="string">
4057
  <type by_reference="false">string</type>
4058
  </tag>
4059
  </docblock>
4060
- <argument line="1530">
4061
  <name>$icon_type</name>
4062
  <default><![CDATA[]]></default>
4063
  <type/>
4064
  </argument>
4065
- <argument line="1530">
4066
  <name>$size</name>
4067
  <default><![CDATA[NULL]]></default>
4068
  <type/>
4069
  </argument>
4070
  </method>
4071
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1565" package="Media Library Assistant">
4072
  <name>mla_get_current_icon_types</name>
4073
  <full_name>mla_get_current_icon_types</full_name>
4074
- <docblock line="1558">
4075
  <description><![CDATA[Get an array of current Icon Type names]]></description>
4076
  <long-description><![CDATA[]]></long-description>
4077
- <tag line="1558" name="since" description="1.40"/>
4078
- <tag line="1558" name="return" description="( icon_type ) or false on failure." type="array">
4079
  <type by_reference="false">array</type>
4080
  </tag>
4081
  </docblock>
4082
  </method>
4083
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1580" package="Media Library Assistant">
4084
  <name>_get_upload_mime_templates</name>
4085
  <full_name>_get_upload_mime_templates</full_name>
4086
- <docblock line="1572">
4087
  <description><![CDATA[Assemble the in-memory representation of the Upload MIME Types]]></description>
4088
  <long-description><![CDATA[]]></long-description>
4089
- <tag line="1572" name="since" description="1.40"/>
4090
- <tag line="1572" name="param" description="Force a reload/recalculation of types" type="boolean" variable="$force_refresh">
4091
  <type by_reference="false">boolean</type>
4092
  </tag>
4093
- <tag line="1572" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4094
  <type by_reference="false">boolean</type>
4095
  </tag>
4096
  </docblock>
4097
- <argument line="1580">
4098
  <name>$force_refresh</name>
4099
  <default><![CDATA[false]]></default>
4100
  <type/>
4101
  </argument>
4102
  </method>
4103
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1795" package="Media Library Assistant">
4104
  <name>_put_upload_mime_templates</name>
4105
  <full_name>_put_upload_mime_templates</full_name>
4106
- <docblock line="1788">
4107
  <description><![CDATA[Store the options portion of the Upload MIME Types]]></description>
4108
  <long-description><![CDATA[]]></long-description>
4109
- <tag line="1788" name="since" description="1.40"/>
4110
- <tag line="1788" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4111
  <type by_reference="false">boolean</type>
4112
  </tag>
4113
  </docblock>
4114
  </method>
4115
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1826" package="Media Library Assistant">
4116
  <name>mla_add_upload_mime</name>
4117
  <full_name>mla_add_upload_mime</full_name>
4118
- <docblock line="1817">
4119
  <description><![CDATA[Add an MLA Upload MIME Type object]]></description>
4120
  <long-description><![CDATA[]]></long-description>
4121
- <tag line="1817" name="since" description="1.40"/>
4122
- <tag line="1817" name="param" description="Query variables for a single object, including slug" type="array" variable="$request">
4123
  <type by_reference="false">array</type>
4124
  </tag>
4125
- <tag line="1817" name="return" description="Message(s) reflecting the results of the operation" type="array">
4126
  <type by_reference="false">array</type>
4127
  </tag>
4128
  </docblock>
4129
- <argument line="1826">
4130
  <name>$request</name>
4131
  <default><![CDATA[]]></default>
4132
  <type/>
4133
  </argument>
4134
  </method>
4135
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1914" package="Media Library Assistant">
4136
  <name>mla_update_upload_mime</name>
4137
  <full_name>mla_update_upload_mime</full_name>
4138
- <docblock line="1905">
4139
  <description><![CDATA[Update an MLA Upload MIME Type object]]></description>
4140
  <long-description><![CDATA[]]></long-description>
4141
- <tag line="1905" name="since" description="1.40"/>
4142
- <tag line="1905" name="param" description="Query variables for new object values, including optional original_slug" type="array" variable="$request">
4143
  <type by_reference="false">array</type>
4144
  </tag>
4145
- <tag line="1905" name="return" description="Message(s) reflecting the results of the operation" type="array">
4146
  <type by_reference="false">array</type>
4147
  </tag>
4148
  </docblock>
4149
- <argument line="1914">
4150
  <name>$request</name>
4151
  <default><![CDATA[]]></default>
4152
  <type/>
4153
  </argument>
4154
  </method>
4155
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2076" package="Media Library Assistant">
4156
  <name>mla_get_upload_mime_slug</name>
4157
  <full_name>mla_get_upload_mime_slug</full_name>
4158
- <docblock line="2067">
4159
  <description><![CDATA[Retrieve an MLA Upload MIME Type slug given a post_ID]]></description>
4160
  <long-description><![CDATA[]]></long-description>
4161
- <tag line="2067" name="since" description="1.40"/>
4162
- <tag line="2067" name="param" description="MLA Upload MIME Type post_ID" type="integer" variable="$post_ID">
4163
  <type by_reference="false">integer</type>
4164
  </tag>
4165
- <tag line="2067" name="return" description="string with slug of the requested object; false if object not found" type="mixed">
4166
  <type by_reference="false">mixed</type>
4167
  </tag>
4168
  </docblock>
4169
- <argument line="2076">
4170
  <name>$post_ID</name>
4171
  <default><![CDATA[]]></default>
4172
  <type/>
4173
  </argument>
4174
  </method>
4175
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2094" package="Media Library Assistant">
4176
  <name>mla_get_upload_mime</name>
4177
  <full_name>mla_get_upload_mime</full_name>
4178
- <docblock line="2085">
4179
  <description><![CDATA[Retrieve an MLA Upload MIME Type object]]></description>
4180
  <long-description><![CDATA[]]></long-description>
4181
- <tag line="2085" name="since" description="1.40"/>
4182
- <tag line="2085" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
4183
  <type by_reference="false">string</type>
4184
  </tag>
4185
- <tag line="2085" name="return" description="Array of elements, including slug, for the requested object; false if object not found" type="mixed">
4186
  <type by_reference="false">mixed</type>
4187
  </tag>
4188
  </docblock>
4189
- <argument line="2094">
4190
  <name>$slug</name>
4191
  <default><![CDATA[]]></default>
4192
  <type/>
4193
  </argument>
4194
  </method>
4195
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2114" package="Media Library Assistant">
4196
  <name>mla_delete_upload_mime</name>
4197
  <full_name>mla_delete_upload_mime</full_name>
4198
- <docblock line="2105">
4199
  <description><![CDATA[Delete an MLA Upload MIME Type object]]></description>
4200
  <long-description><![CDATA[]]></long-description>
4201
- <tag line="2105" name="since" description="1.40"/>
4202
- <tag line="2105" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
4203
  <type by_reference="false">string</type>
4204
  </tag>
4205
- <tag line="2105" name="return" description="Message(s) reflecting the results of the operation" type="array">
4206
  <type by_reference="false">array</type>
4207
  </tag>
4208
  </docblock>
4209
- <argument line="2114">
4210
  <name>$slug</name>
4211
  <default><![CDATA[]]></default>
4212
  <type/>
4213
  </argument>
4214
  </method>
4215
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2166" package="Media Library Assistant">
4216
  <name>_prepare_optional_upload_items_query</name>
4217
  <full_name>_prepare_optional_upload_items_query</full_name>
4218
- <docblock line="2155">
4219
  <description><![CDATA[Sanitize and expand Optional Upload MIME Type query arguments from request variables]]></description>
4220
  <long-description><![CDATA[]]></long-description>
4221
- <tag line="2155" name="since" description="1.40"/>
4222
- <tag line="2155" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
4223
  <type by_reference="false">array</type>
4224
  </tag>
4225
- <tag line="2155" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
4226
  <type by_reference="false">int</type>
4227
  </tag>
4228
- <tag line="2155" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
4229
  <type by_reference="false">int</type>
4230
  </tag>
4231
- <tag line="2155" name="return" description="revised arguments suitable for query" type="array">
4232
  <type by_reference="false">array</type>
4233
  </tag>
4234
  </docblock>
4235
- <argument line="2166">
4236
  <name>$raw_request</name>
4237
  <default><![CDATA[]]></default>
4238
  <type/>
4239
  </argument>
4240
- <argument line="2166">
4241
  <name>$offset</name>
4242
  <default><![CDATA[0]]></default>
4243
  <type/>
4244
  </argument>
4245
- <argument line="2166">
4246
  <name>$count</name>
4247
  <default><![CDATA[0]]></default>
4248
  <type/>
4249
  </argument>
4250
  </method>
4251
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2238" package="Media Library Assistant">
4252
  <name>_execute_optional_upload_items_query</name>
4253
  <full_name>_execute_optional_upload_items_query</full_name>
4254
- <docblock line="2229">
4255
  <description><![CDATA[Execute an Optional Upload MIME Types query]]></description>
4256
  <long-description><![CDATA[]]></long-description>
4257
- <tag line="2229" name="since" description="1.40"/>
4258
- <tag line="2229" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
4259
  <type by_reference="false">array</type>
4260
  </tag>
4261
- <tag line="2229" name="return" description="query results; array of MLA Optional Upload MIME Type objects" type="array">
4262
  <type by_reference="false">array</type>
4263
  </tag>
4264
  </docblock>
4265
- <argument line="2238">
4266
  <name>$request</name>
4267
  <default><![CDATA[]]></default>
4268
  <type/>
4269
  </argument>
4270
  </method>
4271
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2316" package="Media Library Assistant">
4272
  <name>mla_count_optional_upload_items</name>
4273
  <full_name>mla_count_optional_upload_items</full_name>
4274
- <docblock line="2307">
4275
  <description><![CDATA[Get the total number of MLA Upload MIME Type objects]]></description>
4276
  <long-description><![CDATA[]]></long-description>
4277
- <tag line="2307" name="since" description="1.40"/>
4278
- <tag line="2307" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
4279
  <type by_reference="false">array</type>
4280
  </tag>
4281
- <tag line="2307" name="return" description="Number of MLA Upload MIME Type objects" type="integer">
4282
  <type by_reference="false">integer</type>
4283
  </tag>
4284
  </docblock>
4285
- <argument line="2316">
4286
  <name>$request</name>
4287
  <default><![CDATA[]]></default>
4288
  <type/>
4289
  </argument>
4290
  </method>
4291
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2333" package="Media Library Assistant">
4292
  <name>mla_query_optional_upload_items</name>
4293
  <full_name>mla_query_optional_upload_items</full_name>
4294
- <docblock line="2322">
4295
  <description><![CDATA[Retrieve MLA Upload MIME Type objects for list table display]]></description>
4296
  <long-description><![CDATA[]]></long-description>
4297
- <tag line="2322" name="since" description="1.40"/>
4298
- <tag line="2322" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
4299
  <type by_reference="false">array</type>
4300
  </tag>
4301
- <tag line="2322" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
4302
  <type by_reference="false">int</type>
4303
  </tag>
4304
- <tag line="2322" name="param" description="number of rows on each page" type="int" variable="$count">
4305
  <type by_reference="false">int</type>
4306
  </tag>
4307
- <tag line="2322" name="return" description="MLA Upload MIME Type objects" type="array">
4308
  <type by_reference="false">array</type>
4309
  </tag>
4310
  </docblock>
4311
- <argument line="2333">
4312
  <name>$request</name>
4313
  <default><![CDATA[]]></default>
4314
  <type/>
4315
  </argument>
4316
- <argument line="2333">
4317
  <name>$offset</name>
4318
  <default><![CDATA[]]></default>
4319
  <type/>
4320
  </argument>
4321
- <argument line="2333">
4322
  <name>$count</name>
4323
  <default><![CDATA[]]></default>
4324
  <type/>
4325
  </argument>
4326
  </method>
4327
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2346" package="Media Library Assistant">
4328
  <name>_get_optional_upload_mime_templates</name>
4329
  <full_name>_get_optional_upload_mime_templates</full_name>
4330
- <docblock line="2339">
4331
  <description><![CDATA[Assemble the in-memory representation of the (read-only) Optional Upload MIME Types]]></description>
4332
  <long-description><![CDATA[]]></long-description>
4333
- <tag line="2339" name="since" description="1.40"/>
4334
- <tag line="2339" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4335
  <type by_reference="false">boolean</type>
4336
  </tag>
4337
  </docblock>
4338
  </method>
4339
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2391" package="Media Library Assistant">
4340
  <name>mla_get_optional_upload_mime</name>
4341
  <full_name>mla_get_optional_upload_mime</full_name>
4342
- <docblock line="2382">
4343
  <description><![CDATA[Retrieve an MLA Optional Upload MIME Type given an ID]]></description>
4344
  <long-description><![CDATA[]]></long-description>
4345
- <tag line="2382" name="since" description="1.40"/>
4346
- <tag line="2382" name="param" description="MLA Optional Upload MIME Type ID" type="integer" variable="$ID">
4347
  <type by_reference="false">integer</type>
4348
  </tag>
4349
- <tag line="2382" name="return" description="the requested object; false if object not found" type="mixed">
4350
  <type by_reference="false">mixed</type>
4351
  </tag>
4352
  </docblock>
4353
- <argument line="2391">
4354
  <name>$ID</name>
4355
  <default><![CDATA[]]></default>
4356
  <type/>
@@ -4459,7 +4648,7 @@ which returns a count of the attachments assigned a given term]]></description>
4459
  </method>
4460
  </class>
4461
  </file>
4462
- <file path="includes\class-mla-options.php" hash="cf5437042ae758b119570384adb41cb6" package="Media Library Assistant">
4463
  <docblock line="2">
4464
  <description><![CDATA[Manages the plugin option settings]]></description>
4465
  <long-description><![CDATA[]]></long-description>
@@ -4680,7 +4869,7 @@ and provides functions to get and put them from/to WordPress option variables]]>
4680
  </property>
4681
  <property final="false" static="true" visibility="public" line="173" namespace="global" package="Media Library Assistant">
4682
  <name>$mla_option_definitions</name>
4683
- <default><![CDATA[array(self::MLA_VERSION_OPTION => array('tab' => '', 'type' => 'hidden', 'std' => '0'), 'attachment_category' => array('tab' => '', 'name' => 'Attachment Categories', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Categories.'), 'attachment_tag' => array('tab' => '', 'name' => 'Attachment Tags', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Tags.'), 'where_used_heading' => array('tab' => 'general', 'name' => 'Where-used Reporting', 'type' => 'header'), 'exclude_revisions' => array('tab' => 'general', 'name' => 'Exclude Revisions', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to exclude revisions from where-used reporting.'), 'where_used_subheading' => array('tab' => 'general', 'name' => 'Where-used database access tuning', 'type' => 'subheader'), self::MLA_FEATURED_IN_TUNING => array('tab' => 'general', 'name' => 'Featured in', 'type' => 'select', 'std' => 'enabled', 'options' => array('enabled', 'disabled'), 'texts' => array('Enabled', 'Disabled'), 'help' => 'Search database posts and pages for Featured Image attachments.'), self::MLA_INSERTED_IN_TUNING => array('tab' => 'general', 'name' => 'Inserted in', 'type' => 'select', 'std' => 'base', 'options' => array('enabled', 'base', 'disabled'), 'texts' => array('Enabled', 'Base', 'Disabled'), 'help' => 'Search database posts and pages for attachments embedded in content.<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base name and extension only.'), self::MLA_GALLERY_IN_TUNING => array('tab' => 'general', 'name' => 'Gallery in', 'type' => 'select', 'std' => 'cached', 'options' => array('dynamic', 'refresh', 'cached', 'disabled'), 'texts' => array('Dynamic', 'Refresh', 'Cached', 'Disabled'), 'help' => 'Search database posts and pages for [gallery] shortcode results.<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached.'), self::MLA_MLA_GALLERY_IN_TUNING => array('tab' => 'general', 'name' => 'MLA Gallery in', 'type' => 'select', 'std' => 'cached', 'options' => array('dynamic', 'refresh', 'cached', 'disabled'), 'texts' => array('Dynamic', 'Refresh', 'Cached', 'Disabled'), 'help' => 'Search database posts and pages for [mla_gallery] shortcode results.<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached.'), 'taxonomy_heading' => array('tab' => 'general', 'name' => 'Taxonomy Support', 'type' => 'header'), 'taxonomy_support' => array('tab' => 'general', 'help' => 'Check the "Support" box to add the taxonomy to the Assistant and the Edit Media screen.<br>Check the "Inline Edit" box to display the taxonomy in the Quick Edit and Bulk Edit areas.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.', 'std' => array('tax_support' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_quick_edit' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_filter' => 'attachment_category'), 'type' => 'custom', 'render' => 'mla_taxonomy_option_handler', 'update' => 'mla_taxonomy_option_handler', 'delete' => 'mla_taxonomy_option_handler', 'reset' => 'mla_taxonomy_option_handler'), 'attachments_column' => array('tab' => '', 'name' => 'Attachments Column', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to replace the Posts column with the Attachments Column.'), 'orderby_heading' => array('tab' => 'general', 'name' => 'Media/Assistant Table Defaults', 'type' => 'header'), 'default_orderby' => array('tab' => 'general', 'name' => 'Order By', 'type' => 'select', 'std' => 'title_name', 'options' => array('none', 'title_name'), 'texts' => array('None', 'Title/Name'), 'help' => 'Select the column for the sort order of the Assistant table listing.'), 'default_order' => array('tab' => 'general', 'name' => 'Order', 'type' => 'radio', 'std' => 'ASC', 'options' => array('ASC', 'DESC'), 'texts' => array('Ascending', 'Descending'), 'help' => 'Choose the sort order.'), 'table_views_width' => array('tab' => 'general', 'name' => 'Views Width', 'type' => 'text', 'std' => '', 'size' => 10, 'help' => 'Enter the width for the views list, in pixels (px) or percent (%)'), 'media_modal_heading' => array('tab' => 'general', 'name' => 'Media Manager Enhancements', 'type' => 'header'), self::MLA_MEDIA_MODAL_TOOLBAR => array('tab' => 'general', 'name' => 'Enable Media Manager Enhancements', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable Media Manager Enhancements.'), self::MLA_MEDIA_MODAL_MIMETYPES => array('tab' => 'general', 'name' => 'Media Manager Enhanced MIME Type filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by more MIME Types, e.g., text, applications.'), self::MLA_MEDIA_MODAL_MONTHS => array('tab' => 'general', 'name' => 'Media Manager Month and Year filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by month and year uploaded.'), self::MLA_MEDIA_MODAL_TERMS => array('tab' => 'general', 'name' => 'Media Manager Category/Tag filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by taxonomy terms.'), self::MLA_MEDIA_MODAL_SEARCHBOX => array('tab' => 'general', 'name' => 'Media Manager Enhanced Search Media box', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to enable search box enhancements.'), 'template_heading' => array('tab' => 'mla_gallery', 'name' => 'Default [mla_gallery] Templates', 'type' => 'header'), 'default_style' => array('tab' => 'mla_gallery', 'name' => 'Style Template', 'type' => 'select', 'std' => 'default', 'options' => array(), 'texts' => array(), 'help' => 'Select the default style template for your [mla_gallery] shortcodes.'), 'default_markup' => array('tab' => 'mla_gallery', 'name' => 'Markup Template', 'type' => 'select', 'std' => 'default', 'options' => array(), 'texts' => array(), 'help' => 'Select the default markup template for your [mla_gallery] shortcodes.'), 'style_templates' => array('tab' => '', 'type' => 'hidden', 'std' => array()), 'markup_templates' => array('tab' => '', 'type' => 'hidden', 'std' => array()), 'enable_custom_field_mapping' => array('tab' => 'custom_field', 'name' => 'Enable custom field mapping when adding new media', 'type' => 'checkbox', 'std' => '', 'help' => 'Check this option to enable mapping when uploading new media (attachments).<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change this option.<br>&nbsp;&nbsp;Does NOT affect the operation of the "Map" buttons on the bulk edit, single edit and settings screens.'), 'custom_field_mapping' => array('tab' => '', 'help' => '&nbsp;<br>Update the custom field mapping values above, then click Save Changes to make the updates permanent.<br>You can also make temporary updates and click a Map All Attachments button to apply the rule(s) to all attachments without saving any rule changes.', 'std' => array(), 'type' => 'custom', 'render' => 'mla_custom_field_option_handler', 'update' => 'mla_custom_field_option_handler', 'delete' => 'mla_custom_field_option_handler', 'reset' => 'mla_custom_field_option_handler'), 'enable_iptc_exif_mapping' => array('tab' => 'iptc_exif', 'name' => 'Enable IPTC/EXIF Mapping when adding new media', 'type' => 'checkbox', 'std' => '', 'help' => 'Check this option to enable mapping when uploading new media (attachments).<br>&nbsp;&nbsp;Does NOT affect the operation of the "Map" buttons on the bulk edit, single edit and settings screens.'), 'iptc_exif_standard_mapping' => array('tab' => '', 'help' => 'Update the standard field mapping values above, then click <strong>Save Changes</strong> to make the updates permanent.<br>You can also make temporary updates and click <strong>Map All Attachments, Standard Fields Now</strong> to apply the updates to all attachments without saving the rule changes.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_taxonomy_mapping' => array('tab' => '', 'help' => 'Update the taxonomy term mapping values above, then click <strong>Save Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_custom_mapping' => array('tab' => '', 'help' => '<strong>Update</strong> individual custom field mapping values above, or make several updates and click <strong>Save Changes</strong> below to apply them all at once.<br>You can also <strong>add a new rule</strong> for an existing field or <strong>add a new field</strong> and rule.<br>You can make temporary updates and click <strong>Map All Attachments, Custom Fields Now</strong> to apply the updates to all attachments without saving the rule changes.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_mapping' => array('tab' => '', 'help' => 'IPTC/EXIF Mapping help', 'std' => array('standard' => array('post_title' => array('name' => 'Title', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_name' => array('name' => 'Name/Slug', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'image_alt' => array('name' => 'Alternate Text', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_excerpt' => array('name' => 'Caption', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_content' => array('name' => 'Description', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true)), 'taxonomy' => array(), 'custom' => array()), 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), self::MLA_ENABLE_POST_MIME_TYPES => array('tab' => 'view', 'name' => 'Enable View and Post MIME Type Support', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable Post MIME Type Support, then click <strong>Save Changes</strong> to record the new setting.'), self::MLA_POST_MIME_TYPES => array('tab' => '', 'type' => 'custom', 'render' => 'mla_post_mime_types_option_handler', 'update' => 'mla_post_mime_types_option_handler', 'delete' => 'mla_post_mime_types_option_handler', 'reset' => 'mla_post_mime_types_option_handler', 'help' => 'Post MIME Types help.', 'std' => array('all' => array('singular' => 'All', 'plural' => 'All', 'specification' => '', 'post_mime_type' => false, 'table_view' => true, 'menu_order' => 0, 'description' => 'Built-in view'), 'image' => array('singular' => 'Image', 'plural' => 'Images', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All image subtypes'), 'audio' => array('singular' => 'Audio', 'plural' => 'Audio', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All audio subtypes'), 'video' => array('singular' => 'Video', 'plural' => 'Video', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All video subtypes'), 'text' => array('singular' => 'Text', 'plural' => 'Text', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All text subtypes'), 'application' => array('singular' => 'Application', 'plural' => 'Applications', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All application subtypes'), 'unattached' => array('singular' => 'Unattached', 'plural' => 'Unattached', 'specification' => '', 'post_mime_type' => false, 'table_view' => true, 'menu_order' => 0, 'description' => 'Built-in view'), 'trash' => array('singular' => 'Trash', 'plural' => 'Trash', 'specification' => '', 'post_mime_type' => false, 'table_view' => true, 'menu_order' => 0, 'description' => 'Built-in view'))), self::MLA_ENABLE_UPLOAD_MIMES => array('tab' => 'upload', 'name' => 'Enable Upload MIME Type Support', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable Upload MIME Type Support, then click <strong>Save Changes</strong> to record the new setting.'), self::MLA_UPLOAD_MIMES => array('tab' => '', 'type' => 'custom', 'render' => 'mla_upload_mimes_option_handler', 'update' => 'mla_upload_mimes_option_handler', 'delete' => 'mla_upload_mimes_option_handler', 'reset' => 'mla_upload_mimes_option_handler', 'help' => 'Upload MIME Types help.', 'std' => false), self::MLA_ENABLE_MLA_ICONS => array('tab' => 'upload', 'name' => 'Enable MLA File Type Icons Support', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable MLA File Type Icons Support, then click <strong>Save Changes</strong> to record the new setting.'))]]></default>
4684
  <docblock line="148">
4685
  <description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them.]]></description>
4686
  <long-description><![CDATA[<p>Each option is defined by an array with the following elements:</p>
@@ -4707,946 +4896,947 @@ reset => reset function for 'custom' options; returns nothing. Usage:
4707
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
4708
  </docblock>
4709
  </property>
4710
- <property final="false" static="true" visibility="private" line="660" namespace="global" package="Media Library Assistant">
4711
  <name>$mla_option_templates</name>
4712
  <default><![CDATA[null]]></default>
4713
- <docblock line="653">
4714
  <description><![CDATA[Style and Markup templates]]></description>
4715
  <long-description><![CDATA[]]></long-description>
4716
- <tag line="653" name="since" description="0.80"/>
4717
- <tag line="653" name="var" description="" type="array">
4718
  <type by_reference="false">array</type>
4719
  </tag>
4720
  </docblock>
4721
  </property>
4722
- <property final="false" static="true" visibility="private" line="1785" namespace="global" package="Media Library Assistant">
4723
  <name>$custom_field_data_sources</name>
4724
- <default><![CDATA[array('path', 'file_name', 'extension', 'file_size', 'upload_date', 'dimensions', 'pixels', 'width', 'height', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent', 'parent_date', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'featured_in', 'featured_in_title', 'inserted_in', 'inserted_in_title', 'gallery_in', 'gallery_in_title', 'mla_gallery_in', 'mla_gallery_in_title', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
4725
- <docblock line="1778">
4726
  <description><![CDATA[Array of Data Source names for custom field mapping]]></description>
4727
  <long-description><![CDATA[]]></long-description>
4728
- <tag line="1778" name="since" description="1.10"/>
4729
- <tag line="1778" name="var" description="" type="array">
4730
  <type by_reference="false">array</type>
4731
  </tag>
4732
  </docblock>
4733
  </property>
4734
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="634" package="Media Library Assistant">
4735
  <name>initialize</name>
4736
  <full_name>initialize</full_name>
4737
- <docblock line="627">
4738
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
4739
  <long-description><![CDATA[]]></long-description>
4740
- <tag line="627" name="since" description="1.00"/>
4741
- <tag line="627" name="return" description="" type="void">
4742
  <type by_reference="false">void</type>
4743
  </tag>
4744
  </docblock>
4745
  </method>
4746
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="669" package="Media Library Assistant">
4747
  <name>_load_option_templates</name>
4748
  <full_name>_load_option_templates</full_name>
4749
- <docblock line="662">
4750
  <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
4751
  <long-description><![CDATA[]]></long-description>
4752
- <tag line="662" name="since" description="0.80"/>
4753
- <tag line="662" name="return" description="" type="void">
4754
  <type by_reference="false">void</type>
4755
  </tag>
4756
  </docblock>
4757
  </method>
4758
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="717" package="Media Library Assistant">
4759
  <name>mla_fetch_gallery_template</name>
4760
  <full_name>mla_fetch_gallery_template</full_name>
4761
- <docblock line="707">
4762
  <description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
4763
  <long-description><![CDATA[]]></long-description>
4764
- <tag line="707" name="since" description="0.80"/>
4765
- <tag line="707" name="param" description="Template name" type="string" variable="$key">
4766
  <type by_reference="false">string</type>
4767
  </tag>
4768
- <tag line="707" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
4769
  <type by_reference="false">string</type>
4770
  </tag>
4771
- <tag line="707" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
4772
  <type by_reference="false">string</type>
4773
  <type by_reference="false">boolean</type>
4774
  <type by_reference="false">null</type>
4775
  </tag>
4776
  </docblock>
4777
- <argument line="717">
4778
  <name>$key</name>
4779
  <default><![CDATA[]]></default>
4780
  <type/>
4781
  </argument>
4782
- <argument line="717">
4783
  <name>$type</name>
4784
  <default><![CDATA['style']]></default>
4785
  <type/>
4786
  </argument>
4787
  </method>
4788
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="740" package="Media Library Assistant">
4789
  <name>mla_get_style_templates</name>
4790
  <full_name>mla_get_style_templates</full_name>
4791
- <docblock line="733">
4792
  <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
4793
  <long-description><![CDATA[]]></long-description>
4794
- <tag line="733" name="since" description="0.80"/>
4795
- <tag line="733" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
4796
  <type by_reference="false">array</type>
4797
  <type by_reference="false">null</type>
4798
  </tag>
4799
  </docblock>
4800
  </method>
4801
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="766" package="Media Library Assistant">
4802
  <name>mla_put_style_templates</name>
4803
  <full_name>mla_put_style_templates</full_name>
4804
- <docblock line="758">
4805
  <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
4806
  <long-description><![CDATA[]]></long-description>
4807
- <tag line="758" name="since" description="0.80"/>
4808
- <tag line="758" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
4809
  <type by_reference="false">array</type>
4810
  </tag>
4811
- <tag line="758" name="return" description="true if success, false if failure" type="boolean">
4812
  <type by_reference="false">boolean</type>
4813
  </tag>
4814
  </docblock>
4815
- <argument line="766">
4816
  <name>$templates</name>
4817
  <default><![CDATA[]]></default>
4818
  <type/>
4819
  </argument>
4820
  </method>
4821
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="782" package="Media Library Assistant">
4822
  <name>mla_get_markup_templates</name>
4823
  <full_name>mla_get_markup_templates</full_name>
4824
- <docblock line="775">
4825
  <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
4826
  <long-description><![CDATA[]]></long-description>
4827
- <tag line="775" name="since" description="0.80"/>
4828
- <tag line="775" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
4829
  <type by_reference="false">array</type>
4830
  <type by_reference="false">null</type>
4831
  </tag>
4832
  </docblock>
4833
  </method>
4834
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="837" package="Media Library Assistant">
4835
  <name>mla_put_markup_templates</name>
4836
  <full_name>mla_put_markup_templates</full_name>
4837
- <docblock line="829">
4838
  <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
4839
  <long-description><![CDATA[]]></long-description>
4840
- <tag line="829" name="since" description="0.80"/>
4841
- <tag line="829" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
4842
  <type by_reference="false">array</type>
4843
  </tag>
4844
- <tag line="829" name="return" description="true if success, false if failure" type="boolean">
4845
  <type by_reference="false">boolean</type>
4846
  </tag>
4847
  </docblock>
4848
- <argument line="837">
4849
  <name>$templates</name>
4850
  <default><![CDATA[]]></default>
4851
  <type/>
4852
  </argument>
4853
  </method>
4854
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="857" package="Media Library Assistant">
4855
  <name>mla_get_option</name>
4856
  <full_name>mla_get_option</full_name>
4857
- <docblock line="846">
4858
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
4859
  <long-description><![CDATA[]]></long-description>
4860
- <tag line="846" name="since" description="0.1"/>
4861
- <tag line="846" name="param" description="Name of the desired option" type="string" variable="$option">
4862
  <type by_reference="false">string</type>
4863
  </tag>
4864
- <tag line="846" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
4865
  <type by_reference="false">boolean</type>
4866
  </tag>
4867
- <tag line="846" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
4868
  <type by_reference="false">boolean</type>
4869
  </tag>
4870
- <tag line="846" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
4871
  <type by_reference="false">mixed</type>
4872
  </tag>
4873
  </docblock>
4874
- <argument line="857">
4875
  <name>$option</name>
4876
  <default><![CDATA[]]></default>
4877
  <type/>
4878
  </argument>
4879
- <argument line="857">
4880
  <name>$get_default</name>
4881
  <default><![CDATA[false]]></default>
4882
  <type/>
4883
  </argument>
4884
- <argument line="857">
4885
  <name>$get_stored</name>
4886
  <default><![CDATA[false]]></default>
4887
  <type/>
4888
  </argument>
4889
  </method>
4890
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="884" package="Media Library Assistant">
4891
  <name>mla_update_option</name>
4892
  <full_name>mla_update_option</full_name>
4893
- <docblock line="874">
4894
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
4895
  <long-description><![CDATA[]]></long-description>
4896
- <tag line="874" name="since" description="0.1"/>
4897
- <tag line="874" name="param" description="Name of the desired option" type="string" variable="$option">
4898
  <type by_reference="false">string</type>
4899
  </tag>
4900
- <tag line="874" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
4901
  <type by_reference="false">mixed</type>
4902
  </tag>
4903
- <tag line="874" name="return" description="True if the value was changed or false if the update failed" type="boolean">
4904
  <type by_reference="false">boolean</type>
4905
  </tag>
4906
  </docblock>
4907
- <argument line="884">
4908
  <name>$option</name>
4909
  <default><![CDATA[]]></default>
4910
  <type/>
4911
  </argument>
4912
- <argument line="884">
4913
  <name>$newvalue</name>
4914
  <default><![CDATA[]]></default>
4915
  <type/>
4916
  </argument>
4917
  </method>
4918
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="900" package="Media Library Assistant">
4919
  <name>mla_delete_option</name>
4920
  <full_name>mla_delete_option</full_name>
4921
- <docblock line="891">
4922
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
4923
  <long-description><![CDATA[]]></long-description>
4924
- <tag line="891" name="since" description="0.1"/>
4925
- <tag line="891" name="param" description="Name of the desired option" type="string" variable="$option">
4926
  <type by_reference="false">string</type>
4927
  </tag>
4928
- <tag line="891" name="return" description="True if the option was deleted, otherwise false" type="boolean">
4929
  <type by_reference="false">boolean</type>
4930
  </tag>
4931
  </docblock>
4932
- <argument line="900">
4933
  <name>$option</name>
4934
  <default><![CDATA[]]></default>
4935
  <type/>
4936
  </argument>
4937
  </method>
4938
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="921" package="Media Library Assistant">
4939
  <name>mla_taxonomy_support</name>
4940
  <full_name>mla_taxonomy_support</full_name>
4941
- <docblock line="908">
4942
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
4943
  settings are being updated or reset.]]></description>
4944
  <long-description><![CDATA[]]></long-description>
4945
- <tag line="908" name="since" description="0.30"/>
4946
- <tag line="908" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
4947
  <type by_reference="false">string</type>
4948
  </tag>
4949
- <tag line="908" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
4950
  <type by_reference="false">string</type>
4951
  </tag>
4952
- <tag line="908" name="return" description="true if the taxonomy is supported in this way else false string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by" type="boolean|string">
4953
  <type by_reference="false">boolean</type>
4954
  <type by_reference="false">string</type>
4955
  </tag>
4956
  </docblock>
4957
- <argument line="921">
4958
  <name>$tax_name</name>
4959
  <default><![CDATA[]]></default>
4960
  <type/>
4961
  </argument>
4962
- <argument line="921">
4963
  <name>$support_type</name>
4964
  <default><![CDATA['support']]></default>
4965
  <type/>
4966
  </argument>
4967
  </method>
4968
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="997" package="Media Library Assistant">
4969
  <name>mla_taxonomy_option_handler</name>
4970
  <full_name>mla_taxonomy_option_handler</full_name>
4971
- <docblock line="984">
4972
  <description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
4973
  <long-description><![CDATA[]]></long-description>
4974
- <tag line="984" name="since" description="0.30"/>
4975
- <tag line="984" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
4976
- <tag line="984" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
4977
  <type by_reference="false">string</type>
4978
  </tag>
4979
- <tag line="984" name="param" description="option name, e.g., 'taxonomy_support'" type="string" variable="$key">
4980
  <type by_reference="false">string</type>
4981
  </tag>
4982
- <tag line="984" name="param" description="option parameters" type="array" variable="$value">
4983
  <type by_reference="false">array</type>
4984
  </tag>
4985
- <tag line="984" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
4986
  <type by_reference="false">array</type>
4987
  </tag>
4988
- <tag line="984" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
4989
  <type by_reference="false">string</type>
4990
  </tag>
4991
  </docblock>
4992
- <argument line="997">
4993
  <name>$action</name>
4994
  <default><![CDATA[]]></default>
4995
  <type/>
4996
  </argument>
4997
- <argument line="997">
4998
  <name>$key</name>
4999
  <default><![CDATA[]]></default>
5000
  <type/>
5001
  </argument>
5002
- <argument line="997">
5003
  <name>$value</name>
5004
  <default><![CDATA[]]></default>
5005
  <type/>
5006
  </argument>
5007
- <argument line="997">
5008
  <name>$args</name>
5009
  <default><![CDATA[null]]></default>
5010
  <type/>
5011
  </argument>
5012
  </method>
5013
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1105" package="Media Library Assistant">
5014
  <name>mla_add_attachment_action</name>
5015
  <full_name>mla_add_attachment_action</full_name>
5016
- <docblock line="1096">
5017
  <description><![CDATA[Perform ITC/EXIF mapping on just-inserted attachment]]></description>
5018
  <long-description><![CDATA[]]></long-description>
5019
- <tag line="1096" name="since" description="1.00"/>
5020
- <tag line="1096" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
5021
  <type by_reference="false">integer</type>
5022
  </tag>
5023
- <tag line="1096" name="return" description="" type="void">
5024
  <type by_reference="false">void</type>
5025
  </tag>
5026
  </docblock>
5027
- <argument line="1105">
5028
  <name>$post_id</name>
5029
  <default><![CDATA[]]></default>
5030
  <type/>
5031
  </argument>
5032
  </method>
5033
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1125" package="Media Library Assistant">
5034
  <name>mla_update_attachment_metadata_filter</name>
5035
  <full_name>mla_update_attachment_metadata_filter</full_name>
5036
- <docblock line="1115">
5037
  <description><![CDATA[Perform Custom Field mapping on just-inserted or updated attachment]]></description>
5038
  <long-description><![CDATA[]]></long-description>
5039
- <tag line="1115" name="since" description="1.10"/>
5040
- <tag line="1115" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
5041
  <type by_reference="false">array</type>
5042
  </tag>
5043
- <tag line="1115" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
5044
  <type by_reference="false">integer</type>
5045
  </tag>
5046
- <tag line="1115" name="return" description="" type="void">
5047
  <type by_reference="false">void</type>
5048
  </tag>
5049
  </docblock>
5050
- <argument line="1125">
5051
  <name>$data</name>
5052
  <default><![CDATA[]]></default>
5053
  <type/>
5054
  </argument>
5055
- <argument line="1125">
5056
  <name>$post_id</name>
5057
  <default><![CDATA[]]></default>
5058
  <type/>
5059
  </argument>
5060
  </method>
5061
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1145" package="Media Library Assistant">
5062
  <name>mla_custom_field_option_value</name>
5063
  <full_name>mla_custom_field_option_value</full_name>
5064
- <docblock line="1136">
5065
  <description><![CDATA[Fetch custom field option value given a slug]]></description>
5066
  <long-description><![CDATA[]]></long-description>
5067
- <tag line="1136" name="since" description="1.10"/>
5068
- <tag line="1136" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
5069
  <type by_reference="false">string</type>
5070
  </tag>
5071
- <tag line="1136" name="return" description="option value, e.g., array( 'name' =&gt; 'File Size', ... )" type="array">
5072
  <type by_reference="false">array</type>
5073
  </tag>
5074
  </docblock>
5075
- <argument line="1145">
5076
  <name>$slug</name>
5077
  <default><![CDATA[]]></default>
5078
  <type/>
5079
  </argument>
5080
  </method>
5081
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1165" package="Media Library Assistant">
5082
  <name>mla_custom_field_support</name>
5083
  <full_name>mla_custom_field_support</full_name>
5084
- <docblock line="1156">
5085
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
5086
  <long-description><![CDATA[]]></long-description>
5087
- <tag line="1156" name="since" description="1.10"/>
5088
- <tag line="1156" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
5089
  <type by_reference="false">string</type>
5090
  </tag>
5091
- <tag line="1156" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
5092
  <type by_reference="false">array</type>
5093
  </tag>
5094
  </docblock>
5095
- <argument line="1165">
5096
  <name>$support_type</name>
5097
  <default><![CDATA['default_columns']]></default>
5098
  <type/>
5099
  </argument>
5100
  </method>
5101
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1211" package="Media Library Assistant">
5102
  <name>_evaluate_file_information</name>
5103
  <full_name>_evaluate_file_information</full_name>
5104
- <docblock line="1199">
5105
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
5106
  <long-description><![CDATA[]]></long-description>
5107
- <tag line="1199" name="since" description="1.10"/>
5108
- <tag line="1199" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
5109
  <type by_reference="false">string</type>
5110
  </tag>
5111
- <tag line="1199" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
5112
  <type by_reference="false">array</type>
5113
  </tag>
5114
- <tag line="1199" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
5115
  <type by_reference="false">array</type>
5116
  </tag>
5117
- <tag line="1199" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
5118
  <type by_reference="false">integer</type>
5119
  </tag>
5120
- <tag line="1199" name="return" description="absolute_path, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes" type="array">
5121
  <type by_reference="false">array</type>
5122
  </tag>
5123
  </docblock>
5124
- <argument line="1211">
5125
  <name>$upload_dir</name>
5126
  <default><![CDATA[]]></default>
5127
  <type/>
5128
  </argument>
5129
- <argument line="1211">
5130
  <name>$wp_attached_files</name>
5131
  <default><![CDATA[]]></default>
5132
  <type/>
5133
  </argument>
5134
- <argument line="1211">
5135
  <name>$wp_attachment_metadata</name>
5136
  <default><![CDATA[]]></default>
5137
  <type/>
5138
  </argument>
5139
- <argument line="1211">
5140
  <name>$post_id</name>
5141
  <default><![CDATA[]]></default>
5142
  <type/>
5143
  </argument>
5144
  </method>
5145
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1280" package="Media Library Assistant">
5146
  <name>_evaluate_post_information</name>
5147
  <full_name>_evaluate_post_information</full_name>
5148
- <docblock line="1269">
5149
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
5150
  <long-description><![CDATA[]]></long-description>
5151
- <tag line="1269" name="since" description="1.40"/>
5152
- <tag line="1269" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
5153
  <type by_reference="false">integer</type>
5154
  </tag>
5155
- <tag line="1269" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
5156
  <type by_reference="false">string</type>
5157
  </tag>
5158
- <tag line="1269" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
5159
  <type by_reference="false">string</type>
5160
  </tag>
5161
- <tag line="1269" name="return" description="'post_date' =&gt; (string) upload date, 'post_parent' =&gt; (integer) ID of parent or zero )" type="mixed">
5162
  <type by_reference="false">mixed</type>
5163
  </tag>
5164
  </docblock>
5165
- <argument line="1280">
5166
  <name>$post_id</name>
5167
  <default><![CDATA[]]></default>
5168
  <type/>
5169
  </argument>
5170
- <argument line="1280">
5171
  <name>$category</name>
5172
  <default><![CDATA[]]></default>
5173
  <type/>
5174
  </argument>
5175
- <argument line="1280">
5176
  <name>$data_source</name>
5177
  <default><![CDATA[]]></default>
5178
  <type/>
5179
  </argument>
5180
  </method>
5181
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1314" package="Media Library Assistant">
5182
  <name>_evaluate_array_result</name>
5183
  <full_name>_evaluate_array_result</full_name>
5184
- <docblock line="1303">
5185
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
5186
  <long-description><![CDATA[]]></long-description>
5187
- <tag line="1303" name="since" description="1.40"/>
5188
- <tag line="1303" name="param" description="field value(s)" type="array" variable="$value">
5189
  <type by_reference="false">array</type>
5190
  </tag>
5191
- <tag line="1303" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
5192
  <type by_reference="false">string</type>
5193
  </tag>
5194
- <tag line="1303" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
5195
  <type by_reference="false">boolean</type>
5196
  </tag>
5197
- <tag line="1303" name="return" description="array for option = array|multi else string" type="mixed">
5198
  <type by_reference="false">mixed</type>
5199
  </tag>
5200
  </docblock>
5201
- <argument line="1314">
5202
  <name>$value</name>
5203
  <default><![CDATA[]]></default>
5204
  <type/>
5205
  </argument>
5206
- <argument line="1314">
5207
  <name>$option</name>
5208
  <default><![CDATA[]]></default>
5209
  <type/>
5210
  </argument>
5211
- <argument line="1314">
5212
  <name>$keep_existing</name>
5213
  <default><![CDATA[]]></default>
5214
  <type/>
5215
  </argument>
5216
  </method>
5217
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1350" package="Media Library Assistant">
5218
  <name>_evaluate_data_source</name>
5219
  <full_name>_evaluate_data_source</full_name>
5220
- <docblock line="1338">
5221
  <description><![CDATA[Evaluate custom field mapping data source]]></description>
5222
  <long-description><![CDATA[]]></long-description>
5223
- <tag line="1338" name="since" description="1.10"/>
5224
- <tag line="1338" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
5225
  <type by_reference="false">integer</type>
5226
  </tag>
5227
- <tag line="1338" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
5228
  <type by_reference="false">string</type>
5229
  </tag>
5230
- <tag line="1338" name="param" description="data source specification ( name, data_source, keep_existing, format, mla_column, quick_edit, bulk_edit, meta_name, no_null, option )" type="array" variable="$data_value">
5231
  <type by_reference="false">array</type>
5232
  </tag>
5233
- <tag line="1338" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
5234
  <type by_reference="false">array</type>
5235
  </tag>
5236
- <tag line="1338" name="return" description="data source value" type="string">
5237
  <type by_reference="false">string</type>
5238
  </tag>
5239
  </docblock>
5240
- <argument line="1350">
5241
  <name>$post_id</name>
5242
  <default><![CDATA[]]></default>
5243
  <type/>
5244
  </argument>
5245
- <argument line="1350">
5246
  <name>$category</name>
5247
  <default><![CDATA[]]></default>
5248
  <type/>
5249
  </argument>
5250
- <argument line="1350">
5251
  <name>$data_value</name>
5252
  <default><![CDATA[]]></default>
5253
  <type/>
5254
  </argument>
5255
- <argument line="1350">
5256
  <name>$attachment_metadata</name>
5257
  <default><![CDATA[NULL]]></default>
5258
  <type/>
5259
  </argument>
5260
  </method>
5261
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1683" package="Media Library Assistant">
5262
  <name>mla_evaluate_custom_field_mapping</name>
5263
  <full_name>mla_evaluate_custom_field_mapping</full_name>
5264
- <docblock line="1671">
5265
  <description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
5266
  <long-description><![CDATA[]]></long-description>
5267
- <tag line="1671" name="since" description="1.10"/>
5268
- <tag line="1671" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
5269
  <type by_reference="false">integer</type>
5270
  </tag>
5271
- <tag line="1671" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
5272
  <type by_reference="false">string</type>
5273
  </tag>
5274
- <tag line="1671" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
5275
  <type by_reference="false">array</type>
5276
  </tag>
5277
- <tag line="1671" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
5278
  <type by_reference="false">array</type>
5279
  </tag>
5280
- <tag line="1671" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
5281
  <type by_reference="false">array</type>
5282
  </tag>
5283
  </docblock>
5284
- <argument line="1683">
5285
  <name>$post_id</name>
5286
  <default><![CDATA[]]></default>
5287
  <type/>
5288
  </argument>
5289
- <argument line="1683">
5290
  <name>$category</name>
5291
  <default><![CDATA[]]></default>
5292
  <type/>
5293
  </argument>
5294
- <argument line="1683">
5295
  <name>$settings</name>
5296
  <default><![CDATA[NULL]]></default>
5297
  <type/>
5298
  </argument>
5299
- <argument line="1683">
5300
  <name>$attachment_metadata</name>
5301
  <default><![CDATA[NULL]]></default>
5302
  <type/>
5303
  </argument>
5304
  </method>
5305
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1752" package="Media Library Assistant">
5306
  <name>_compose_custom_field_option_list</name>
5307
  <full_name>_compose_custom_field_option_list</full_name>
5308
- <docblock line="1741">
5309
  <description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
5310
  <long-description><![CDATA[]]></long-description>
5311
- <tag line="1741" name="since" description="1.10"/>
5312
- <tag line="1741" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5313
- <tag line="1741" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
5314
  <type by_reference="false">string</type>
5315
  </tag>
5316
- <tag line="1741" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
5317
  <type by_reference="false">array</type>
5318
  </tag>
5319
- <tag line="1741" name="return" description="HTML markup with select field options" type="string">
5320
  <type by_reference="false">string</type>
5321
  </tag>
5322
  </docblock>
5323
- <argument line="1752">
5324
  <name>$selection</name>
5325
  <default><![CDATA['none']]></default>
5326
  <type/>
5327
  </argument>
5328
- <argument line="1752">
5329
  <name>$blacklist</name>
5330
  <default><![CDATA[array()]]></default>
5331
  <type/>
5332
  </argument>
5333
  </method>
5334
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1841" package="Media Library Assistant">
5335
  <name>_compose_data_source_option_list</name>
5336
  <full_name>_compose_data_source_option_list</full_name>
5337
- <docblock line="1831">
5338
  <description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
5339
  <long-description><![CDATA[]]></long-description>
5340
- <tag line="1831" name="since" description="1.10"/>
5341
- <tag line="1831" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5342
- <tag line="1831" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
5343
  <type by_reference="false">string</type>
5344
  </tag>
5345
- <tag line="1831" name="return" description="HTML markup with select field options" type="string">
5346
  <type by_reference="false">string</type>
5347
  </tag>
5348
  </docblock>
5349
- <argument line="1841">
5350
  <name>$selection</name>
5351
  <default><![CDATA['none']]></default>
5352
  <type/>
5353
  </argument>
5354
  </method>
5355
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1899" package="Media Library Assistant">
5356
  <name>_update_custom_field_mapping</name>
5357
  <full_name>_update_custom_field_mapping</full_name>
5358
- <docblock line="1889">
5359
  <description><![CDATA[Update custom field mappings]]></description>
5360
  <long-description><![CDATA[]]></long-description>
5361
- <tag line="1889" name="since" description="1.10"/>
5362
- <tag line="1889" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
5363
  <type by_reference="false">array</type>
5364
  </tag>
5365
- <tag line="1889" name="param" description="new values" type="array" variable="$new_values">
5366
  <type by_reference="false">array</type>
5367
  </tag>
5368
- <tag line="1889" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
5369
  <type by_reference="false">array</type>
5370
  </tag>
5371
  </docblock>
5372
- <argument line="1899">
5373
  <name>$current_values</name>
5374
  <default><![CDATA[]]></default>
5375
  <type/>
5376
  </argument>
5377
- <argument line="1899">
5378
  <name>$new_values</name>
5379
  <default><![CDATA[]]></default>
5380
  <type/>
5381
  </argument>
5382
  </method>
5383
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2090" package="Media Library Assistant">
5384
  <name>mla_custom_field_option_handler</name>
5385
  <full_name>mla_custom_field_option_handler</full_name>
5386
- <docblock line="2077">
5387
  <description><![CDATA[Render and manage custom field mapping options]]></description>
5388
  <long-description><![CDATA[]]></long-description>
5389
- <tag line="2077" name="since" description="1.10"/>
5390
- <tag line="2077" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5391
- <tag line="2077" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
5392
  <type by_reference="false">string</type>
5393
  </tag>
5394
- <tag line="2077" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
5395
  <type by_reference="false">string</type>
5396
  </tag>
5397
- <tag line="2077" name="param" description="option parameters" type="array" variable="$value">
5398
  <type by_reference="false">array</type>
5399
  </tag>
5400
- <tag line="2077" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
5401
  <type by_reference="false">array</type>
5402
  </tag>
5403
- <tag line="2077" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
5404
  <type by_reference="false">string</type>
5405
  </tag>
5406
  </docblock>
5407
- <argument line="2090">
5408
  <name>$action</name>
5409
  <default><![CDATA[]]></default>
5410
  <type/>
5411
  </argument>
5412
- <argument line="2090">
5413
  <name>$key</name>
5414
  <default><![CDATA[]]></default>
5415
  <type/>
5416
  </argument>
5417
- <argument line="2090">
5418
  <name>$value</name>
5419
  <default><![CDATA[]]></default>
5420
  <type/>
5421
  </argument>
5422
- <argument line="2090">
5423
  <name>$args</name>
5424
  <default><![CDATA[null]]></default>
5425
  <type/>
5426
  </argument>
5427
  </method>
5428
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2282" package="Media Library Assistant">
5429
  <name>mla_evaluate_iptc_exif_mapping</name>
5430
  <full_name>mla_evaluate_iptc_exif_mapping</full_name>
5431
- <docblock line="2271">
5432
  <description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
5433
  <long-description><![CDATA[]]></long-description>
5434
- <tag line="2271" name="since" description="1.00"/>
5435
- <tag line="2271" name="param" description="post object with current values" type="object" variable="$post">
5436
  <type by_reference="false">object</type>
5437
  </tag>
5438
- <tag line="2271" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
5439
  <type by_reference="false">string</type>
5440
  </tag>
5441
- <tag line="2271" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
5442
  <type by_reference="false">array</type>
5443
  </tag>
5444
- <tag line="2271" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
5445
  <type by_reference="false">array</type>
5446
  </tag>
5447
  </docblock>
5448
- <argument line="2282">
5449
  <name>$post</name>
5450
  <default><![CDATA[]]></default>
5451
  <type/>
5452
  </argument>
5453
- <argument line="2282">
5454
  <name>$category</name>
5455
  <default><![CDATA[]]></default>
5456
  <type/>
5457
  </argument>
5458
- <argument line="2282">
5459
  <name>$settings</name>
5460
  <default><![CDATA[NULL]]></default>
5461
  <type/>
5462
  </argument>
5463
  </method>
5464
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2455" package="Media Library Assistant">
5465
  <name>_compose_iptc_option_list</name>
5466
  <full_name>_compose_iptc_option_list</full_name>
5467
- <docblock line="2445">
5468
  <description><![CDATA[Compose an IPTC Options list with current selection]]></description>
5469
  <long-description><![CDATA[]]></long-description>
5470
- <tag line="2445" name="since" description="1.00"/>
5471
- <tag line="2445" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5472
- <tag line="2445" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
5473
  <type by_reference="false">string</type>
5474
  </tag>
5475
- <tag line="2445" name="return" description="HTML markup with select field options" type="string">
5476
  <type by_reference="false">string</type>
5477
  </tag>
5478
  </docblock>
5479
- <argument line="2455">
5480
  <name>$selection</name>
5481
  <default><![CDATA['none']]></default>
5482
  <type/>
5483
  </argument>
5484
  </method>
5485
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2488" package="Media Library Assistant">
5486
  <name>_compose_parent_option_list</name>
5487
  <full_name>_compose_parent_option_list</full_name>
5488
- <docblock line="2477">
5489
  <description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
5490
  <long-description><![CDATA[]]></long-description>
5491
- <tag line="2477" name="since" description="1.00"/>
5492
- <tag line="2477" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5493
- <tag line="2477" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
5494
  <type by_reference="false">string</type>
5495
  </tag>
5496
- <tag line="2477" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
5497
  <type by_reference="false">integer</type>
5498
  </tag>
5499
- <tag line="2477" name="return" description="HTML markup with select field options" type="string">
5500
  <type by_reference="false">string</type>
5501
  </tag>
5502
  </docblock>
5503
- <argument line="2488">
5504
  <name>$taxonomy</name>
5505
  <default><![CDATA[]]></default>
5506
  <type/>
5507
  </argument>
5508
- <argument line="2488">
5509
  <name>$selection</name>
5510
  <default><![CDATA[0]]></default>
5511
  <type/>
5512
  </argument>
5513
  </method>
5514
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2522" package="Media Library Assistant">
5515
  <name>_update_iptc_exif_standard_mapping</name>
5516
  <full_name>_update_iptc_exif_standard_mapping</full_name>
5517
- <docblock line="2512">
5518
  <description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
5519
  <long-description><![CDATA[]]></long-description>
5520
- <tag line="2512" name="since" description="1.00"/>
5521
- <tag line="2512" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
5522
  <type by_reference="false">array</type>
5523
  </tag>
5524
- <tag line="2512" name="param" description="new values" type="array" variable="$new_values">
5525
  <type by_reference="false">array</type>
5526
  </tag>
5527
- <tag line="2512" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
5528
  <type by_reference="false">array</type>
5529
  </tag>
5530
  </docblock>
5531
- <argument line="2522">
5532
  <name>$current_values</name>
5533
  <default><![CDATA[]]></default>
5534
  <type/>
5535
  </argument>
5536
- <argument line="2522">
5537
  <name>$new_values</name>
5538
  <default><![CDATA[]]></default>
5539
  <type/>
5540
  </argument>
5541
  </method>
5542
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2601" package="Media Library Assistant">
5543
  <name>_update_iptc_exif_taxonomy_mapping</name>
5544
  <full_name>_update_iptc_exif_taxonomy_mapping</full_name>
5545
- <docblock line="2591">
5546
  <description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
5547
  <long-description><![CDATA[]]></long-description>
5548
- <tag line="2591" name="since" description="1.00"/>
5549
- <tag line="2591" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
5550
  <type by_reference="false">array</type>
5551
  </tag>
5552
- <tag line="2591" name="param" description="new values" type="array" variable="$new_values">
5553
  <type by_reference="false">array</type>
5554
  </tag>
5555
- <tag line="2591" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
5556
  <type by_reference="false">array</type>
5557
  </tag>
5558
  </docblock>
5559
- <argument line="2601">
5560
  <name>$current_values</name>
5561
  <default><![CDATA[]]></default>
5562
  <type/>
5563
  </argument>
5564
- <argument line="2601">
5565
  <name>$new_values</name>
5566
  <default><![CDATA[]]></default>
5567
  <type/>
5568
  </argument>
5569
  </method>
5570
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2693" package="Media Library Assistant">
5571
  <name>_update_iptc_exif_custom_mapping</name>
5572
  <full_name>_update_iptc_exif_custom_mapping</full_name>
5573
- <docblock line="2683">
5574
  <description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
5575
  <long-description><![CDATA[]]></long-description>
5576
- <tag line="2683" name="since" description="1.00"/>
5577
- <tag line="2683" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
5578
  <type by_reference="false">array</type>
5579
  </tag>
5580
- <tag line="2683" name="param" description="new values" type="array" variable="$new_values">
5581
  <type by_reference="false">array</type>
5582
  </tag>
5583
- <tag line="2683" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
5584
  <type by_reference="false">array</type>
5585
  </tag>
5586
  </docblock>
5587
- <argument line="2693">
5588
  <name>$current_values</name>
5589
  <default><![CDATA[]]></default>
5590
  <type/>
5591
  </argument>
5592
- <argument line="2693">
5593
  <name>$new_values</name>
5594
  <default><![CDATA[]]></default>
5595
  <type/>
5596
  </argument>
5597
  </method>
5598
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2814" package="Media Library Assistant">
5599
  <name>_get_custom_field_names</name>
5600
  <full_name>_get_custom_field_names</full_name>
5601
- <docblock line="2807">
5602
  <description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
5603
- <long-description><![CDATA[]]></long-description>
5604
- <tag line="2807" name="since" description="1.00"/>
5605
- <tag line="2807" name="return" description="Custom field names from the postmeta table" type="array">
 
5606
  <type by_reference="false">array</type>
5607
  </tag>
5608
  </docblock>
5609
  </method>
5610
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2843" package="Media Library Assistant">
5611
  <name>mla_iptc_exif_option_handler</name>
5612
  <full_name>mla_iptc_exif_option_handler</full_name>
5613
- <docblock line="2830">
5614
  <description><![CDATA[Render and manage iptc/exif support options]]></description>
5615
  <long-description><![CDATA[]]></long-description>
5616
- <tag line="2830" name="since" description="1.00"/>
5617
- <tag line="2830" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5618
- <tag line="2830" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
5619
  <type by_reference="false">string</type>
5620
  </tag>
5621
- <tag line="2830" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
5622
  <type by_reference="false">string</type>
5623
  </tag>
5624
- <tag line="2830" name="param" description="option parameters" type="array" variable="$value">
5625
  <type by_reference="false">array</type>
5626
  </tag>
5627
- <tag line="2830" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
5628
  <type by_reference="false">array</type>
5629
  </tag>
5630
- <tag line="2830" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
5631
  <type by_reference="false">string</type>
5632
  </tag>
5633
  </docblock>
5634
- <argument line="2843">
5635
  <name>$action</name>
5636
  <default><![CDATA[]]></default>
5637
  <type/>
5638
  </argument>
5639
- <argument line="2843">
5640
  <name>$key</name>
5641
  <default><![CDATA[]]></default>
5642
  <type/>
5643
  </argument>
5644
- <argument line="2843">
5645
  <name>$value</name>
5646
  <default><![CDATA[]]></default>
5647
  <type/>
5648
  </argument>
5649
- <argument line="2843">
5650
  <name>$args</name>
5651
  <default><![CDATA[null]]></default>
5652
  <type/>
@@ -5654,7 +5844,7 @@ settings are being updated or reset.]]></description>
5654
  </method>
5655
  </class>
5656
  </file>
5657
- <file path="includes\class-mla-settings.php" hash="fd58e06d80dc0905f5da8e52b33d3983" package="Media Library Assistant">
5658
  <docblock line="2">
5659
  <description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
5660
  <long-description><![CDATA[]]></long-description>
@@ -6347,206 +6537,206 @@ add settings link in the Plugins section entry for MLA.]]></description>
6347
  </tag>
6348
  </docblock>
6349
  </method>
6350
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2467" package="Media Library Assistant">
6351
  <name>_save_view_settings</name>
6352
  <full_name>_save_view_settings</full_name>
6353
- <docblock line="2458">
6354
  <description><![CDATA[Save View settings to the options table]]></description>
6355
  <long-description><![CDATA[]]></long-description>
6356
- <tag line="2458" name="since" description="1.40"/>
6357
- <tag line="2458" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6358
- <tag line="2458" name="return" description="Message(s) reflecting the results of the operation" type="array">
6359
  <type by_reference="false">array</type>
6360
  </tag>
6361
  </docblock>
6362
  </method>
6363
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2498" package="Media Library Assistant">
6364
  <name>_save_upload_settings</name>
6365
  <full_name>_save_upload_settings</full_name>
6366
- <docblock line="2489">
6367
  <description><![CDATA[Save Upload settings to the options table]]></description>
6368
  <long-description><![CDATA[]]></long-description>
6369
- <tag line="2489" name="since" description="1.40"/>
6370
- <tag line="2489" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6371
- <tag line="2489" name="return" description="Message(s) reflecting the results of the operation" type="array">
6372
  <type by_reference="false">array</type>
6373
  </tag>
6374
  </docblock>
6375
  </method>
6376
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2534" package="Media Library Assistant">
6377
  <name>_process_custom_field_mapping</name>
6378
  <full_name>_process_custom_field_mapping</full_name>
6379
- <docblock line="2523">
6380
  <description><![CDATA[Process custom field settings against all image attachments
6381
  without saving the settings to the mla_option]]></description>
6382
  <long-description><![CDATA[]]></long-description>
6383
- <tag line="2523" name="since" description="1.10"/>
6384
- <tag line="2523" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6385
- <tag line="2523" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$settings">
6386
  <type by_reference="false">array</type>
6387
  </tag>
6388
- <tag line="2523" name="return" description="Message(s) reflecting the results of the operation" type="array">
6389
  <type by_reference="false">array</type>
6390
  </tag>
6391
  </docblock>
6392
- <argument line="2534">
6393
  <name>$settings</name>
6394
  <default><![CDATA[NULL]]></default>
6395
  <type/>
6396
  </argument>
6397
  </method>
6398
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2586" package="Media Library Assistant">
6399
  <name>_delete_custom_field</name>
6400
  <full_name>_delete_custom_field</full_name>
6401
- <docblock line="2577">
6402
  <description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
6403
  <long-description><![CDATA[]]></long-description>
6404
- <tag line="2577" name="since" description="1.10"/>
6405
- <tag line="2577" name="param" description="specific custom_field_mapping rule" type="array" variable="$value">
6406
  <type by_reference="false">array</type>
6407
  </tag>
6408
- <tag line="2577" name="return" description="Message(s) reflecting the results of the operation" type="array">
6409
  <type by_reference="false">array</type>
6410
  </tag>
6411
  </docblock>
6412
- <argument line="2586">
6413
  <name>$value</name>
6414
  <default><![CDATA[]]></default>
6415
  <type/>
6416
  </argument>
6417
  </method>
6418
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2610" package="Media Library Assistant">
6419
  <name>_save_custom_field_settings</name>
6420
  <full_name>_save_custom_field_settings</full_name>
6421
- <docblock line="2600">
6422
  <description><![CDATA[Save custom field settings to the options table]]></description>
6423
  <long-description><![CDATA[]]></long-description>
6424
- <tag line="2600" name="since" description="1.10"/>
6425
- <tag line="2600" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6426
- <tag line="2600" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$new_values">
6427
  <type by_reference="false">array</type>
6428
  </tag>
6429
- <tag line="2600" name="return" description="Message(s) reflecting the results of the operation" type="array">
6430
  <type by_reference="false">array</type>
6431
  </tag>
6432
  </docblock>
6433
- <argument line="2610">
6434
  <name>$new_values</name>
6435
  <default><![CDATA[NULL]]></default>
6436
  <type/>
6437
  </argument>
6438
  </method>
6439
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2650" package="Media Library Assistant">
6440
  <name>_process_iptc_exif_standard</name>
6441
  <full_name>_process_iptc_exif_standard</full_name>
6442
- <docblock line="2640">
6443
  <description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
6444
  without saving the settings to the mla_option]]></description>
6445
  <long-description><![CDATA[]]></long-description>
6446
- <tag line="2640" name="since" description="1.00"/>
6447
- <tag line="2640" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6448
- <tag line="2640" name="return" description="Message(s) reflecting the results of the operation" type="array">
6449
  <type by_reference="false">array</type>
6450
  </tag>
6451
  </docblock>
6452
  </method>
6453
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2700" package="Media Library Assistant">
6454
  <name>_process_iptc_exif_taxonomy</name>
6455
  <full_name>_process_iptc_exif_taxonomy</full_name>
6456
- <docblock line="2690">
6457
  <description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
6458
  without saving the settings to the mla_option]]></description>
6459
  <long-description><![CDATA[]]></long-description>
6460
- <tag line="2690" name="since" description="1.00"/>
6461
- <tag line="2690" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6462
- <tag line="2690" name="return" description="Message(s) reflecting the results of the operation" type="array">
6463
  <type by_reference="false">array</type>
6464
  </tag>
6465
  </docblock>
6466
  </method>
6467
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2753" package="Media Library Assistant">
6468
  <name>_process_iptc_exif_custom</name>
6469
  <full_name>_process_iptc_exif_custom</full_name>
6470
- <docblock line="2741">
6471
  <description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
6472
  without saving the settings to the mla_option]]></description>
6473
  <long-description><![CDATA[]]></long-description>
6474
- <tag line="2741" name="since" description="1.00"/>
6475
- <tag line="2741" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6476
- <tag line="2741" name="param" description="| NULL specific iptc_exif_custom_mapping values" type="array" variable="$settings">
6477
  <type by_reference="false">array</type>
6478
  </tag>
6479
- <tag line="2741" name="return" description="Message(s) reflecting the results of the operation" type="array">
6480
  <type by_reference="false">array</type>
6481
  </tag>
6482
  </docblock>
6483
- <argument line="2753">
6484
  <name>$settings</name>
6485
  <default><![CDATA[NULL]]></default>
6486
  <type/>
6487
  </argument>
6488
  </method>
6489
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2811" package="Media Library Assistant">
6490
  <name>_save_iptc_exif_custom_settings</name>
6491
  <full_name>_save_iptc_exif_custom_settings</full_name>
6492
- <docblock line="2802">
6493
  <description><![CDATA[Save IPTC/EXIF custom field settings to the options table]]></description>
6494
  <long-description><![CDATA[]]></long-description>
6495
- <tag line="2802" name="since" description="1.30"/>
6496
- <tag line="2802" name="param" description="specific iptc_exif_custom_mapping values" type="array" variable="$new_values">
6497
  <type by_reference="false">array</type>
6498
  </tag>
6499
- <tag line="2802" name="return" description="Message(s) reflecting the results of the operation" type="array">
6500
  <type by_reference="false">array</type>
6501
  </tag>
6502
  </docblock>
6503
- <argument line="2811">
6504
  <name>$new_values</name>
6505
  <default><![CDATA[]]></default>
6506
  <type/>
6507
  </argument>
6508
  </method>
6509
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2827" package="Media Library Assistant">
6510
  <name>_save_iptc_exif_settings</name>
6511
  <full_name>_save_iptc_exif_settings</full_name>
6512
- <docblock line="2818">
6513
  <description><![CDATA[Save IPTC/EXIF settings to the options table]]></description>
6514
  <long-description><![CDATA[]]></long-description>
6515
- <tag line="2818" name="since" description="1.00"/>
6516
- <tag line="2818" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6517
- <tag line="2818" name="return" description="Message(s) reflecting the results of the operation" type="array">
6518
  <type by_reference="false">array</type>
6519
  </tag>
6520
  </docblock>
6521
  </method>
6522
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2864" package="Media Library Assistant">
6523
  <name>_save_general_settings</name>
6524
  <full_name>_save_general_settings</full_name>
6525
- <docblock line="2855">
6526
  <description><![CDATA[Save General settings to the options table]]></description>
6527
  <long-description><![CDATA[]]></long-description>
6528
- <tag line="2855" name="since" description="0.1"/>
6529
- <tag line="2855" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6530
- <tag line="2855" name="return" description="Message(s) reflecting the results of the operation" type="array">
6531
  <type by_reference="false">array</type>
6532
  </tag>
6533
  </docblock>
6534
  </method>
6535
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2922" package="Media Library Assistant">
6536
  <name>_reset_general_settings</name>
6537
  <full_name>_reset_general_settings</full_name>
6538
- <docblock line="2915">
6539
  <description><![CDATA[Delete saved settings, restoring default values]]></description>
6540
  <long-description><![CDATA[]]></long-description>
6541
- <tag line="2915" name="since" description="0.1"/>
6542
- <tag line="2915" name="return" description="Message(s) reflecting the results of the operation" type="array">
6543
  <type by_reference="false">array</type>
6544
  </tag>
6545
  </docblock>
6546
  </method>
6547
  </class>
6548
  </file>
6549
- <file path="includes\class-mla-shortcodes.php" hash="99723b81ab78a1df150450b6ad58a610" package="Media Library Assistant">
6550
  <docblock line="2">
6551
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
6552
  <long-description><![CDATA[]]></long-description>
@@ -6587,10 +6777,10 @@ without saving the settings to the mla_option]]></description>
6587
  </tag>
6588
  </docblock>
6589
  </property>
6590
- <property final="false" static="true" visibility="private" line="1053" namespace="global" package="Media Library Assistant">
6591
  <name>$query_parameters</name>
6592
  <default><![CDATA[array()]]></default>
6593
- <docblock line="1039">
6594
  <description><![CDATA[WP_Query filter "parameters"]]></description>
6595
  <long-description><![CDATA[<p>This array defines parameters for the query's where and orderby filters,
6596
  mla_shortcode_query_posts_where_filter and mla_shortcode_query_posts_orderby_filter.
@@ -6598,20 +6788,20 @@ The parameters are set up in the mla_get_shortcode_attachments function, and
6598
  any further logic required to translate those values is contained in the filter.</p>
6599
 
6600
  <p>Array index values are: orderby, post_parent</p>]]></long-description>
6601
- <tag line="1039" name="since" description="1.13"/>
6602
- <tag line="1039" name="var" description="" type="array">
6603
  <type by_reference="false">array</type>
6604
  </tag>
6605
  </docblock>
6606
  </property>
6607
- <property final="false" static="true" visibility="private" line="1162" namespace="global" package="Media Library Assistant">
6608
  <name>$data_selection_parameters</name>
6609
- <default><![CDATA[array('order' => 'ASC', 'orderby' => 'menu_order,ID', 'id' => NULL, 'ids' => array(), 'include' => array(), 'exclude' => array(), 'post_parent' => NULL, 'author' => NULL, 'author_name' => '', 'cat' => 0, 'category_name' => '', 'category__and' => array(), 'category__in' => array(), 'category__not_in' => array(), 'tag' => '', 'tag_id' => 0, 'tag__and' => array(), 'tag__in' => array(), 'tag__not_in' => array(), 'tag_slug__and' => array(), 'tag_slug__in' => array(), 'tax_operator' => '', 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'image', 'nopaging' => true, 'numberposts' => 0, 'posts_per_page' => 0, 'posts_per_archive_page' => 0, 'paged' => NULL, 'offset' => NULL, 'meta_key' => '', 'meta_value' => '', 'meta_value_num' => NULL, 'meta_compare' => '', 'meta_query' => '', 's' => '')]]></default>
6610
- <docblock line="1155">
6611
  <description><![CDATA[Data selection parameters for the WP_Query in [mla_gallery]]]></description>
6612
  <long-description><![CDATA[]]></long-description>
6613
- <tag line="1155" name="since" description="1.30"/>
6614
- <tag line="1155" name="var" description="" type="array">
6615
  <type by_reference="false">array</type>
6616
  </tag>
6617
  </docblock>
@@ -6662,185 +6852,253 @@ Enhancements include many additional selection parameters and full taxonomy supp
6662
  <type/>
6663
  </argument>
6664
  </method>
6665
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1033" package="Media Library Assistant">
6666
  <name>_process_shortcode_parameter</name>
6667
  <full_name>_process_shortcode_parameter</full_name>
6668
- <docblock line="1023">
6669
  <description><![CDATA[Handles brace/bracket escaping and parses template for a shortcode parameter]]></description>
6670
  <long-description><![CDATA[]]></long-description>
6671
- <tag line="1023" name="since" description="1.14"/>
6672
- <tag line="1023" name="param" description="raw shortcode parameter, e.g., &quot;text {+field+} {brackets} \\{braces\\}&quot;" type="string" variable="$text">
6673
  <type by_reference="false">string</type>
6674
  </tag>
6675
- <tag line="1023" name="param" description="template substitution values, e.g., ('instance' =&gt; '1', ... )" type="string" variable="$markup_values">
6676
  <type by_reference="false">string</type>
6677
  </tag>
6678
- <tag line="1023" name="return" description="query specification with HTML escape sequences and line breaks removed" type="string">
6679
  <type by_reference="false">string</type>
6680
  </tag>
6681
  </docblock>
6682
- <argument line="1033">
6683
  <name>$text</name>
6684
  <default><![CDATA[]]></default>
6685
  <type/>
6686
  </argument>
6687
- <argument line="1033">
6688
  <name>$markup_values</name>
6689
  <default><![CDATA[]]></default>
6690
  <type/>
6691
  </argument>
6692
  </method>
6693
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1064" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6694
  <name>_sanitize_query_specification</name>
6695
  <full_name>_sanitize_query_specification</full_name>
6696
- <docblock line="1055">
6697
  <description><![CDATA[Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications]]></description>
6698
  <long-description><![CDATA[]]></long-description>
6699
- <tag line="1055" name="since" description="1.14"/>
6700
- <tag line="1055" name="param" description="query specification; PHP nested arrays" type="string" variable="$specification">
6701
  <type by_reference="false">string</type>
6702
  </tag>
6703
- <tag line="1055" name="return" description="query specification with HTML escape sequences and line breaks removed" type="string">
6704
  <type by_reference="false">string</type>
6705
  </tag>
6706
  </docblock>
6707
- <argument line="1064">
6708
  <name>$specification</name>
6709
  <default><![CDATA[]]></default>
6710
  <type/>
6711
  </argument>
6712
  </method>
6713
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1081" package="Media Library Assistant">
6714
  <name>_validate_sql_orderby</name>
6715
  <full_name>_validate_sql_orderby</full_name>
6716
- <docblock line="1070">
6717
  <description><![CDATA[Translates query parameters to a valid SQL order by clause.]]></description>
6718
  <long-description><![CDATA[<p>Accepts one or more valid columns, with or without ASC/DESC.
6719
  Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().</p>]]></long-description>
6720
- <tag line="1070" name="since" description="1.20"/>
6721
- <tag line="1070" name="param" description="Validated query parameters" type="array" variable="$query_parameters">
6722
  <type by_reference="false">array</type>
6723
  </tag>
6724
- <tag line="1070" name="return" description="Returns the orderby clause if present, false otherwise." type="string|bool">
6725
  <type by_reference="false">string</type>
6726
  <type by_reference="false">bool</type>
6727
  </tag>
6728
  </docblock>
6729
- <argument line="1081">
6730
  <name>$query_parameters</name>
6731
  <default><![CDATA[]]></default>
6732
  <type/>
6733
  </argument>
6734
  </method>
6735
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1225" package="Media Library Assistant">
6736
  <name>mla_get_shortcode_attachments</name>
6737
  <full_name>mla_get_shortcode_attachments</full_name>
6738
- <docblock line="1215">
6739
  <description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
6740
  <long-description><![CDATA[]]></long-description>
6741
- <tag line="1215" name="since" description=".50"/>
6742
- <tag line="1215" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
6743
  <type by_reference="false">int</type>
6744
  </tag>
6745
- <tag line="1215" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
6746
  <type by_reference="false">array</type>
6747
  </tag>
6748
- <tag line="1215" name="return" description="List of attachments returned from WP_Query" type="array">
 
 
 
6749
  <type by_reference="false">array</type>
6750
  </tag>
6751
  </docblock>
6752
- <argument line="1225">
6753
  <name>$post_parent</name>
6754
  <default><![CDATA[]]></default>
6755
  <type/>
6756
  </argument>
6757
- <argument line="1225">
6758
  <name>$attr</name>
6759
  <default><![CDATA[]]></default>
6760
  <type/>
6761
  </argument>
 
 
 
 
 
6762
  </method>
6763
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1563" package="Media Library Assistant">
6764
  <name>mla_shortcode_query_posts_where_filter</name>
6765
  <full_name>mla_shortcode_query_posts_where_filter</full_name>
6766
- <docblock line="1549">
6767
  <description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
6768
  <long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
6769
  phrase to circumvent subsequent Role Scoper modification of the clause.
6770
  Handles post_parent "any" and "none" cases.
6771
  Defined as public because it's a filter.</p>]]></long-description>
6772
- <tag line="1549" name="since" description="0.70"/>
6773
- <tag line="1549" name="param" description="query clause before modification" type="string" variable="$where_clause">
6774
  <type by_reference="false">string</type>
6775
  </tag>
6776
- <tag line="1549" name="return" description="query clause after modification" type="string">
6777
  <type by_reference="false">string</type>
6778
  </tag>
6779
  </docblock>
6780
- <argument line="1563">
6781
  <name>$where_clause</name>
6782
  <default><![CDATA[]]></default>
6783
  <type/>
6784
  </argument>
6785
  </method>
6786
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1604" package="Media Library Assistant">
6787
  <name>mla_shortcode_query_posts_orderby_filter</name>
6788
  <full_name>mla_shortcode_query_posts_orderby_filter</full_name>
6789
- <docblock line="1592">
6790
  <description><![CDATA[Filters the ORDERBY clause for shortcode queries]]></description>
6791
  <long-description><![CDATA[<p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
6792
  Defined as public because it's a filter.</p>]]></long-description>
6793
- <tag line="1592" name="since" description="1.20"/>
6794
- <tag line="1592" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
6795
  <type by_reference="false">string</type>
6796
  </tag>
6797
- <tag line="1592" name="return" description="query clause after modification" type="string">
6798
  <type by_reference="false">string</type>
6799
  </tag>
6800
  </docblock>
6801
- <argument line="1604">
6802
  <name>$orderby_clause</name>
6803
  <default><![CDATA[]]></default>
6804
  <type/>
6805
  </argument>
6806
  </method>
6807
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1629" package="Media Library Assistant">
6808
  <name>mla_shortcode_query_posts_clauses_filter</name>
6809
  <full_name>mla_shortcode_query_posts_clauses_filter</full_name>
6810
- <docblock line="1617">
6811
  <description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
6812
  <long-description><![CDATA[<p>This is for debug purposes only.
6813
  Defined as public because it's a filter.</p>]]></long-description>
6814
- <tag line="1617" name="since" description="1.30"/>
6815
- <tag line="1617" name="param" description="query clauses before modification" type="array" variable="$pieces">
6816
  <type by_reference="false">array</type>
6817
  </tag>
6818
- <tag line="1617" name="return" description="query clauses after modification (none)" type="array">
6819
  <type by_reference="false">array</type>
6820
  </tag>
6821
  </docblock>
6822
- <argument line="1629">
6823
  <name>$pieces</name>
6824
  <default><![CDATA[]]></default>
6825
  <type/>
6826
  </argument>
6827
  </method>
6828
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1647" package="Media Library Assistant">
6829
  <name>mla_shortcode_query_posts_clauses_request_filter</name>
6830
  <full_name>mla_shortcode_query_posts_clauses_request_filter</full_name>
6831
- <docblock line="1635">
6832
  <description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
6833
  <long-description><![CDATA[<p>This is for debug purposes only.
6834
  Defined as public because it's a filter.</p>]]></long-description>
6835
- <tag line="1635" name="since" description="1.30"/>
6836
- <tag line="1635" name="param" description="query clauses before modification" type="array" variable="$pieces">
6837
  <type by_reference="false">array</type>
6838
  </tag>
6839
- <tag line="1635" name="return" description="query clauses after modification (none)" type="array">
6840
  <type by_reference="false">array</type>
6841
  </tag>
6842
  </docblock>
6843
- <argument line="1647">
6844
  <name>$pieces</name>
6845
  <default><![CDATA[]]></default>
6846
  <type/>
@@ -8497,13 +8755,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
8497
  </docblock>
8498
  </function>
8499
  </file>
8500
- <file path="index.php" hash="984eea0f669aa25facb067b5cfd74557" package="Media Library Assistant">
8501
  <docblock line="2">
8502
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
8503
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
8504
  will the rest of the plugin be loaded and run.</p>]]></long-description>
8505
  <tag line="2" name="package" description="Media Library Assistant"/>
8506
- <tag line="2" name="version" description="1.41"/>
8507
  </docblock>
8508
  <include line="109" type="Require Once" package="Media Library Assistant">
8509
  <name>includes/mla-plugin-loader.php</name>
@@ -8622,7 +8880,7 @@ to ensure the plugin can run in the current WordPress envrionment.]]></descripti
8622
  </file>
8623
  <package name="Media Library Assistant" full_name="Media Library Assistant"/>
8624
  <namespace name="global" full_name="global"/>
8625
- <marker count="0">todo</marker>
8626
  <marker count="0">fixme</marker>
8627
  <deprecated count="0"/>
8628
  </project>
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="a47eed19b7b4a278fe474cdfefc11ab9" 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>
68
  </tag>
69
  </docblock>
70
  </property>
71
+ <property final="false" static="true" visibility="private" line="1467" namespace="global" package="Media Library Assistant">
72
  <name>$galleries</name>
73
  <default><![CDATA[null]]></default>
74
+ <docblock line="1448">
75
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
76
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
77
  and array(s) of which attachments each [gallery] contains. The arrays are built once
84
  ['galleries'] array of [gallery] entries numbered from one (1), containing:
85
  galleries[X]['query'] contains a string with the arguments of the [gallery],
86
  galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
87
+ <tag line="1448" name="since" description="0.70"/>
88
+ <tag line="1448" name="var" description="" type="array">
89
  <type by_reference="false">array</type>
90
  </tag>
91
  </docblock>
92
  </property>
93
+ <property final="false" static="true" visibility="private" line="1480" namespace="global" package="Media Library Assistant">
94
  <name>$mla_galleries</name>
95
  <default><![CDATA[null]]></default>
96
+ <docblock line="1469">
97
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
98
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
99
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
100
  each page load and cached for subsequent calls.</p>]]></long-description>
101
+ <tag line="1469" name="since" description="0.70"/>
102
+ <tag line="1469" name="var" description="" type="array">
103
  <type by_reference="false">array</type>
104
  </tag>
105
  </docblock>
106
  </property>
107
+ <property final="false" static="true" visibility="private" line="1663" namespace="global" package="Media Library Assistant">
108
  <name>$pdf_indirect_objects</name>
109
  <default><![CDATA[NULL]]></default>
110
+ <docblock line="1654">
111
  <description><![CDATA[Array of PDF indirect objects]]></description>
112
  <long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths</p>]]></long-description>
113
+ <tag line="1654" name="since" description="1.4x"/>
114
+ <tag line="1654" name="var" description="" type="array">
115
  <type by_reference="false">array</type>
116
  </tag>
117
  </docblock>
118
  </property>
119
+ <property final="false" static="true" visibility="private" line="2037" namespace="global" package="Media Library Assistant">
120
  <name>$utf8_chars</name>
121
  <default><![CDATA[array("\xC2\x80", "\xC2\x81", "\xC2\x82", "\xC2\x83", "\xC2\x84", "\xC2\x85", "\xC2\x86", "\xC2\x87", "\xC2\x88", "\xC2\x89", "\xC2\x8A", "\xC2\x8B", "\xC2\x8C", "\xC2\x8D", "\xC2\x8E", "\xC2\x8F", "\xC2\x90", "\xC2\x91", "\xC2\x92", "\xC2\x93", "\xC2\x94", "\xC2\x95", "\xC2\x96", "\xC2\x97", "\xC2\x98", "\xC2\x99", "\xC2\x9A", "\xC2\x9B", "\xC2\x9C", "\xC2\x9D", "\xC2\x9E", "\xC2\x9F", "\xC2\xA0", "\xC2\xA1", "\xC2\xA2", "\xC2\xA3", "\xC2\xA4", "\xC2\xA5", "\xC2\xA6", "\xC2\xA7", "\xC2\xA8", "\xC2\xA9", "\xC2\xAA", "\xC2\xAB", "\xC2\xAC", "\xC2\xAD", "\xC2\xAE", "\xC2\xAF", "\xC2\xB0", "\xC2\xB1", "\xC2\xB2", "\xC2\xB3", "\xC2\xB4", "\xC2\xB5", "\xC2\xB6", "\xC2\xB7", "\xC2\xB8", "\xC2\xB9", "\xC2\xBA", "\xC2\xBB", "\xC2\xBC", "\xC2\xBD", "\xC2\xBE", "\xC2\xBF", "\xC3\x80", "\xC3\x81", "\xC3\x82", "\xC3\x83", "\xC3\x84", "\xC3\x85", "\xC3\x86", "\xC3\x87", "\xC3\x88", "\xC3\x89", "\xC3\x8A", "\xC3\x8B", "\xC3\x8C", "\xC3\x8D", "\xC3\x8E", "\xC3\x8F", "\xC3\x90", "\xC3\x91", "\xC3\x92", "\xC3\x93", "\xC3\x94", "\xC3\x95", "\xC3\x96", "\xC3\x97", "\xC3\x98", "\xC3\x99", "\xC3\x9A", "\xC3\x9B", "\xC3\x9C", "\xC3\x9D", "\xC3\x9E", "\xC3\x9F", "\xC3\xA0", "\xC3\xA1", "\xC3\xA2", "\xC3\xA3", "\xC3\xA4", "\xC3\xA5", "\xC3\xA6", "\xC3\xA7", "\xC3\xA8", "\xC3\xA9", "\xC3\xAA", "\xC3\xAB", "\xC3\xAC", "\xC3\xAD", "\xC3\xAE", "\xC3\xAF", "\xC3\xB0", "\xC3\xB1", "\xC3\xB2", "\xC3\xB3", "\xC3\xB4", "\xC3\xB5", "\xC3\xB6", "\xC3\xB7", "\xC3\xB8", "\xC3\xB9", "\xC3\xBA", "\xC3\xBB", "\xC3\xBC", "\xC3\xBD", "\xC3\xBE", "\xC3\xBF")]]></default>
122
+ <docblock line="2030">
123
  <description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
124
  <long-description><![CDATA[]]></long-description>
125
+ <tag line="2030" name="since" description="1.41"/>
126
+ <tag line="2030" name="var" description="" type="array">
127
  <type by_reference="false">array</type>
128
  </tag>
129
  </docblock>
130
  </property>
131
+ <property final="false" static="true" visibility="private" line="2095" namespace="global" package="Media Library Assistant">
132
  <name>$mla_iptc_records</name>
133
  <default><![CDATA[array("1#000" => "Model Version", "1#005" => "Destination", "1#020" => "File Format", "1#022" => "File Format Version", "1#030" => "Service Identifier", "1#040" => "Envelope Number", "1#050" => "Product ID", "1#060" => "Envelope Priority", "1#070" => "Date Sent", "1#080" => "Time Sent", "1#090" => "Coded Character Set", "1#100" => "UNO", "1#120" => "ARM Identifier", "1#122" => "ARM Version", "2#000" => "Record Version", "2#003" => "Object Type Reference", "2#004" => "Object Attribute Reference", "2#005" => "Object Name", "2#007" => "Edit Status", "2#008" => "Editorial Update", "2#010" => "Urgency", "2#012" => "Subject Reference", "2#015" => "Category", "2#020" => "Supplemental Category", "2#022" => "Fixture Identifier", "2#025" => "Keywords", "2#026" => "Content Location Code", "2#027" => "Content Location Name", "2#030" => "Release Date", "2#035" => "Release Time", "2#037" => "Expiration Date", "2#038" => "Expiration Time", "2#040" => "Special Instructions", "2#042" => "Action Advised", "2#045" => "Reference Service", "2#047" => "Reference Date", "2#050" => "Reference Number", "2#055" => "Date Created", "2#060" => "Time Created", "2#062" => "Digital Creation Date", "2#063" => "Digital Creation Time", "2#065" => "Originating Program", "2#070" => "Program Version", "2#075" => "Object Cycle", "2#080" => "By-line", "2#085" => "By-line Title", "2#090" => "City", "2#092" => "Sub-location", "2#095" => "Province or State", "2#100" => "Country or Primary Location Code", "2#101" => "Country or Primary Location Name", "2#103" => "Original Transmission Reference", "2#105" => "Headline", "2#110" => "Credit", "2#115" => "Source", "2#116" => "Copyright Notice", "2#118" => "Contact", "2#120" => "Caption or Abstract", "2#122" => "Caption Writer or Editor", "2#125" => "Rasterized Caption", "2#130" => "Image Type", "2#131" => "Image Orientation", "2#135" => "Language Identifier", "2#150" => "Audio Type", "2#151" => "Audio Sampling Rate", "2#152" => "Audio Sampling Resolution", "2#153" => "Audio Duration", "2#154" => "Audio Outcue", "2#200" => "ObjectData Preview File Format", "2#201" => "ObjectData Preview File Format Version", "2#202" => "ObjectData Preview Data", "7#010" => "Size Mode", "7#020" => "Max Subfile Size", "7#090" => "ObjectData Size Announced", "7#095" => "Maximum ObjectData Size", "8#010" => "Subfile", "9#010" => "Confirmed ObjectData Size")]]></default>
134
+ <docblock line="2085">
135
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
136
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
137
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
138
+ <tag line="2085" name="since" description="0.90"/>
139
+ <tag line="2085" name="var" description="" type="array">
140
  <type by_reference="false">array</type>
141
  </tag>
142
  </docblock>
143
  </property>
144
+ <property final="false" static="true" visibility="public" line="2194" namespace="global" package="Media Library Assistant">
145
  <name>$mla_iptc_keys</name>
146
  <default><![CDATA[array('model-version' => '1#000', 'destination' => '1#005', 'file-format' => '1#020', 'file-format-version' => '1#022', 'service-identifier' => '1#030', 'envelope-number' => '1#040', 'product-id' => '1#050', 'envelope-priority' => '1#060', 'date-sent' => '1#070', 'time-sent' => '1#080', 'coded-character-set' => '1#090', 'uno' => '1#100', 'arm-identifier' => '1#120', 'arm-version' => '1#122', 'record-version' => '2#000', 'object-type-reference' => '2#003', 'object-attribute-reference' => '2#004', 'object-name' => '2#005', 'edit-status' => '2#007', 'editorial-update' => '2#008', 'urgency' => '2#010', 'subject-reference' => '2#012', 'category' => '2#015', 'supplemental-category' => '2#020', 'fixture-identifier' => '2#022', 'keywords' => '2#025', 'content-location-code' => '2#026', 'content-location-name' => '2#027', 'release-date' => '2#030', 'release-time' => '2#035', 'expiration-date' => '2#037', 'expiration-time' => '2#038', 'special-instructions' => '2#040', 'action-advised' => '2#042', 'reference-service' => '2#045', 'reference-date' => '2#047', 'reference-number' => '2#050', 'date-created' => '2#055', 'time-created' => '2#060', 'digital-creation-date' => '2#062', 'digital-creation-time' => '2#063', 'originating-program' => '2#065', 'program-version' => '2#070', 'object-cycle' => '2#075', 'by-line' => '2#080', 'by-line-title' => '2#085', 'city' => '2#090', 'sub-location' => '2#092', 'province-or-state' => '2#095', 'country-or-primary-location-code' => '2#100', 'country-or-primary-location-name' => '2#101', 'original-transmission-reference' => '2#103', 'headline' => '2#105', 'credit' => '2#110', 'source' => '2#115', 'copyright-notice' => '2#116', 'contact' => '2#118', 'caption-or-abstract' => '2#120', 'caption-writer-or-editor' => '2#122', 'rasterized-caption' => '2#125', 'image-type' => '2#130', 'image-orientation' => '2#131', 'language-identifier' => '2#135', 'audio-type' => '2#150', 'audio-sampling-rate' => '2#151', 'audio-sampling-resolution' => '2#152', 'audio-duration' => '2#153', 'audio-outcue' => '2#154', 'objectdata-preview-file-format' => '2#200', 'objectdata-preview-file-format-version' => '2#201', 'objectdata-preview-data' => '2#202', 'size-mode' => '7#010', 'max-subfile-size' => '7#020', 'objectdata-size-announced' => '7#090', 'maximum-objectdata-size' => '7#095', 'subfile' => '8#010', 'confirmed-objectdata-size' => '9#010')]]></default>
147
+ <docblock line="2184">
148
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
149
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
150
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
151
+ <tag line="2184" name="since" description="0.90"/>
152
+ <tag line="2184" name="var" description="" type="array">
153
  <type by_reference="false">array</type>
154
  </tag>
155
  </docblock>
156
  </property>
157
+ <property final="false" static="true" visibility="private" line="2293" namespace="global" package="Media Library Assistant">
158
  <name>$mla_iptc_descriptions</name>
159
  <default><![CDATA[array("1#000" => "2 octet binary IIM version number", "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable", "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A", "1#022" => "2 octet binary file format version number", "1#030" => "Max 10 characters of Service Identifier and product", "1#040" => "8 Character Envelope Number", "1#050" => "Max 32 characters subset of provider's overall service; repeatable", "1#060" => "1 numeric character of envelope handling priority (not urgency)", "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD", "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM", "1#090" => "Max 32 characters of control functions, etc.", "1#100" => "14 to 80 characters of eternal, globally unique identification for objects", "1#120" => "2 octet binary Abstract Relationship Model Identifier", "1#122" => "2 octet binary Abstract Relationship Model Version", "2#000" => "2 octet binary Information Interchange Model, Part II version number", "2#003" => "3 to 67 Characters of Object Type Reference number and optional text", "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable", "2#005" => "Max 64 characters of the object name or shorthand reference", "2#007" => "Max 64 characters of the status of the objectdata", "2#008" => "2 numeric characters of the type of update this object provides", "2#010" => "1 numeric character of the editorial urgency of content", "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable", "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED", "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable", "2#022" => "Max 32 characters identifying recurring, predictable content", "2#025" => "Max 64 characters (each) of tags; repeatable", "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable", "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable", "2#030" => "8 numeric characters of Release Date - CCYYMMDD", "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM", "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD", "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM", "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings", "2#042" => "2 numeric characters of type of action this object provides to a previous object", "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable", "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable", "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable", "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD", "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM", "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD", "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM", "2#065" => "Max 32 characters of the program used to create the objectdata", "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata", "2#075" => "1 character where a=morning, p=evening, b=both", "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable", "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable", "2#090" => "Max 32 Characters of the city of objectdata origin", "2#092" => "Max 32 Characters of the location within the city of objectdata origin", "2#095" => "Max 32 Characters of the objectdata origin Province or State", "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin", "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin", "2#103" => "Max 32 characters of a code representing the location of original transmission", "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata", "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)", "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content", "2#116" => "Max 128 Characters that contains any necessary copyright notice", "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable", "2#120" => "Max 2000 Characters of a textual description of the objectdata", "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable", "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image", "2#130" => "2 characters of color composition type and information", "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square", "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes", "2#150" => "2 characters identifying monaural/stereo and exact type of audio content", "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)", "2#152" => "2 numeric characters representing the number of bits in each audio sample", "2#153" => "6 numeric characters of the Audio Duration - HHMMSS", "2#154" => "Max 64 characters of the content of the end of an audio objectdata", "2#200" => "2 octet binary file format of the ObjectData Preview", "2#201" => "2 octet binary particular version of the ObjectData Preview File Format", "2#202" => "Max 256000 binary octets containing the ObjectData Preview data", "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer", "7#020" => "4 octet binary maximum subfile dataset(s) size", "7#090" => "4 octet binary objectdata size if known at beginning of transfer", "7#095" => "4 octet binary largest possible objectdata size", "8#010" => "Subfile DataSet containing the objectdata itself; repeatable", "9#010" => "4 octet binary total objectdata size")]]></default>
160
+ <docblock line="2283">
161
  <description><![CDATA[IPTC Dataset descriptions]]></description>
162
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
163
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
164
+ <tag line="2283" name="since" description="0.90"/>
165
+ <tag line="2283" name="var" description="" type="array">
166
  <type by_reference="false">array</type>
167
  </tag>
168
  </docblock>
169
  </property>
170
+ <property final="false" static="true" visibility="private" line="2392" namespace="global" package="Media Library Assistant">
171
  <name>$mla_iptc_formats</name>
172
  <default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 0 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 0 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
173
+ <docblock line="2382">
174
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
175
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
176
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
177
+ <tag line="2382" name="since" description="0.90"/>
178
+ <tag line="2382" name="var" description="" type="array">
179
  <type by_reference="false">array</type>
180
  </tag>
181
  </docblock>
182
  </property>
183
+ <property final="false" static="true" visibility="private" line="2435" namespace="global" package="Media Library Assistant">
184
  <name>$mla_iptc_image_types</name>
185
  <default><![CDATA[array("M" => "Monochrome", "Y" => "Yellow Component", "M" => "Magenta Component", "C" => "Cyan Component", "K" => "Black Component", "R" => "Red Component", "G" => "Green Component", "B" => "Blue Component", "T" => "Text Only", "F" => "Full colour composite, frame sequential", "L" => "Full colour composite, line sequential", "P" => "Full colour composite, pixel sequential", "S" => "Full colour composite, special interleaving")]]></default>
186
+ <docblock line="2425">
187
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
188
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
189
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
190
+ <tag line="2425" name="since" description="0.90"/>
191
+ <tag line="2425" name="var" description="" type="array">
192
  <type by_reference="false">array</type>
193
  </tag>
194
  </docblock>
429
  <type/>
430
  </argument>
431
  </method>
432
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="651" package="Media Library Assistant">
433
  <name>_execute_list_table_query</name>
434
  <full_name>_execute_list_table_query</full_name>
435
+ <docblock line="642">
436
  <description><![CDATA[Add filters, run query, remove filters]]></description>
437
  <long-description><![CDATA[]]></long-description>
438
+ <tag line="642" name="since" description="0.30"/>
439
+ <tag line="642" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
440
  <type by_reference="false">array</type>
441
  </tag>
442
+ <tag line="642" name="return" description="WP_Query object with query results" type="object">
443
  <type by_reference="false">object</type>
444
  </tag>
445
  </docblock>
446
+ <argument line="651">
447
  <name>$request</name>
448
  <default><![CDATA[]]></default>
449
  <type/>
450
  </argument>
451
  </method>
452
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="728" package="Media Library Assistant">
453
  <name>mla_query_posts_search_filter</name>
454
  <full_name>mla_query_posts_search_filter</full_name>
455
+ <docblock line="716">
456
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
457
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
458
+ <tag line="716" name="since" description="0.60"/>
459
+ <tag line="716" name="param" description="query clause before modification" type="string" variable="$search_string">
460
  <type by_reference="false">string</type>
461
  </tag>
462
+ <tag line="716" name="param" description="WP_Query object" type="object" variable="$query_object">
463
  <type by_reference="false">object</type>
464
  </tag>
465
+ <tag line="716" name="return" description="query clause after keyword search addition" type="string">
466
  <type by_reference="false">string</type>
467
  </tag>
468
  </docblock>
469
+ <argument line="728">
470
  <name>$search_string</name>
471
  <default><![CDATA[]]></default>
472
  <type/>
473
  </argument>
474
+ <argument line="728">
475
  <name>$query_object</name>
476
  <default><![CDATA[]]></default>
477
  <type/>
478
  </argument>
479
  </method>
480
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="839" package="Media Library Assistant">
481
  <name>mla_query_posts_join_filter</name>
482
  <full_name>mla_query_posts_join_filter</full_name>
483
+ <docblock line="828">
484
  <description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
485
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
486
+ <tag line="828" name="since" description="0.30"/>
487
+ <tag line="828" name="param" description="query clause before modification" type="string" variable="$join_clause">
488
  <type by_reference="false">string</type>
489
  </tag>
490
+ <tag line="828" name="return" description="query clause after &quot;LEFT JOIN view ON post_id&quot; item modification" type="string">
491
  <type by_reference="false">string</type>
492
  </tag>
493
  </docblock>
494
+ <argument line="839">
495
  <name>$join_clause</name>
496
  <default><![CDATA[]]></default>
497
  <type/>
498
  </argument>
499
  </method>
500
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="866" package="Media Library Assistant">
501
  <name>mla_query_posts_where_filter</name>
502
  <full_name>mla_query_posts_where_filter</full_name>
503
+ <docblock line="854">
504
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
505
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
506
  Defined as public because it's a filter.</p>]]></long-description>
507
+ <tag line="854" name="since" description="0.1"/>
508
+ <tag line="854" name="param" description="query clause before modification" type="string" variable="$where_clause">
509
  <type by_reference="false">string</type>
510
  </tag>
511
+ <tag line="854" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
512
  <type by_reference="false">string</type>
513
  </tag>
514
  </docblock>
515
+ <argument line="866">
516
  <name>$where_clause</name>
517
  <default><![CDATA[]]></default>
518
  <type/>
519
  </argument>
520
  </method>
521
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="914" package="Media Library Assistant">
522
  <name>mla_query_posts_orderby_filter</name>
523
  <full_name>mla_query_posts_orderby_filter</full_name>
524
+ <docblock line="902">
525
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
526
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
527
  Defined as public because it's a filter.</p>]]></long-description>
528
+ <tag line="902" name="since" description="0.30"/>
529
+ <tag line="902" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
530
  <type by_reference="false">string</type>
531
  </tag>
532
+ <tag line="902" name="return" description="updated query clause" type="string">
533
  <type by_reference="false">string</type>
534
  </tag>
535
  </docblock>
536
+ <argument line="914">
537
  <name>$orderby_clause</name>
538
  <default><![CDATA[]]></default>
539
  <type/>
540
  </argument>
541
  </method>
542
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="973" package="Media Library Assistant">
543
  <name>mla_get_attachment_by_id</name>
544
  <full_name>mla_get_attachment_by_id</full_name>
545
+ <docblock line="961">
546
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
547
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
548
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
549
+ <tag line="961" name="since" description="0.1"/>
550
+ <tag line="961" name="uses" description="\global\$post" refers="\global\$post"/>
551
+ <tag line="961" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
552
  <type by_reference="false">int</type>
553
  </tag>
554
+ <tag line="961" name="return" description="NULL on failure else associative array" type="NULL|array">
555
  <type by_reference="false">NULL</type>
556
  <type by_reference="false">array</type>
557
  </tag>
558
  </docblock>
559
+ <argument line="973">
560
  <name>$post_id</name>
561
  <default><![CDATA[]]></default>
562
  <type/>
563
  </argument>
564
  </method>
565
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1027" package="Media Library Assistant">
566
  <name>mla_fetch_attachment_parent_data</name>
567
  <full_name>mla_fetch_attachment_parent_data</full_name>
568
+ <docblock line="1018">
569
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
570
  <long-description><![CDATA[]]></long-description>
571
+ <tag line="1018" name="since" description="0.1"/>
572
+ <tag line="1018" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
573
  <type by_reference="false">int</type>
574
  </tag>
575
+ <tag line="1018" name="return" description="Parent information; post_date, post_title and post_type" type="array">
576
  <type by_reference="false">array</type>
577
  </tag>
578
  </docblock>
579
+ <argument line="1027">
580
  <name>$parent_id</name>
581
  <default><![CDATA[]]></default>
582
  <type/>
583
  </argument>
584
  </method>
585
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1063" package="Media Library Assistant">
586
  <name>mla_find_array_element</name>
587
  <full_name>mla_find_array_element</full_name>
588
+ <docblock line="1048">
589
  <description><![CDATA[Finds the value of a key in a possibily nested array structure]]></description>
590
  <long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
591
  Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
592
+ <tag line="1048" name="since" description="1.30"/>
593
+ <tag line="1048" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
594
  <type by_reference="false">string</type>
595
  </tag>
596
+ <tag line="1048" name="param" description="PHP nested arrays" type="array" variable="$haystack">
597
  <type by_reference="false">array</type>
598
  </tag>
599
+ <tag line="1048" name="param" description="format option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
600
  <type by_reference="false">string</type>
601
  </tag>
602
+ <tag line="1048" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
603
  <type by_reference="false">boolean</type>
604
  </tag>
605
+ <tag line="1048" name="return" description="value matching key(.key ...) or ''" type="string">
606
  <type by_reference="false">string</type>
607
  </tag>
608
  </docblock>
609
+ <argument line="1063">
610
  <name>$needle</name>
611
  <default><![CDATA[]]></default>
612
  <type/>
613
  </argument>
614
+ <argument line="1063">
615
  <name>$haystack</name>
616
  <default><![CDATA[]]></default>
617
  <type/>
618
  </argument>
619
+ <argument line="1063">
620
  <name>$option</name>
621
  <default><![CDATA[]]></default>
622
  <type/>
623
  </argument>
624
+ <argument line="1063">
625
  <name>$keep_existing</name>
626
  <default><![CDATA[false]]></default>
627
  <type/>
628
  </argument>
629
  </method>
630
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1115" package="Media Library Assistant">
631
  <name>mla_fetch_attachment_metadata</name>
632
  <full_name>mla_fetch_attachment_metadata</full_name>
633
+ <docblock line="1102">
634
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
635
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
636
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
637
  a string containing the first array element.</p>]]></long-description>
638
+ <tag line="1102" name="since" description="0.1"/>
639
+ <tag line="1102" name="param" description="post ID of attachment" type="int" variable="$post_id">
640
  <type by_reference="false">int</type>
641
  </tag>
642
+ <tag line="1102" name="return" description="Meta data variables" type="array">
643
  <type by_reference="false">array</type>
644
  </tag>
645
  </docblock>
646
+ <argument line="1115">
647
  <name>$post_id</name>
648
  <default><![CDATA[]]></default>
649
  <type/>
650
  </argument>
651
  </method>
652
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1187" package="Media Library Assistant">
653
  <name>mla_fetch_attachment_references</name>
654
  <full_name>mla_fetch_attachment_references</full_name>
655
+ <docblock line="1174">
656
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
657
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
658
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
659
+ <tag line="1174" name="since" description="0.1"/>
660
+ <tag line="1174" name="param" description="post ID of attachment" type="int" variable="$ID">
661
  <type by_reference="false">int</type>
662
  </tag>
663
+ <tag line="1174" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
664
  <type by_reference="false">int</type>
665
  </tag>
666
+ <tag line="1174" name="return" description="Reference information; see $references array comments" type="array">
667
  <type by_reference="false">array</type>
668
  </tag>
669
  </docblock>
670
+ <argument line="1187">
671
  <name>$ID</name>
672
  <default><![CDATA[]]></default>
673
  <type/>
674
  </argument>
675
+ <argument line="1187">
676
  <name>$parent</name>
677
  <default><![CDATA[]]></default>
678
  <type/>
679
  </argument>
680
  </method>
681
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1491" package="Media Library Assistant">
682
  <name>mla_flush_mla_galleries</name>
683
  <full_name>mla_flush_mla_galleries</full_name>
684
+ <docblock line="1482">
685
  <description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
686
  <long-description><![CDATA[]]></long-description>
687
+ <tag line="1482" name="since" description="1.00"/>
688
+ <tag line="1482" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
689
  <type by_reference="false">string</type>
690
  </tag>
691
+ <tag line="1482" name="return" description="" type="void">
692
  <type by_reference="false">void</type>
693
  </tag>
694
  </docblock>
695
+ <argument line="1491">
696
  <name>$option_name</name>
697
  <default><![CDATA[]]></default>
698
  <type/>
699
  </argument>
700
  </method>
701
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1515" package="Media Library Assistant">
702
  <name>mla_save_post_action</name>
703
  <full_name>mla_save_post_action</full_name>
704
+ <docblock line="1506">
705
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
706
  <long-description><![CDATA[]]></long-description>
707
+ <tag line="1506" name="since" description="1.00"/>
708
+ <tag line="1506" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
709
  <type by_reference="false">integer</type>
710
  </tag>
711
+ <tag line="1506" name="return" description="" type="void">
712
  <type by_reference="false">void</type>
713
  </tag>
714
  </docblock>
715
+ <argument line="1515">
716
  <name>$post_id</name>
717
  <default><![CDATA[]]></default>
718
  <type/>
719
  </argument>
720
  </method>
721
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1532" package="Media Library Assistant">
722
  <name>_build_mla_galleries</name>
723
  <full_name>_build_mla_galleries</full_name>
724
+ <docblock line="1520">
725
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
726
  <long-description><![CDATA[]]></long-description>
727
+ <tag line="1520" name="since" description="0.70"/>
728
+ <tag line="1520" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
729
  <type by_reference="false">string</type>
730
  </tag>
731
+ <tag line="1520" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
732
  <type by_reference="false">array</type>
733
  </tag>
734
+ <tag line="1520" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
735
  <type by_reference="false">string</type>
736
  </tag>
737
+ <tag line="1520" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
738
  <type by_reference="false">boolean</type>
739
  </tag>
740
+ <tag line="1520" name="return" description="true if the galleries array is not empty" type="boolean">
741
  <type by_reference="false">boolean</type>
742
  </tag>
743
  </docblock>
744
+ <argument line="1532">
745
  <name>$option_name</name>
746
  <default><![CDATA[]]></default>
747
  <type/>
748
  </argument>
749
+ <argument line="1532">
750
  <name>$galleries_array</name>
751
  <default><![CDATA[]]></default>
752
  <type/>
753
  </argument>
754
+ <argument line="1532">
755
  <name>$shortcode</name>
756
  <default><![CDATA[]]></default>
757
  <type/>
758
  </argument>
759
+ <argument line="1532">
760
  <name>$exclude_revisions</name>
761
  <default><![CDATA[]]></default>
762
  <type/>
763
  </argument>
764
  </method>
765
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1641" package="Media Library Assistant">
766
  <name>_search_mla_galleries</name>
767
  <full_name>_search_mla_galleries</full_name>
768
+ <docblock line="1630">
769
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
770
  <long-description><![CDATA[]]></long-description>
771
+ <tag line="1630" name="since" description="0.70"/>
772
+ <tag line="1630" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
773
  <type by_reference="false">array</type>
774
  </tag>
775
+ <tag line="1630" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
776
  <type by_reference="false">int</type>
777
  </tag>
778
+ <tag line="1630" 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">
779
  <type by_reference="false">array</type>
780
  </tag>
781
  </docblock>
782
+ <argument line="1641">
783
  <name>$galleries_array</name>
784
  <default><![CDATA[]]></default>
785
  <type/>
786
  </argument>
787
+ <argument line="1641">
788
  <name>$attachment_id</name>
789
  <default><![CDATA[]]></default>
790
  <type/>
791
  </argument>
792
  </method>
793
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1675" package="Media Library Assistant">
794
  <name>_build_pdf_indirect_objects</name>
795
  <full_name>_build_pdf_indirect_objects</full_name>
796
+ <docblock line="1665">
797
  <description><![CDATA[Build an array of indirect object definitions]]></description>
798
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
799
+ <tag line="1665" name="since" description="1.4x"/>
800
+ <tag line="1665" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
801
  <type by_reference="false">string</type>
802
  </tag>
803
+ <tag line="1665" name="return" description="" type="void">
804
  <type by_reference="false">void</type>
805
  </tag>
806
  </docblock>
807
+ <argument line="1675">
808
  <name>$string</name>
809
  <default><![CDATA[]]></default>
810
  <type/>
811
  </argument>
812
  </method>
813
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1717" package="Media Library Assistant">
814
+ <name>_parse_pdf_date</name>
815
+ <full_name>_parse_pdf_date</full_name>
816
+ <docblock line="1708">
817
+ <description><![CDATA[Parse a PDF date string object]]></description>
818
+ <long-description><![CDATA[]]></long-description>
819
+ <tag line="1708" name="since" description="1.4x"/>
820
+ <tag line="1708" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
821
+ <type by_reference="false">string</type>
822
+ </tag>
823
+ <tag line="1708" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
824
+ <type by_reference="false">string</type>
825
+ </tag>
826
+ </docblock>
827
+ <argument line="1717">
828
+ <name>$source_string</name>
829
+ <default><![CDATA[]]></default>
830
+ <type/>
831
+ </argument>
832
+ </method>
833
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1736" package="Media Library Assistant">
834
+ <name>_parse_pdf_UTF16BE</name>
835
+ <full_name>_parse_pdf_UTF16BE</full_name>
836
+ <docblock line="1727">
837
+ <description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
838
+ <long-description><![CDATA[]]></long-description>
839
+ <tag line="1727" name="since" description="1.4x"/>
840
+ <tag line="1727" name="param" description="PDF string of 16-bit characters" type="string" variable="$source_string">
841
+ <type by_reference="false">string</type>
842
+ </tag>
843
+ <tag line="1727" name="return" description="UTF-8 encoded string" type="string">
844
+ <type by_reference="false">string</type>
845
+ </tag>
846
+ </docblock>
847
+ <argument line="1736">
848
+ <name>$source_string</name>
849
+ <default><![CDATA[]]></default>
850
+ <type/>
851
+ </argument>
852
+ </method>
853
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1765" package="Media Library Assistant">
854
+ <name>_parse_pdf_string</name>
855
+ <full_name>_parse_pdf_string</full_name>
856
+ <docblock line="1752">
857
+ <description><![CDATA[Parse a PDF string object]]></description>
858
+ <long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
859
+ the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
860
+ <tag line="1752" name="since" description="1.4x"/>
861
+ <tag line="1752" name="param" description="data within which the string occurs" type="string" variable="$source_string">
862
+ <type by_reference="false">string</type>
863
+ </tag>
864
+ <tag line="1752" name="param" description="offset within the source string of the opening '(' character." type="integer" variable="$offset">
865
+ <type by_reference="false">integer</type>
866
+ </tag>
867
+ <tag line="1752" name="return" description="( key =&gt; array( 'type' =&gt; type, 'value' =&gt; value, '/length' =&gt; length ) ) for the string" type="array">
868
+ <type by_reference="false">array</type>
869
+ </tag>
870
+ </docblock>
871
+ <argument line="1765">
872
+ <name>$source_string</name>
873
+ <default><![CDATA[]]></default>
874
+ <type/>
875
+ </argument>
876
+ <argument line="1765">
877
+ <name>$offset</name>
878
+ <default><![CDATA[]]></default>
879
+ <type/>
880
+ </argument>
881
+ </method>
882
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1858" package="Media Library Assistant">
883
  <name>_parse_pdf_dictionary</name>
884
  <full_name>_parse_pdf_dictionary</full_name>
885
+ <docblock line="1844">
886
  <description><![CDATA[Parse a PDF dictionary object]]></description>
887
+ <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
888
+ indirect (object), name, array, dictionary, stream, and null.
889
+ The array also has a '/length' element containing the number of bytes occupied by the
890
+ dictionary in the source string, including the enclosing parentheses.</p>]]></long-description>
891
+ <tag line="1844" name="since" description="1.4x"/>
892
+ <tag line="1844" name="param" description="data within which the string occurs" type="string" variable="$source_string">
893
  <type by_reference="false">string</type>
894
  </tag>
895
+ <tag line="1844" name="param" description="offset within the source string of the opening '&lt;&lt;' characters." type="integer" variable="$offset">
896
+ <type by_reference="false">integer</type>
897
+ </tag>
898
+ <tag line="1844" name="return" description="( '/length' =&gt; length, key =&gt; array( 'type' =&gt; type, 'value' =&gt; value ) ) for each dictionary field" type="array">
899
  <type by_reference="false">array</type>
900
  </tag>
901
  </docblock>
902
+ <argument line="1858">
903
+ <name>$source_string</name>
904
+ <default><![CDATA[]]></default>
905
+ <type/>
906
+ </argument>
907
+ <argument line="1858">
908
+ <name>$offset</name>
909
  <default><![CDATA[]]></default>
910
  <type/>
911
  </argument>
912
  </method>
913
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1961" package="Media Library Assistant">
914
  <name>_extract_pdf_metadata</name>
915
  <full_name>_extract_pdf_metadata</full_name>
916
+ <docblock line="1952">
917
  <description><![CDATA[Extract Metadata from a PDF file]]></description>
918
  <long-description><![CDATA[]]></long-description>
919
+ <tag line="1952" name="since" description="1.4x"/>
920
+ <tag line="1952" name="param" description="full path to the desired file" type="string" variable="$string">
921
  <type by_reference="false">string</type>
922
  </tag>
923
+ <tag line="1952" name="return" description="( key =&gt; value ) for each metadata field, in string format" type="array">
924
  <type by_reference="false">array</type>
925
  </tag>
926
  </docblock>
927
+ <argument line="1961">
928
  <name>$string</name>
929
  <default><![CDATA[]]></default>
930
  <type/>
931
  </argument>
932
  </method>
933
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2065" package="Media Library Assistant">
934
  <name>_bin_to_utf8</name>
935
  <full_name>_bin_to_utf8</full_name>
936
+ <docblock line="2056">
937
  <description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
938
  <long-description><![CDATA[]]></long-description>
939
+ <tag line="2056" name="since" description="1.41"/>
940
+ <tag line="2056" name="param" description="unencoded string" type="string" variable="$string">
941
  <type by_reference="false">string</type>
942
  </tag>
943
+ <tag line="2056" name="return" description="UTF-8 encoded string" type="string">
944
  <type by_reference="false">string</type>
945
  </tag>
946
  </docblock>
947
+ <argument line="2065">
948
  <name>$string</name>
949
  <default><![CDATA[]]></default>
950
  <type/>
951
  </argument>
952
  </method>
953
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2463" package="Media Library Assistant">
954
  <name>mla_iptc_metadata_value</name>
955
  <full_name>mla_iptc_metadata_value</full_name>
956
+ <docblock line="2451">
957
  <description><![CDATA[Parse one IPTC metadata field]]></description>
958
  <long-description><![CDATA[<p>Returns a string value, converting array data to a string as necessary.</p>]]></long-description>
959
+ <tag line="2451" name="since" description="1.41"/>
960
+ <tag line="2451" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
961
  <type by_reference="false">string</type>
962
  </tag>
963
+ <tag line="2451" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
964
  <type by_reference="false">string</type>
965
  </tag>
966
+ <tag line="2451" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
967
  <type by_reference="false">mixed</type>
968
  </tag>
969
  </docblock>
970
+ <argument line="2463">
971
  <name>$iptc_key</name>
972
  <default><![CDATA[]]></default>
973
  <type/>
974
  </argument>
975
+ <argument line="2463">
976
+ <name>$item_metadata</name>
977
  <default><![CDATA[]]></default>
978
  <type/>
979
  </argument>
980
  </method>
981
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2496" package="Media Library Assistant">
982
  <name>mla_exif_metadata_value</name>
983
  <full_name>mla_exif_metadata_value</full_name>
984
+ <docblock line="2483">
985
  <description><![CDATA[Parse one EXIF metadata field]]></description>
986
  <long-description><![CDATA[<p>Returns a string value, converting array data to a string as necessary.
987
  Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
988
+ <tag line="2483" name="since" description="1.13"/>
989
+ <tag line="2483" name="param" description="field name" type="string" variable="$exif_key">
990
  <type by_reference="false">string</type>
991
  </tag>
992
+ <tag line="2483" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
993
  <type by_reference="false">string</type>
994
  </tag>
995
+ <tag line="2483" name="return" description="string representation of metadata value or an empty string" type="string">
996
  <type by_reference="false">string</type>
997
  </tag>
998
  </docblock>
999
+ <argument line="2496">
1000
  <name>$exif_key</name>
1001
  <default><![CDATA[]]></default>
1002
  <type/>
1003
  </argument>
1004
+ <argument line="2496">
1005
+ <name>$item_metadata</name>
1006
  <default><![CDATA[]]></default>
1007
  <type/>
1008
  </argument>
1009
  </method>
1010
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2559" package="Media Library Assistant">
1011
+ <name>mla_pdf_metadata_value</name>
1012
+ <full_name>mla_pdf_metadata_value</full_name>
1013
+ <docblock line="2546">
1014
+ <description><![CDATA[Parse one PDF metadata field]]></description>
1015
+ <long-description><![CDATA[<p>Returns a string value, converting array data to a string as necessary.
1016
+ Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
1017
+ <tag line="2546" name="since" description="1.4x"/>
1018
+ <tag line="2546" name="param" description="field name" type="string" variable="$pdf_key">
1019
+ <type by_reference="false">string</type>
1020
+ </tag>
1021
+ <tag line="2546" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
1022
+ <type by_reference="false">string</type>
1023
+ </tag>
1024
+ <tag line="2546" name="return" description="string representation of metadata value or an empty string" type="string">
1025
+ <type by_reference="false">string</type>
1026
+ </tag>
1027
+ </docblock>
1028
+ <argument line="2559">
1029
+ <name>$pdf_key</name>
1030
+ <default><![CDATA[]]></default>
1031
+ <type/>
1032
+ </argument>
1033
+ <argument line="2559">
1034
+ <name>$item_metadata</name>
1035
+ <default><![CDATA[]]></default>
1036
+ <type/>
1037
+ </argument>
1038
+ </method>
1039
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2602" package="Media Library Assistant">
1040
  <name>mla_fetch_attachment_image_metadata</name>
1041
  <full_name>mla_fetch_attachment_image_metadata</full_name>
1042
+ <docblock line="2590">
1043
  <description><![CDATA[Fetch and filter IPTC and EXIF meta data for an image attachment]]></description>
1044
  <long-description><![CDATA[<p>Returns</p>]]></long-description>
1045
+ <tag line="2590" name="since" description="0.90"/>
1046
+ <tag line="2590" name="param" description="post ID of attachment" type="int" variable="$post_id">
1047
  <type by_reference="false">int</type>
1048
  </tag>
1049
+ <tag line="2590" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
1050
  <type by_reference="false">string</type>
1051
  </tag>
1052
+ <tag line="2590" name="return" description="Meta data variables" type="array">
1053
  <type by_reference="false">array</type>
1054
  </tag>
1055
  </docblock>
1056
+ <argument line="2602">
1057
  <name>$post_id</name>
1058
  <default><![CDATA[]]></default>
1059
  <type/>
1060
  </argument>
1061
+ <argument line="2602">
1062
  <name>$path</name>
1063
  <default><![CDATA['']]></default>
1064
  <type/>
1065
  </argument>
1066
  </method>
1067
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2669" package="Media Library Assistant">
1068
  <name>mla_update_item_postmeta</name>
1069
  <full_name>mla_update_item_postmeta</full_name>
1070
+ <docblock line="2659">
1071
  <description><![CDATA[Update custom field data for a single attachment.]]></description>
1072
  <long-description><![CDATA[]]></long-description>
1073
+ <tag line="2659" name="since" description="1.40"/>
1074
+ <tag line="2659" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
1075
  <type by_reference="false">int</type>
1076
  </tag>
1077
+ <tag line="2659" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
1078
  <type by_reference="false">array</type>
1079
  </tag>
1080
+ <tag line="2659" name="return" description="success/failure message(s)" type="string">
1081
  <type by_reference="false">string</type>
1082
  </tag>
1083
  </docblock>
1084
+ <argument line="2669">
1085
  <name>$post_id</name>
1086
  <default><![CDATA[]]></default>
1087
  <type/>
1088
  </argument>
1089
+ <argument line="2669">
1090
  <name>$new_meta</name>
1091
  <default><![CDATA[]]></default>
1092
  <type/>
1093
  </argument>
1094
  </method>
1095
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2797" package="Media Library Assistant">
1096
  <name>mla_update_single_item</name>
1097
  <full_name>mla_update_single_item</full_name>
1098
+ <docblock line="2784">
1099
  <description><![CDATA[Update a single item; change the meta data
1100
  for a single attachment.]]></description>
1101
  <long-description><![CDATA[]]></long-description>
1102
+ <tag line="2784" name="since" description="0.1"/>
1103
+ <tag line="2784" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
1104
  <type by_reference="false">int</type>
1105
  </tag>
1106
+ <tag line="2784" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
1107
  <type by_reference="false">array</type>
1108
  </tag>
1109
+ <tag line="2784" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
1110
  <type by_reference="false">array</type>
1111
  </tag>
1112
+ <tag line="2784" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
1113
  <type by_reference="false">array</type>
1114
  </tag>
1115
+ <tag line="2784" name="return" description="success/failure message and NULL content" type="array">
1116
  <type by_reference="false">array</type>
1117
  </tag>
1118
  </docblock>
1119
+ <argument line="2797">
1120
  <name>$post_id</name>
1121
  <default><![CDATA[]]></default>
1122
  <type/>
1123
  </argument>
1124
+ <argument line="2797">
1125
  <name>$new_data</name>
1126
  <default><![CDATA[]]></default>
1127
  <type/>
1128
  </argument>
1129
+ <argument line="2797">
1130
  <name>$tax_input</name>
1131
  <default><![CDATA[NULL]]></default>
1132
  <type/>
1133
  </argument>
1134
+ <argument line="2797">
1135
  <name>$tax_actions</name>
1136
  <default><![CDATA[NULL]]></default>
1137
  <type/>
1138
  </argument>
1139
  </method>
1140
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3011" package="Media Library Assistant">
1141
  <name>_remove_tags</name>
1142
  <full_name>_remove_tags</full_name>
1143
+ <docblock line="3000">
1144
  <description><![CDATA[Remove tags from a term ids list]]></description>
1145
  <long-description><![CDATA[]]></long-description>
1146
+ <tag line="3000" name="since" description="0.40"/>
1147
+ <tag line="3000" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
1148
  <type by_reference="false">array</type>
1149
  </tag>
1150
+ <tag line="3000" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
1151
  <type by_reference="false">array</type>
1152
  </tag>
1153
+ <tag line="3000" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
1154
  <type by_reference="false">object</type>
1155
  </tag>
1156
+ <tag line="3000" name="return" description="Term ids of the surviving tags" type="array">
1157
  <type by_reference="false">array</type>
1158
  </tag>
1159
  </docblock>
1160
+ <argument line="3011">
1161
  <name>$terms_before</name>
1162
  <default><![CDATA[]]></default>
1163
  <type/>
1164
  </argument>
1165
+ <argument line="3011">
1166
  <name>$tags</name>
1167
  <default><![CDATA[]]></default>
1168
  <type/>
1169
  </argument>
1170
+ <argument line="3011">
1171
  <name>$taxonomy_obj</name>
1172
  <default><![CDATA[]]></default>
1173
  <type/>
1174
  </argument>
1175
  </method>
1176
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3054" package="Media Library Assistant">
1177
  <name>_hex_dump</name>
1178
  <full_name>_hex_dump</full_name>
1179
+ <docblock line="3043">
1180
  <description><![CDATA[Format printable version of binary data]]></description>
1181
  <long-description><![CDATA[]]></long-description>
1182
+ <tag line="3043" name="since" description="0.90"/>
1183
+ <tag line="3043" name="param" description="Binary data" type="string" variable="$data">
1184
  <type by_reference="false">string</type>
1185
  </tag>
1186
+ <tag line="3043" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
1187
  <type by_reference="false">integer</type>
1188
  </tag>
1189
+ <tag line="3043" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
1190
  <type by_reference="false">\intger</type>
1191
  </tag>
1192
+ <tag line="3043" name="return" description="Printable representation of $data" type="string">
1193
  <type by_reference="false">string</type>
1194
  </tag>
1195
  </docblock>
1196
+ <argument line="3054">
1197
  <name>$data</name>
1198
  <default><![CDATA[]]></default>
1199
  <type/>
1200
  </argument>
1201
+ <argument line="3054">
1202
  <name>$limit</name>
1203
  <default><![CDATA[0]]></default>
1204
  <type/>
1205
  </argument>
1206
+ <argument line="3054">
1207
  <name>$bytes_per_row</name>
1208
  <default><![CDATA[16]]></default>
1209
  <type/>
1210
  </argument>
1211
  </method>
1212
  </class>
1213
+ <markers>
1214
+ <todo line="1745">encode the rest</todo>
1215
+ </markers>
1216
  </file>
1217
  <file path="includes\class-mla-edit-media.php" hash="ffa4ba62a4969d2e50e12b044ce0cace" package="Media Library Assistant">
1218
  <docblock line="2">
1518
  </method>
1519
  </class>
1520
  </file>
1521
+ <file path="includes\class-mla-list-table.php" hash="186ade38c36ccdb3e35d6ba2c07475e6" package="Media Library Assistant">
1522
  <docblock line="2">
1523
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
1524
  <long-description><![CDATA[]]></long-description>
1564
  </property>
1565
  <property final="false" static="true" visibility="private" line="73" namespace="global" package="Media Library Assistant">
1566
  <name>$default_columns</name>
1567
+ <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', 'file_url' => 'File URL', 'base_file' => 'Base File', 'date' => 'Date', 'modified' => 'Last Modified', 'author' => 'Author', 'attached_to' => 'Attached to')]]></default>
1568
  <docblock line="55">
1569
  <description><![CDATA[Table column definitions]]></description>
1570
  <long-description><![CDATA[<p>This array defines table columns and titles where the key is the column slug (and class)
1583
  </tag>
1584
  </docblock>
1585
  </property>
1586
+ <property final="false" static="true" visibility="private" line="116" namespace="global" package="Media Library Assistant">
1587
  <name>$default_hidden_columns</name>
1588
+ <default><![CDATA[array('post_title', 'post_name', 'parent', 'menu_order', 'galleries', 'mla_galleries', 'alt_text', 'caption', 'description', 'post_mime_type', 'file_url', 'base_file', 'date', 'modified', 'author', 'attached_to')]]></default>
1589
+ <docblock line="100">
1590
  <description><![CDATA[Default values for hidden columns]]></description>
1591
  <long-description><![CDATA[<p>This array is used when the user-level option is not set, i.e.,
1592
  the user has not altered the selection of hidden columns.</p>
1596
 
1597
  <p>Taxonomy columns are added to this array by mla_admin_init_action.
1598
  Custom field columns are added to this array by mla_admin_init_action.</p>]]></long-description>
1599
+ <tag line="100" name="since" description="0.1"/>
1600
+ <tag line="100" name="var" description="" type="array">
1601
  <type by_reference="false">array</type>
1602
  </tag>
1603
  </docblock>
1604
  </property>
1605
+ <property final="false" static="true" visibility="private" line="159" namespace="global" package="Media Library Assistant">
1606
  <name>$default_sortable_columns</name>
1607
+ <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), 'file_url' => array('guid', 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>
1608
+ <docblock line="141">
1609
  <description><![CDATA[Sortable column definitions]]></description>
1610
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
1611
  is the column slug that needs to be sortable, and the value is database column
1617
 
1618
  <p>Taxonomy columns, if any, are added to this array by mla_admin_init_action.
1619
  Custom field columns are added to this array by mla_admin_init_action.</p>]]></long-description>
1620
+ <tag line="141" name="since" description="0.1"/>
1621
+ <tag line="141" name="var" description="" type="array">
1622
  <type by_reference="false">array</type>
1623
  </tag>
1624
  </docblock>
1625
  </property>
1626
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="191" package="Media Library Assistant">
1627
  <name>_default_hidden_columns</name>
1628
  <full_name>_default_hidden_columns</full_name>
1629
+ <docblock line="184">
1630
  <description><![CDATA[Access the default list of hidden columns]]></description>
1631
  <long-description><![CDATA[]]></long-description>
1632
+ <tag line="184" name="since" description="0.1"/>
1633
+ <tag line="184" name="return" description="default list of hidden columns" type="array">
1634
  <type by_reference="false">array</type>
1635
  </tag>
1636
  </docblock>
1637
  </method>
1638
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="207" package="Media Library Assistant">
1639
  <name>_avail_mime_types</name>
1640
  <full_name>_avail_mime_types</full_name>
1641
+ <docblock line="195">
1642
  <description><![CDATA[Get MIME types with one or more attachments for view preparation]]></description>
1643
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
1644
  but uses the output of wp_count_attachments() as input.</p>]]></long-description>
1645
+ <tag line="195" name="since" description="0.1"/>
1646
+ <tag line="195" name="param" description="Number of posts for each MIME type" type="array" variable="$num_posts">
1647
  <type by_reference="false">array</type>
1648
  </tag>
1649
+ <tag line="195" name="return" description="Mime type names" type="array">
1650
  <type by_reference="false">array</type>
1651
  </tag>
1652
  </docblock>
1653
+ <argument line="207">
1654
  <name>$num_posts</name>
1655
  <default><![CDATA[]]></default>
1656
  <type/>
1657
  </argument>
1658
  </method>
1659
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="227" package="Media Library Assistant">
1660
  <name>mla_get_taxonomy_filter_dropdown</name>
1661
  <full_name>mla_get_taxonomy_filter_dropdown</full_name>
1662
+ <docblock line="218">
1663
  <description><![CDATA[Get dropdown box of terms to filter by, if available]]></description>
1664
  <long-description><![CDATA[]]></long-description>
1665
+ <tag line="218" name="since" description="1.20"/>
1666
+ <tag line="218" name="param" description="currently selected term_id || zero (default)" type="integer" variable="$selected">
1667
  <type by_reference="false">integer</type>
1668
  </tag>
1669
+ <tag line="218" name="return" description="HTML markup for dropdown box" type="string">
1670
  <type by_reference="false">string</type>
1671
  </tag>
1672
  </docblock>
1673
+ <argument line="227">
1674
  <name>$selected</name>
1675
  <default><![CDATA[0]]></default>
1676
  <type/>
1677
  </argument>
1678
  </method>
1679
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="272" package="Media Library Assistant">
1680
  <name>mla_get_sortable_columns</name>
1681
  <full_name>mla_get_sortable_columns</full_name>
1682
+ <docblock line="265">
1683
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
1684
  <long-description><![CDATA[]]></long-description>
1685
+ <tag line="265" name="since" description="0.30"/>
1686
+ <tag line="265" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
1687
  <type by_reference="false">array</type>
1688
  </tag>
1689
  </docblock>
1690
  </method>
1691
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="299" package="Media Library Assistant">
1692
  <name>mla_manage_hidden_columns_filter</name>
1693
  <full_name>mla_manage_hidden_columns_filter</full_name>
1694
+ <docblock line="284">
1695
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
1696
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
1697
  the get_user_option result. Set when the file is loaded because the object
1698
  is not created in time for the call from screen.php.</p>]]></long-description>
1699
+ <tag line="284" name="since" description="0.1"/>
1700
+ <tag line="284" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
1701
  <type by_reference="false">string</type>
1702
  </tag>
1703
+ <tag line="284" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
1704
  <type by_reference="false">string</type>
1705
  </tag>
1706
+ <tag line="284" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
1707
  <type by_reference="false">object</type>
1708
  </tag>
1709
+ <tag line="284" name="return" description="updated list of hidden columns" type="array">
1710
  <type by_reference="false">array</type>
1711
  </tag>
1712
  </docblock>
1713
+ <argument line="299">
1714
  <name>$result</name>
1715
  <default><![CDATA[]]></default>
1716
  <type/>
1717
  </argument>
1718
+ <argument line="299">
1719
  <name>$option</name>
1720
  <default><![CDATA[]]></default>
1721
  <type/>
1722
  </argument>
1723
+ <argument line="299">
1724
  <name>$user_data</name>
1725
  <default><![CDATA[]]></default>
1726
  <type/>
1727
  </argument>
1728
  </method>
1729
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="317" package="Media Library Assistant">
1730
  <name>mla_manage_columns_filter</name>
1731
  <full_name>mla_manage_columns_filter</full_name>
1732
+ <docblock line="306">
1733
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
1734
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
1735
  file is loaded because the list_table object isn't created in time
1736
  to affect the "screen options" setup.</p>]]></long-description>
1737
+ <tag line="306" name="since" description="0.1"/>
1738
+ <tag line="306" name="return" description="list of table columns" type="array">
1739
  <type by_reference="false">array</type>
1740
  </tag>
1741
  </docblock>
1742
  </method>
1743
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="332" package="Media Library Assistant">
1744
  <name>mla_admin_init_action</name>
1745
  <full_name>mla_admin_init_action</full_name>
1746
+ <docblock line="322">
1747
  <description><![CDATA[Adds support for taxonomy and custom field columns]]></description>
1748
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
1749
  created in time to affect the "screen options" setup.</p>]]></long-description>
1750
+ <tag line="322" name="since" description="0.30"/>
1751
+ <tag line="322" name="return" description="" type="void">
1752
  <type by_reference="false">void</type>
1753
  </tag>
1754
  </docblock>
1755
  </method>
1756
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="358" package="Media Library Assistant">
1757
  <name>__construct</name>
1758
  <full_name>__construct</full_name>
1759
+ <docblock line="350">
1760
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
1761
  calls the parent constructor to set some default configs.]]></description>
1762
  <long-description><![CDATA[]]></long-description>
1763
+ <tag line="350" name="since" description="0.1"/>
1764
+ <tag line="350" name="return" description="" type="void">
1765
  <type by_reference="false">void</type>
1766
  </tag>
1767
  </docblock>
1768
  </method>
1769
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="391" package="Media Library Assistant">
1770
  <name>column_default</name>
1771
  <full_name>column_default</full_name>
1772
+ <docblock line="378">
1773
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
1774
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a given column.
1775
  The taxonomy and custom field columns are handled here. All other columns should have
1776
  a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
1777
+ <tag line="378" name="since" description="0.1"/>
1778
+ <tag line="378" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
1779
  <type by_reference="false">array</type>
1780
  </tag>
1781
+ <tag line="378" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
1782
  <type by_reference="false">array</type>
1783
  </tag>
1784
+ <tag line="378" name="return" description="Text or HTML to be placed inside the column" type="string">
1785
  <type by_reference="false">string</type>
1786
  </tag>
1787
  </docblock>
1788
+ <argument line="391">
1789
  <name>$item</name>
1790
  <default><![CDATA[]]></default>
1791
  <type/>
1792
  </argument>
1793
+ <argument line="391">
1794
  <name>$column_name</name>
1795
  <default><![CDATA[]]></default>
1796
  <type/>
1797
  </argument>
1798
  </method>
1799
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="460" package="Media Library Assistant">
1800
  <name>column_cb</name>
1801
  <full_name>column_cb</full_name>
1802
+ <docblock line="451">
1803
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
1804
  <long-description><![CDATA[<p>The 'cb' column
1805
  is given special treatment when columns are processed.</p>]]></long-description>
1806
+ <tag line="451" name="since" description="0.1"/>
1807
+ <tag line="451" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1808
  <type by_reference="false">array</type>
1809
  </tag>
1810
+ <tag line="451" name="return" description="HTML markup to be placed inside the column" type="string">
1811
  <type by_reference="false">string</type>
1812
  </tag>
1813
  </docblock>
1814
+ <argument line="460">
1815
  <name>$item</name>
1816
  <default><![CDATA[]]></default>
1817
  <type/>
1818
  </argument>
1819
  </method>
1820
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="476" package="Media Library Assistant">
1821
  <name>column_icon</name>
1822
  <full_name>column_icon</full_name>
1823
+ <docblock line="468">
1824
  <description><![CDATA[Supply the content for a custom column]]></description>
1825
  <long-description><![CDATA[]]></long-description>
1826
+ <tag line="468" name="since" description="0.1"/>
1827
+ <tag line="468" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1828
  <type by_reference="false">array</type>
1829
  </tag>
1830
+ <tag line="468" name="return" description="HTML markup to be placed inside the column" type="string">
1831
  <type by_reference="false">string</type>
1832
  </tag>
1833
  </docblock>
1834
+ <argument line="476">
1835
  <name>$item</name>
1836
  <default><![CDATA[]]></default>
1837
  <type/>
1838
  </argument>
1839
  </method>
1840
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="500" package="Media Library Assistant">
1841
  <name>_build_rollover_actions</name>
1842
  <full_name>_build_rollover_actions</full_name>
1843
+ <docblock line="489">
1844
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
1845
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
1846
  <long-description><![CDATA[]]></long-description>
1847
+ <tag line="489" name="since" description="0.1"/>
1848
+ <tag line="489" name="param" description="A singular attachment (post) object" type="object" variable="$item">
1849
  <type by_reference="false">object</type>
1850
  </tag>
1851
+ <tag line="489" name="param" description="Current column name" type="string" variable="$column">
1852
  <type by_reference="false">string</type>
1853
  </tag>
1854
+ <tag line="489" name="return" description="Names and URLs of row-level actions" type="array">
1855
  <type by_reference="false">array</type>
1856
  </tag>
1857
  </docblock>
1858
+ <argument line="500">
1859
  <name>$item</name>
1860
  <default><![CDATA[]]></default>
1861
  <type/>
1862
  </argument>
1863
+ <argument line="500">
1864
  <name>$column</name>
1865
  <default><![CDATA[]]></default>
1866
  <type/>
1867
  </argument>
1868
  </method>
1869
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="558" package="Media Library Assistant">
1870
  <name>_build_inline_data</name>
1871
  <full_name>_build_inline_data</full_name>
1872
+ <docblock line="549">
1873
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
1874
  <long-description><![CDATA[]]></long-description>
1875
+ <tag line="549" name="since" description="0.20"/>
1876
+ <tag line="549" name="param" description="A singular attachment (post) object" type="object" variable="$item">
1877
  <type by_reference="false">object</type>
1878
  </tag>
1879
+ <tag line="549" name="return" description="HTML &lt;div&gt; with row data" type="string">
1880
  <type by_reference="false">string</type>
1881
  </tag>
1882
  </docblock>
1883
+ <argument line="558">
1884
  <name>$item</name>
1885
  <default><![CDATA[]]></default>
1886
  <type/>
1887
  </argument>
1888
  </method>
1889
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="606" package="Media Library Assistant">
1890
  <name>column_ID_parent</name>
1891
  <full_name>column_ID_parent</full_name>
1892
+ <docblock line="598">
1893
  <description><![CDATA[Supply the content for a custom column]]></description>
1894
  <long-description><![CDATA[]]></long-description>
1895
+ <tag line="598" name="since" description="0.1"/>
1896
+ <tag line="598" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1897
  <type by_reference="false">array</type>
1898
  </tag>
1899
+ <tag line="598" name="return" description="HTML markup to be placed inside the column" type="string">
1900
  <type by_reference="false">string</type>
1901
  </tag>
1902
  </docblock>
1903
+ <argument line="606">
1904
  <name>$item</name>
1905
  <default><![CDATA[]]></default>
1906
  <type/>
1907
  </argument>
1908
  </method>
1909
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="638" package="Media Library Assistant">
1910
  <name>column_title_name</name>
1911
  <full_name>column_title_name</full_name>
1912
+ <docblock line="630">
1913
  <description><![CDATA[Supply the content for a custom column]]></description>
1914
  <long-description><![CDATA[]]></long-description>
1915
+ <tag line="630" name="since" description="0.1"/>
1916
+ <tag line="630" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1917
  <type by_reference="false">array</type>
1918
  </tag>
1919
+ <tag line="630" name="return" description="HTML markup to be placed inside the column" type="string">
1920
  <type by_reference="false">string</type>
1921
  </tag>
1922
  </docblock>
1923
+ <argument line="638">
1924
  <name>$item</name>
1925
  <default><![CDATA[]]></default>
1926
  <type/>
1927
  </argument>
1928
  </method>
1929
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="661" package="Media Library Assistant">
1930
  <name>column_post_title</name>
1931
  <full_name>column_post_title</full_name>
1932
+ <docblock line="653">
1933
  <description><![CDATA[Supply the content for a custom column]]></description>
1934
  <long-description><![CDATA[]]></long-description>
1935
+ <tag line="653" name="since" description="0.1"/>
1936
+ <tag line="653" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1937
  <type by_reference="false">array</type>
1938
  </tag>
1939
+ <tag line="653" name="return" description="HTML markup to be placed inside the column" type="string">
1940
  <type by_reference="false">string</type>
1941
  </tag>
1942
  </docblock>
1943
+ <argument line="661">
1944
  <name>$item</name>
1945
  <default><![CDATA[]]></default>
1946
  <type/>
1947
  </argument>
1948
  </method>
1949
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="679" package="Media Library Assistant">
1950
  <name>column_post_name</name>
1951
  <full_name>column_post_name</full_name>
1952
+ <docblock line="671">
1953
  <description><![CDATA[Supply the content for a custom column]]></description>
1954
  <long-description><![CDATA[]]></long-description>
1955
+ <tag line="671" name="since" description="0.1"/>
1956
+ <tag line="671" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1957
  <type by_reference="false">array</type>
1958
  </tag>
1959
+ <tag line="671" name="return" description="HTML markup to be placed inside the column" type="string">
1960
  <type by_reference="false">string</type>
1961
  </tag>
1962
  </docblock>
1963
+ <argument line="679">
1964
  <name>$item</name>
1965
  <default><![CDATA[]]></default>
1966
  <type/>
1967
  </argument>
1968
  </method>
1969
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="697" package="Media Library Assistant">
1970
  <name>column_parent</name>
1971
  <full_name>column_parent</full_name>
1972
+ <docblock line="689">
1973
  <description><![CDATA[Supply the content for a custom column]]></description>
1974
  <long-description><![CDATA[]]></long-description>
1975
+ <tag line="689" name="since" description="0.1"/>
1976
+ <tag line="689" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1977
  <type by_reference="false">array</type>
1978
  </tag>
1979
+ <tag line="689" name="return" description="HTML markup to be placed inside the column" type="string">
1980
  <type by_reference="false">string</type>
1981
  </tag>
1982
  </docblock>
1983
+ <argument line="697">
1984
  <name>$item</name>
1985
  <default><![CDATA[]]></default>
1986
  <type/>
1987
  </argument>
1988
  </method>
1989
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="722" package="Media Library Assistant">
1990
  <name>column_menu_order</name>
1991
  <full_name>column_menu_order</full_name>
1992
+ <docblock line="714">
1993
  <description><![CDATA[Supply the content for a custom column]]></description>
1994
  <long-description><![CDATA[]]></long-description>
1995
+ <tag line="714" name="since" description="0.60"/>
1996
+ <tag line="714" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1997
  <type by_reference="false">array</type>
1998
  </tag>
1999
+ <tag line="714" name="return" description="HTML markup to be placed inside the column" type="string">
2000
  <type by_reference="false">string</type>
2001
  </tag>
2002
  </docblock>
2003
+ <argument line="722">
2004
  <name>$item</name>
2005
  <default><![CDATA[]]></default>
2006
  <type/>
2007
  </argument>
2008
  </method>
2009
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="734" package="Media Library Assistant">
2010
  <name>column_featured</name>
2011
  <full_name>column_featured</full_name>
2012
+ <docblock line="726">
2013
  <description><![CDATA[Supply the content for a custom column]]></description>
2014
  <long-description><![CDATA[]]></long-description>
2015
+ <tag line="726" name="since" description="0.1"/>
2016
+ <tag line="726" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2017
  <type by_reference="false">array</type>
2018
  </tag>
2019
+ <tag line="726" name="return" description="HTML markup to be placed inside the column" type="string">
2020
  <type by_reference="false">string</type>
2021
  </tag>
2022
  </docblock>
2023
+ <argument line="734">
2024
  <name>$item</name>
2025
  <default><![CDATA[]]></default>
2026
  <type/>
2027
  </argument>
2028
  </method>
2029
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="766" package="Media Library Assistant">
2030
  <name>column_inserted</name>
2031
  <full_name>column_inserted</full_name>
2032
+ <docblock line="758">
2033
  <description><![CDATA[Supply the content for a custom column]]></description>
2034
  <long-description><![CDATA[]]></long-description>
2035
+ <tag line="758" name="since" description="0.1"/>
2036
+ <tag line="758" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2037
  <type by_reference="false">array</type>
2038
  </tag>
2039
+ <tag line="758" name="return" description="HTML markup to be placed inside the column" type="string">
2040
  <type by_reference="false">string</type>
2041
  </tag>
2042
  </docblock>
2043
+ <argument line="766">
2044
  <name>$item</name>
2045
  <default><![CDATA[]]></default>
2046
  <type/>
2047
  </argument>
2048
  </method>
2049
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="802" package="Media Library Assistant">
2050
  <name>column_galleries</name>
2051
  <full_name>column_galleries</full_name>
2052
+ <docblock line="794">
2053
  <description><![CDATA[Supply the content for a custom column]]></description>
2054
  <long-description><![CDATA[]]></long-description>
2055
+ <tag line="794" name="since" description="0.70"/>
2056
+ <tag line="794" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2057
  <type by_reference="false">array</type>
2058
  </tag>
2059
+ <tag line="794" name="return" description="HTML markup to be placed inside the column" type="string">
2060
  <type by_reference="false">string</type>
2061
  </tag>
2062
  </docblock>
2063
+ <argument line="802">
2064
  <name>$item</name>
2065
  <default><![CDATA[]]></default>
2066
  <type/>
2067
  </argument>
2068
  </method>
2069
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="834" package="Media Library Assistant">
2070
  <name>column_mla_galleries</name>
2071
  <full_name>column_mla_galleries</full_name>
2072
+ <docblock line="826">
2073
  <description><![CDATA[Supply the content for a custom column]]></description>
2074
  <long-description><![CDATA[]]></long-description>
2075
+ <tag line="826" name="since" description="0.70"/>
2076
+ <tag line="826" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2077
  <type by_reference="false">array</type>
2078
  </tag>
2079
+ <tag line="826" name="return" description="HTML markup to be placed inside the column" type="string">
2080
  <type by_reference="false">string</type>
2081
  </tag>
2082
  </docblock>
2083
+ <argument line="834">
2084
  <name>$item</name>
2085
  <default><![CDATA[]]></default>
2086
  <type/>
2087
  </argument>
2088
  </method>
2089
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="866" package="Media Library Assistant">
2090
  <name>column_alt_text</name>
2091
  <full_name>column_alt_text</full_name>
2092
+ <docblock line="858">
2093
  <description><![CDATA[Supply the content for a custom column]]></description>
2094
  <long-description><![CDATA[]]></long-description>
2095
+ <tag line="858" name="since" description="0.1"/>
2096
+ <tag line="858" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2097
  <type by_reference="false">array</type>
2098
  </tag>
2099
+ <tag line="858" name="return" description="HTML markup to be placed inside the column" type="string">
2100
  <type by_reference="false">string</type>
2101
  </tag>
2102
  </docblock>
2103
+ <argument line="866">
2104
  <name>$item</name>
2105
  <default><![CDATA[]]></default>
2106
  <type/>
2107
  </argument>
2108
  </method>
2109
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="886" package="Media Library Assistant">
2110
  <name>column_caption</name>
2111
  <full_name>column_caption</full_name>
2112
+ <docblock line="878">
2113
  <description><![CDATA[Supply the content for a custom column]]></description>
2114
  <long-description><![CDATA[]]></long-description>
2115
+ <tag line="878" name="since" description="0.1"/>
2116
+ <tag line="878" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2117
  <type by_reference="false">array</type>
2118
  </tag>
2119
+ <tag line="878" name="return" description="HTML markup to be placed inside the column" type="string">
2120
  <type by_reference="false">string</type>
2121
  </tag>
2122
  </docblock>
2123
+ <argument line="886">
2124
  <name>$item</name>
2125
  <default><![CDATA[]]></default>
2126
  <type/>
2127
  </argument>
2128
  </method>
2129
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="898" package="Media Library Assistant">
2130
  <name>column_description</name>
2131
  <full_name>column_description</full_name>
2132
+ <docblock line="890">
2133
  <description><![CDATA[Supply the content for a custom column]]></description>
2134
  <long-description><![CDATA[]]></long-description>
2135
+ <tag line="890" name="since" description="0.1"/>
2136
+ <tag line="890" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2137
  <type by_reference="false">array</type>
2138
  </tag>
2139
+ <tag line="890" name="return" description="HTML markup to be placed inside the column" type="string">
2140
  <type by_reference="false">string</type>
2141
  </tag>
2142
  </docblock>
2143
+ <argument line="898">
2144
  <name>$item</name>
2145
  <default><![CDATA[]]></default>
2146
  <type/>
2147
  </argument>
2148
  </method>
2149
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="910" package="Media Library Assistant">
2150
  <name>column_post_mime_type</name>
2151
  <full_name>column_post_mime_type</full_name>
2152
+ <docblock line="902">
2153
+ <description><![CDATA[Supply the content for a custom column]]></description>
2154
+ <long-description><![CDATA[]]></long-description>
2155
+ <tag line="902" name="since" description="0.30"/>
2156
+ <tag line="902" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2157
+ <type by_reference="false">array</type>
2158
+ </tag>
2159
+ <tag line="902" name="return" description="HTML markup to be placed inside the column" type="string">
2160
+ <type by_reference="false">string</type>
2161
+ </tag>
2162
+ </docblock>
2163
+ <argument line="910">
2164
+ <name>$item</name>
2165
+ <default><![CDATA[]]></default>
2166
+ <type/>
2167
+ </argument>
2168
+ </method>
2169
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="926" package="Media Library Assistant">
2170
+ <name>column_file_url</name>
2171
+ <full_name>column_file_url</full_name>
2172
+ <docblock line="918">
2173
  <description><![CDATA[Supply the content for a custom column]]></description>
2174
  <long-description><![CDATA[]]></long-description>
2175
+ <tag line="918" name="since" description="0.1"/>
2176
+ <tag line="918" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2177
  <type by_reference="false">array</type>
2178
  </tag>
2179
+ <tag line="918" name="return" description="HTML markup to be placed inside the column" type="string">
2180
  <type by_reference="false">string</type>
2181
  </tag>
2182
  </docblock>
2183
+ <argument line="926">
2184
  <name>$item</name>
2185
  <default><![CDATA[]]></default>
2186
  <type/>
2187
  </argument>
2188
  </method>
2189
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="940" package="Media Library Assistant">
2190
  <name>column_base_file</name>
2191
  <full_name>column_base_file</full_name>
2192
+ <docblock line="932">
2193
  <description><![CDATA[Supply the content for a custom column]]></description>
2194
  <long-description><![CDATA[]]></long-description>
2195
+ <tag line="932" name="since" description="0.1"/>
2196
+ <tag line="932" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2197
  <type by_reference="false">array</type>
2198
  </tag>
2199
+ <tag line="932" name="return" description="HTML markup to be placed inside the column" type="string">
2200
  <type by_reference="false">string</type>
2201
  </tag>
2202
  </docblock>
2203
+ <argument line="940">
2204
  <name>$item</name>
2205
  <default><![CDATA[]]></default>
2206
  <type/>
2207
  </argument>
2208
  </method>
2209
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="952" package="Media Library Assistant">
2210
  <name>column_date</name>
2211
  <full_name>column_date</full_name>
2212
+ <docblock line="944">
2213
  <description><![CDATA[Supply the content for a custom column]]></description>
2214
  <long-description><![CDATA[]]></long-description>
2215
+ <tag line="944" name="since" description="0.1"/>
2216
+ <tag line="944" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2217
  <type by_reference="false">array</type>
2218
  </tag>
2219
+ <tag line="944" name="return" description="HTML markup to be placed inside the column" type="string">
2220
  <type by_reference="false">string</type>
2221
  </tag>
2222
  </docblock>
2223
+ <argument line="952">
2224
  <name>$item</name>
2225
  <default><![CDATA[]]></default>
2226
  <type/>
2227
  </argument>
2228
  </method>
2229
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="981" package="Media Library Assistant">
2230
  <name>column_modified</name>
2231
  <full_name>column_modified</full_name>
2232
+ <docblock line="973">
2233
  <description><![CDATA[Supply the content for a custom column]]></description>
2234
  <long-description><![CDATA[]]></long-description>
2235
+ <tag line="973" name="since" description="0.30"/>
2236
+ <tag line="973" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2237
  <type by_reference="false">array</type>
2238
  </tag>
2239
+ <tag line="973" name="return" description="HTML markup to be placed inside the column" type="string">
2240
  <type by_reference="false">string</type>
2241
  </tag>
2242
  </docblock>
2243
+ <argument line="981">
2244
  <name>$item</name>
2245
  <default><![CDATA[]]></default>
2246
  <type/>
2247
  </argument>
2248
  </method>
2249
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1010" package="Media Library Assistant">
2250
  <name>column_author</name>
2251
  <full_name>column_author</full_name>
2252
+ <docblock line="1002">
2253
  <description><![CDATA[Supply the content for a custom column]]></description>
2254
  <long-description><![CDATA[]]></long-description>
2255
+ <tag line="1002" name="since" description="0.30"/>
2256
+ <tag line="1002" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2257
  <type by_reference="false">array</type>
2258
  </tag>
2259
+ <tag line="1002" name="return" description="HTML markup to be placed inside the column" type="string">
2260
  <type by_reference="false">string</type>
2261
  </tag>
2262
  </docblock>
2263
+ <argument line="1010">
2264
  <name>$item</name>
2265
  <default><![CDATA[]]></default>
2266
  <type/>
2267
  </argument>
2268
  </method>
2269
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1031" package="Media Library Assistant">
2270
  <name>column_attached_to</name>
2271
  <full_name>column_attached_to</full_name>
2272
+ <docblock line="1023">
2273
  <description><![CDATA[Supply the content for a custom column]]></description>
2274
  <long-description><![CDATA[]]></long-description>
2275
+ <tag line="1023" name="since" description="0.1"/>
2276
+ <tag line="1023" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2277
  <type by_reference="false">array</type>
2278
  </tag>
2279
+ <tag line="1023" name="return" description="HTML markup to be placed inside the column" type="string">
2280
  <type by_reference="false">string</type>
2281
  </tag>
2282
  </docblock>
2283
+ <argument line="1031">
2284
  <name>$item</name>
2285
  <default><![CDATA[]]></default>
2286
  <type/>
2287
  </argument>
2288
  </method>
2289
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1060" package="Media Library Assistant">
2290
+ <name>_mla_submenu_arguments</name>
2291
+ <full_name>_mla_submenu_arguments</full_name>
2292
+ <docblock line="1053">
2293
+ <description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
2294
+ <long-description><![CDATA[]]></long-description>
2295
+ <tag line="1053" name="since" description="1.42"/>
2296
+ <tag line="1053" name="return" description="non-empty view, search, filter and sort arguments" type="array">
2297
+ <type by_reference="false">array</type>
2298
+ </tag>
2299
+ </docblock>
2300
+ </method>
2301
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1145" package="Media Library Assistant">
2302
+ <name>pagination</name>
2303
+ <full_name>pagination</full_name>
2304
+ <docblock line="1137">
2305
+ <description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
2306
+ <long-description><![CDATA[]]></long-description>
2307
+ <tag line="1137" name="since" description="1.42"/>
2308
+ <tag line="1137" name="param" description="'top' | 'bottom'" type="string" variable="$which">
2309
+ <type by_reference="false">string</type>
2310
+ </tag>
2311
+ <tag line="1137" name="return" description="" type="void">
2312
+ <type by_reference="false">void</type>
2313
+ </tag>
2314
+ </docblock>
2315
+ <argument line="1145">
2316
+ <name>$which</name>
2317
+ <default><![CDATA[]]></default>
2318
+ <type/>
2319
+ </argument>
2320
+ </method>
2321
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1159" package="Media Library Assistant">
2322
  <name>get_columns</name>
2323
  <full_name>get_columns</full_name>
2324
+ <docblock line="1152">
2325
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
2326
  <long-description><![CDATA[]]></long-description>
2327
+ <tag line="1152" name="since" description="0.1"/>
2328
+ <tag line="1152" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
2329
  <type by_reference="false">array</type>
2330
  </tag>
2331
  </docblock>
2332
  </method>
2333
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1171" package="Media Library Assistant">
2334
  <name>get_hidden_columns</name>
2335
  <full_name>get_hidden_columns</full_name>
2336
+ <docblock line="1163">
2337
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
2338
  from default values if the option is not set]]></description>
2339
  <long-description><![CDATA[]]></long-description>
2340
+ <tag line="1163" name="since" description="0.1"/>
2341
+ <tag line="1163" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
2342
  <type by_reference="false">array</type>
2343
  </tag>
2344
  </docblock>
2345
  </method>
2346
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1191" package="Media Library Assistant">
2347
  <name>get_sortable_columns</name>
2348
  <full_name>get_sortable_columns</full_name>
2349
+ <docblock line="1181">
2350
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
2351
  and the value is db column to sort by.]]></description>
2352
  <long-description><![CDATA[<p>Also notes the current sort column,
2353
  if set.</p>]]></long-description>
2354
+ <tag line="1181" name="since" description="0.1"/>
2355
+ <tag line="1181" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
2356
  <type by_reference="false">array</type>
2357
  </tag>
2358
  </docblock>
2359
  </method>
2360
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1217" package="Media Library Assistant">
2361
+ <name>print_column_headers</name>
2362
+ <full_name>print_column_headers</full_name>
2363
+ <docblock line="1210">
2364
+ <description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
2365
+ <long-description><![CDATA[]]></long-description>
2366
+ <tag line="1210" name="since" description="1.42"/>
2367
+ <tag line="1210" name="param" description="Whether to set the id attribute or not" type="bool" variable="$with_id">
2368
+ <type by_reference="false">bool</type>
2369
+ </tag>
2370
+ </docblock>
2371
+ <argument line="1217">
2372
+ <name>$with_id</name>
2373
+ <default><![CDATA[true]]></default>
2374
+ <type/>
2375
+ </argument>
2376
+ </method>
2377
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1234" package="Media Library Assistant">
2378
  <name>_get_view</name>
2379
  <full_name>_get_view</full_name>
2380
+ <docblock line="1224">
2381
  <description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
2382
  <long-description><![CDATA[]]></long-description>
2383
+ <tag line="1224" name="since" description="1.40"/>
2384
+ <tag line="1224" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
2385
  <type by_reference="false">string</type>
2386
  </tag>
2387
+ <tag line="1224" name="param" description="Slug for current view" type="string" variable="$current_view">
2388
  <type by_reference="false">string</type>
2389
  </tag>
2390
+ <tag line="1224" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
2391
  <type by_reference="false">string</type>
2392
  </tag>
2393
  </docblock>
2394
+ <argument line="1234">
2395
  <name>$view_slug</name>
2396
  <default><![CDATA[]]></default>
2397
  <type/>
2398
  </argument>
2399
+ <argument line="1234">
2400
  <name>$current_view</name>
2401
  <default><![CDATA[]]></default>
2402
  <type/>
2403
  </argument>
2404
  </method>
2405
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1344" package="Media Library Assistant">
2406
  <name>get_views</name>
2407
  <full_name>get_views</full_name>
2408
+ <docblock line="1336">
2409
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
2410
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
2411
+ <tag line="1336" name="since" description="0.1"/>
2412
+ <tag line="1336" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
2413
  <type by_reference="false">array</type>
2414
  </tag>
2415
  </docblock>
2416
  </method>
2417
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1392" package="Media Library Assistant">
2418
  <name>get_bulk_actions</name>
2419
  <full_name>get_bulk_actions</full_name>
2420
+ <docblock line="1384">
2421
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
2422
  of bulk actions available on this table.]]></description>
2423
  <long-description><![CDATA[]]></long-description>
2424
+ <tag line="1384" name="since" description="0.1"/>
2425
+ <tag line="1384" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
2426
  <type by_reference="false">array</type>
2427
  </tag>
2428
  </docblock>
2429
  </method>
2430
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1423" package="Media Library Assistant">
2431
  <name>extra_tablenav</name>
2432
  <full_name>extra_tablenav</full_name>
2433
+ <docblock line="1412">
2434
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
2435
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
2436
+ <tag line="1412" name="since" description="0.1"/>
2437
+ <tag line="1412" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
2438
  <type by_reference="false">string</type>
2439
  </tag>
2440
+ <tag line="1412" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
2441
  <type by_reference="false">array</type>
2442
  </tag>
2443
  </docblock>
2444
+ <argument line="1423">
2445
  <name>$which</name>
2446
  <default><![CDATA[]]></default>
2447
  <type/>
2448
  </argument>
2449
  </method>
2450
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1456" package="Media Library Assistant">
2451
  <name>prepare_items</name>
2452
  <full_name>prepare_items</full_name>
2453
+ <docblock line="1444">
2454
  <description><![CDATA[Prepares the list of items for displaying]]></description>
2455
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
2456
  be used to query the database, sort and filter the data, and generally
2457
  get it ready to be displayed. At a minimum, we should set $this->items and
2458
  $this->set_pagination_args().</p>]]></long-description>
2459
+ <tag line="1444" name="since" description="0.1"/>
2460
+ <tag line="1444" name="return" description="" type="void">
2461
  <type by_reference="false">void</type>
2462
  </tag>
2463
  </docblock>
2464
  </method>
2465
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1503" package="Media Library Assistant">
2466
  <name>single_row</name>
2467
  <full_name>single_row</full_name>
2468
+ <docblock line="1494">
2469
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
2470
  <long-description><![CDATA[]]></long-description>
2471
+ <tag line="1494" name="since" description=".20"/>
2472
+ <tag line="1494" name="param" description="the current item" type="object" variable="$item">
2473
  <type by_reference="false">object</type>
2474
  </tag>
2475
+ <tag line="1494" name="return" description="Echoes the row HTML" type="void">
2476
  <type by_reference="false">void</type>
2477
  </tag>
2478
  </docblock>
2479
+ <argument line="1503">
2480
  <name>$item</name>
2481
  <default><![CDATA[]]></default>
2482
  <type/>
2484
  </method>
2485
  </class>
2486
  </file>
2487
+ <file path="includes\class-mla-main.php" hash="74c8aab19f7e69d85ef967abe154e53b" package="Media Library Assistant">
2488
  <docblock line="2">
2489
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
2490
  <long-description><![CDATA[]]></long-description>
2521
  <constant namespace="global" line="41" package="Media Library Assistant">
2522
  <name>CURRENT_MLA_VERSION</name>
2523
  <full_name>CURRENT_MLA_VERSION</full_name>
2524
+ <value><![CDATA['1.42']]></value>
2525
  <docblock line="34">
2526
  <description><![CDATA[Current version number]]></description>
2527
  <long-description><![CDATA[]]></long-description>
2929
  </tag>
2930
  </docblock>
2931
  </method>
2932
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="920" package="Media Library Assistant">
2933
  <name>mla_inline_edit_action</name>
2934
  <full_name>mla_inline_edit_action</full_name>
2935
+ <docblock line="911">
2936
  <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
2937
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
2938
+ <tag line="911" name="since" description="0.20"/>
2939
+ <tag line="911" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
2940
  <type by_reference="false">void</type>
2941
  </tag>
2942
  </docblock>
2943
  </method>
2944
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1015" package="Media Library Assistant">
2945
  <name>_build_inline_edit_form</name>
2946
  <full_name>_build_inline_edit_form</full_name>
2947
+ <docblock line="1004">
2948
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
2949
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
2950
+ <tag line="1004" name="since" description="0.20"/>
2951
+ <tag line="1004" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
2952
  <type by_reference="false">object</type>
2953
  </tag>
2954
+ <tag line="1004" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
2955
  <type by_reference="false">string</type>
2956
  </tag>
2957
  </docblock>
2958
+ <argument line="1015">
2959
  <name>$MLAListTable</name>
2960
  <default><![CDATA[]]></default>
2961
  <type/>
2962
  </argument>
2963
  </method>
2964
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1172" package="Media Library Assistant">
2965
  <name>_authors_dropdown</name>
2966
  <full_name>_authors_dropdown</full_name>
2967
+ <docblock line="1161">
2968
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
2969
  <long-description><![CDATA[]]></long-description>
2970
+ <tag line="1161" name="since" description="0.20"/>
2971
+ <tag line="1161" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
2972
  <type by_reference="false">integer</type>
2973
  </tag>
2974
+ <tag line="1161" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
2975
  <type by_reference="false">string</type>
2976
  </tag>
2977
+ <tag line="1161" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
2978
  <type by_reference="false">string</type>
2979
  </tag>
2980
+ <tag line="1161" name="return" description="HTML markup for the dropdown field or False" type="string|false">
2981
  <type by_reference="false">string</type>
2982
  <type by_reference="false">false</type>
2983
  </tag>
2984
  </docblock>
2985
+ <argument line="1172">
2986
  <name>$author</name>
2987
  <default><![CDATA[0]]></default>
2988
  <type/>
2989
  </argument>
2990
+ <argument line="1172">
2991
  <name>$name</name>
2992
  <default><![CDATA['post_author']]></default>
2993
  <type/>
2994
  </argument>
2995
+ <argument line="1172">
2996
  <name>$class</name>
2997
  <default><![CDATA['authors']]></default>
2998
  <type/>
2999
  </argument>
3000
  </method>
3001
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1206" package="Media Library Assistant">
3002
  <name>_current_bulk_action</name>
3003
  <full_name>_current_bulk_action</full_name>
3004
+ <docblock line="1199">
3005
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
3006
  <long-description><![CDATA[]]></long-description>
3007
+ <tag line="1199" name="since" description="0.1"/>
3008
+ <tag line="1199" name="return" description="The action name or False if no action was selected" type="string|false">
3009
  <type by_reference="false">string</type>
3010
  <type by_reference="false">false</type>
3011
  </tag>
3012
  </docblock>
3013
  </method>
3014
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1235" package="Media Library Assistant">
3015
  <name>_delete_single_item</name>
3016
  <full_name>_delete_single_item</full_name>
3017
+ <docblock line="1226">
3018
  <description><![CDATA[Delete a single item permanently]]></description>
3019
  <long-description><![CDATA[]]></long-description>
3020
+ <tag line="1226" name="since" description="0.1"/>
3021
+ <tag line="1226" name="param" description="The form POST data" type="array" variable="$post_id">
3022
  <type by_reference="false">array</type>
3023
  </tag>
3024
+ <tag line="1226" name="return" description="success/failure message and NULL content" type="array">
3025
  <type by_reference="false">array</type>
3026
  </tag>
3027
  </docblock>
3028
+ <argument line="1235">
3029
  <name>$post_id</name>
3030
  <default><![CDATA[]]></default>
3031
  <type/>
3032
  </argument>
3033
  </method>
3034
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1266" package="Media Library Assistant">
3035
  <name>_display_single_item</name>
3036
  <full_name>_display_single_item</full_name>
3037
+ <docblock line="1254">
3038
  <description><![CDATA[Display a single item sub page; prepare the form to
3039
  change the meta data for a single attachment.]]></description>
3040
  <long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
3041
+ <tag line="1254" name="since" description="0.1"/>
3042
+ <tag line="1254" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
3043
  <type by_reference="false">int</type>
3044
  </tag>
3045
+ <tag line="1254" name="return" description="message and/or HTML content" type="array">
3046
  <type by_reference="false">array</type>
3047
  </tag>
3048
  </docblock>
3049
+ <argument line="1266">
3050
  <name>$post_id</name>
3051
  <default><![CDATA[]]></default>
3052
  <type/>
3053
  </argument>
3054
  </method>
3055
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1506" package="Media Library Assistant">
3056
  <name>_restore_single_item</name>
3057
  <full_name>_restore_single_item</full_name>
3058
+ <docblock line="1497">
3059
  <description><![CDATA[Restore a single item from the Trash]]></description>
3060
  <long-description><![CDATA[]]></long-description>
3061
+ <tag line="1497" name="since" description="0.1"/>
3062
+ <tag line="1497" name="param" description="The form POST data" type="array" variable="$post_id">
3063
  <type by_reference="false">array</type>
3064
  </tag>
3065
+ <tag line="1497" name="return" description="success/failure message and NULL content" type="array">
3066
  <type by_reference="false">array</type>
3067
  </tag>
3068
  </docblock>
3069
+ <argument line="1506">
3070
  <name>$post_id</name>
3071
  <default><![CDATA[]]></default>
3072
  <type/>
3073
  </argument>
3074
  </method>
3075
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1542" package="Media Library Assistant">
3076
  <name>_trash_single_item</name>
3077
  <full_name>_trash_single_item</full_name>
3078
+ <docblock line="1533">
3079
  <description><![CDATA[Move a single item to Trash]]></description>
3080
  <long-description><![CDATA[]]></long-description>
3081
+ <tag line="1533" name="since" description="0.1"/>
3082
+ <tag line="1533" name="param" description="The form POST data" type="array" variable="$post_id">
3083
  <type by_reference="false">array</type>
3084
  </tag>
3085
+ <tag line="1533" name="return" description="success/failure message and NULL content" type="array">
3086
  <type by_reference="false">array</type>
3087
  </tag>
3088
  </docblock>
3089
+ <argument line="1542">
3090
  <name>$post_id</name>
3091
  <default><![CDATA[]]></default>
3092
  <type/>
3094
  </method>
3095
  </class>
3096
  </file>
3097
+ <file path="includes\class-mla-media-modal.php" hash="ce1ae68558d12287e05dba3d5e93371c" package="Media Library Assistant">
3098
  <docblock line="2">
3099
  <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
3100
  <long-description><![CDATA[]]></long-description>
3321
  </method>
3322
  </class>
3323
  </file>
3324
+ <file path="includes\class-mla-mime-types.php" hash="dae2503e9979ed6348d6014a96b4fc56" package="Media Library Assistant">
3325
  <docblock line="2">
3326
  <description><![CDATA[Media Library Assistant MIME Type Support]]></description>
3327
  <long-description><![CDATA[]]></long-description>
3387
  </tag>
3388
  </docblock>
3389
  </property>
3390
+ <property final="false" static="true" visibility="private" line="1395" namespace="global" package="Media Library Assistant">
3391
  <name>$mla_core_icon_types</name>
3392
  <default><![CDATA[NULL]]></default>
3393
+ <docblock line="1388">
3394
  <description><![CDATA[Icon types without MLA filtering]]></description>
3395
  <long-description><![CDATA[]]></long-description>
3396
+ <tag line="1388" name="since" description="1.40"/>
3397
+ <tag line="1388" name="var" description="extension =&gt; ( core_icon_type )" type="array">
3398
  <type by_reference="false">array</type>
3399
  </tag>
3400
  </docblock>
3401
  </property>
3402
+ <property final="false" static="true" visibility="private" line="1404" namespace="global" package="Media Library Assistant">
3403
  <name>$mla_current_icon_types</name>
3404
  <default><![CDATA[NULL]]></default>
3405
+ <docblock line="1397">
3406
  <description><![CDATA[Icon types with MLA filtering - basenames of files in the current icon directory]]></description>
3407
  <long-description><![CDATA[]]></long-description>
3408
+ <tag line="1397" name="since" description="1.40"/>
3409
+ <tag line="1397" name="var" description="( icon_type =&gt; icon_image_uri )" type="array">
3410
  <type by_reference="false">array</type>
3411
  </tag>
3412
  </docblock>
3413
  </property>
3414
+ <property final="false" static="true" visibility="private" line="1413" namespace="global" package="Media Library Assistant">
3415
  <name>$mla_upload_mime_templates</name>
3416
  <default><![CDATA[NULL]]></default>
3417
+ <docblock line="1406">
3418
  <description><![CDATA[In-memory representation of the Upload MIME Types]]></description>
3419
  <long-description><![CDATA[]]></long-description>
3420
+ <tag line="1406" name="since" description="1.40"/>
3421
+ <tag line="1406" name="var" description="extension =&gt; ( post_ID, mime_type, core_type, mla_type, source, standard_source, disabled, description, icon_type, wp_icon_type, mla_icon_type, core_icon_type )" type="array">
3422
  <type by_reference="false">array</type>
3423
  </tag>
3424
  </docblock>
3425
  </property>
3426
+ <property final="false" static="true" visibility="private" line="1422" namespace="global" package="Media Library Assistant">
3427
  <name>$mla_upload_mime_highest_ID</name>
3428
  <default><![CDATA[0]]></default>
3429
+ <docblock line="1415">
3430
  <description><![CDATA[Highest existing Upload MIME Type ID value]]></description>
3431
  <long-description><![CDATA[]]></long-description>
3432
+ <tag line="1415" name="since" description="1.40"/>
3433
+ <tag line="1415" name="var" description="" type="integer">
3434
  <type by_reference="false">integer</type>
3435
  </tag>
3436
  </docblock>
3437
  </property>
3438
+ <property final="false" static="true" visibility="private" line="2154" namespace="global" package="Media Library Assistant">
3439
  <name>$mla_optional_upload_mime_templates</name>
3440
  <default><![CDATA[NULL]]></default>
3441
+ <docblock line="2147">
3442
  <description><![CDATA[In-memory representation of the (read-only) Optional Upload MIME Types]]></description>
3443
  <long-description><![CDATA[]]></long-description>
3444
+ <tag line="2147" name="since" description="1.40"/>
3445
+ <tag line="2147" name="var" description="( ID, slug, mime_type, core_type, mla_type, description )" type="array">
3446
  <type by_reference="false">array</type>
3447
  </tag>
3448
  </docblock>
3905
  </tag>
3906
  </docblock>
3907
  </method>
3908
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="776" package="Media Library Assistant">
3909
  <name>mla_prepare_view_query</name>
3910
  <full_name>mla_prepare_view_query</full_name>
3911
  <docblock line="766">
3912
  <description><![CDATA[Convert a Library View/Post MIME Type specification to WP_Query parameters]]></description>
3913
  <long-description><![CDATA[]]></long-description>
3914
  <tag line="766" name="since" description="1.40"/>
3915
+ <tag line="766" name="param" description="View slug, unique identifier" type="string" variable="$slug">
3916
+ <type by_reference="false">string</type>
3917
+ </tag>
3918
  <tag line="766" name="param" description="A specification, e.g., &quot;custom:Field,null&quot; or &quot;audio,application/vnd.*ms*&quot;" type="string" variable="$specification">
3919
  <type by_reference="false">string</type>
3920
  </tag>
3922
  <type by_reference="false">array</type>
3923
  </tag>
3924
  </docblock>
3925
+ <argument line="776">
3926
+ <name>$slug</name>
3927
+ <default><![CDATA[]]></default>
3928
+ <type/>
3929
+ </argument>
3930
+ <argument line="776">
3931
  <name>$specification</name>
3932
  <default><![CDATA[]]></default>
3933
  <type/>
3934
  </argument>
3935
  </method>
3936
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="826" package="Media Library Assistant">
3937
  <name>mla_parse_view_specification</name>
3938
  <full_name>mla_parse_view_specification</full_name>
3939
+ <docblock line="817">
3940
  <description><![CDATA[Analyze a Library View/Post MIME Type specification, returning an array of the place holders it contains]]></description>
3941
  <long-description><![CDATA[]]></long-description>
3942
+ <tag line="817" name="since" description="1.40"/>
3943
+ <tag line="817" name="param" description="A specification, e.g., &quot;custom:Field,null&quot; or &quot;audio,application/vnd.*ms*&quot;" type="string" variable="$specification">
3944
  <type by_reference="false">string</type>
3945
  </tag>
3946
+ <tag line="817" name="return" description="( ['prefix'] =&gt; string, ['name'] =&gt; string, ['value'] =&gt; string, ['option'] =&gt; string, optional ['error'] =&gt; string )" type="array">
3947
  <type by_reference="false">array</type>
3948
  </tag>
3949
  </docblock>
3950
+ <argument line="826">
3951
  <name>$specification</name>
3952
  <default><![CDATA[]]></default>
3953
  <type/>
3954
  </argument>
3955
  </method>
3956
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="885" package="Media Library Assistant">
3957
  <name>mla_add_post_mime_type</name>
3958
  <full_name>mla_add_post_mime_type</full_name>
3959
+ <docblock line="876">
3960
  <description><![CDATA[Add an MLA post_mime_type object]]></description>
3961
  <long-description><![CDATA[]]></long-description>
3962
+ <tag line="876" name="since" description="1.40"/>
3963
+ <tag line="876" name="param" description="Query variables for a single object, including slug" type="array" variable="$request">
3964
  <type by_reference="false">array</type>
3965
  </tag>
3966
+ <tag line="876" name="return" description="Message(s) reflecting the results of the operation" type="array">
3967
  <type by_reference="false">array</type>
3968
  </tag>
3969
  </docblock>
3970
+ <argument line="885">
3971
  <name>$request</name>
3972
  <default><![CDATA[]]></default>
3973
  <type/>
3974
  </argument>
3975
  </method>
3976
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="956" package="Media Library Assistant">
3977
  <name>mla_update_post_mime_type</name>
3978
  <full_name>mla_update_post_mime_type</full_name>
3979
+ <docblock line="947">
3980
  <description><![CDATA[Update an MLA post_mime_type object]]></description>
3981
  <long-description><![CDATA[]]></long-description>
3982
+ <tag line="947" name="since" description="1.40"/>
3983
+ <tag line="947" name="param" description="Query variables for new object values, including optional original_slug" type="array" variable="$request">
3984
  <type by_reference="false">array</type>
3985
  </tag>
3986
+ <tag line="947" name="return" description="Message(s) reflecting the results of the operation" type="array">
3987
  <type by_reference="false">array</type>
3988
  </tag>
3989
  </docblock>
3990
+ <argument line="956">
3991
  <name>$request</name>
3992
  <default><![CDATA[]]></default>
3993
  <type/>
3994
  </argument>
3995
  </method>
3996
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1055" package="Media Library Assistant">
3997
  <name>mla_get_post_mime_type_slug</name>
3998
  <full_name>mla_get_post_mime_type_slug</full_name>
3999
+ <docblock line="1046">
4000
  <description><![CDATA[Retrieve an MLA post_mime_type slug given a post_ID]]></description>
4001
  <long-description><![CDATA[]]></long-description>
4002
+ <tag line="1046" name="since" description="1.40"/>
4003
+ <tag line="1046" name="param" description="MLA post_mime_type post_ID" type="integer" variable="$post_ID">
4004
  <type by_reference="false">integer</type>
4005
  </tag>
4006
+ <tag line="1046" name="return" description="string with slug of the requested object; false if object not found" type="mixed">
4007
  <type by_reference="false">mixed</type>
4008
  </tag>
4009
  </docblock>
4010
+ <argument line="1055">
4011
  <name>$post_ID</name>
4012
  <default><![CDATA[]]></default>
4013
  <type/>
4014
  </argument>
4015
  </method>
4016
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1076" package="Media Library Assistant">
4017
  <name>mla_get_post_mime_type</name>
4018
  <full_name>mla_get_post_mime_type</full_name>
4019
+ <docblock line="1067">
4020
  <description><![CDATA[Retrieve an MLA post_mime_type object]]></description>
4021
  <long-description><![CDATA[]]></long-description>
4022
+ <tag line="1067" name="since" description="1.40"/>
4023
+ <tag line="1067" name="param" description="MLA post_mime_type slug" type="string" variable="$slug">
4024
  <type by_reference="false">string</type>
4025
  </tag>
4026
+ <tag line="1067" name="return" description="Array of elements, including slug, for the requested object; false if object not found" type="mixed">
4027
  <type by_reference="false">mixed</type>
4028
  </tag>
4029
  </docblock>
4030
+ <argument line="1076">
4031
  <name>$slug</name>
4032
  <default><![CDATA[]]></default>
4033
  <type/>
4034
  </argument>
4035
  </method>
4036
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1098" package="Media Library Assistant">
4037
  <name>mla_delete_post_mime_type</name>
4038
  <full_name>mla_delete_post_mime_type</full_name>
4039
+ <docblock line="1089">
4040
  <description><![CDATA[Delete an MLA post_mime_type object]]></description>
4041
  <long-description><![CDATA[]]></long-description>
4042
+ <tag line="1089" name="since" description="1.40"/>
4043
+ <tag line="1089" name="param" description="MLA post_mime_type slug" type="string" variable="$slug">
4044
  <type by_reference="false">string</type>
4045
  </tag>
4046
+ <tag line="1089" name="return" description="Message(s) reflecting the results of the operation" type="array">
4047
  <type by_reference="false">array</type>
4048
  </tag>
4049
  </docblock>
4050
+ <argument line="1098">
4051
  <name>$slug</name>
4052
  <default><![CDATA[]]></default>
4053
  <type/>
4054
  </argument>
4055
  </method>
4056
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1136" package="Media Library Assistant">
4057
  <name>_prepare_upload_items_query</name>
4058
  <full_name>_prepare_upload_items_query</full_name>
4059
+ <docblock line="1125">
4060
  <description><![CDATA[Sanitize and expand Upload MIME Type query arguments from request variables]]></description>
4061
  <long-description><![CDATA[]]></long-description>
4062
+ <tag line="1125" name="since" description="1.40"/>
4063
+ <tag line="1125" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
4064
  <type by_reference="false">array</type>
4065
  </tag>
4066
+ <tag line="1125" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
4067
  <type by_reference="false">int</type>
4068
  </tag>
4069
+ <tag line="1125" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
4070
  <type by_reference="false">int</type>
4071
  </tag>
4072
+ <tag line="1125" name="return" description="revised arguments suitable for query" type="array">
4073
  <type by_reference="false">array</type>
4074
  </tag>
4075
  </docblock>
4076
+ <argument line="1136">
4077
  <name>$raw_request</name>
4078
  <default><![CDATA[]]></default>
4079
  <type/>
4080
  </argument>
4081
+ <argument line="1136">
4082
  <name>$offset</name>
4083
  <default><![CDATA[0]]></default>
4084
  <type/>
4085
  </argument>
4086
+ <argument line="1136">
4087
  <name>$count</name>
4088
  <default><![CDATA[0]]></default>
4089
  <type/>
4090
  </argument>
4091
  </method>
4092
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1212" package="Media Library Assistant">
4093
  <name>_execute_upload_items_query</name>
4094
  <full_name>_execute_upload_items_query</full_name>
4095
+ <docblock line="1203">
4096
  <description><![CDATA[Execute an Upload MIME Types query]]></description>
4097
  <long-description><![CDATA[]]></long-description>
4098
+ <tag line="1203" name="since" description="1.40"/>
4099
+ <tag line="1203" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
4100
  <type by_reference="false">array</type>
4101
  </tag>
4102
+ <tag line="1203" name="return" description="query results; array of MLA Upload MIME Type objects" type="array">
4103
  <type by_reference="false">array</type>
4104
  </tag>
4105
  </docblock>
4106
+ <argument line="1212">
4107
  <name>$request</name>
4108
  <default><![CDATA[]]></default>
4109
  <type/>
4110
  </argument>
4111
  </method>
4112
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1330" package="Media Library Assistant">
4113
  <name>mla_count_upload_items</name>
4114
  <full_name>mla_count_upload_items</full_name>
4115
+ <docblock line="1321">
4116
  <description><![CDATA[Get the total number of MLA Upload MIME Type objects]]></description>
4117
  <long-description><![CDATA[]]></long-description>
4118
+ <tag line="1321" name="since" description="1.40"/>
4119
+ <tag line="1321" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
4120
  <type by_reference="false">array</type>
4121
  </tag>
4122
+ <tag line="1321" name="return" description="Number of MLA Upload MIME Type objects" type="integer">
4123
  <type by_reference="false">integer</type>
4124
  </tag>
4125
  </docblock>
4126
+ <argument line="1330">
4127
  <name>$request</name>
4128
  <default><![CDATA[]]></default>
4129
  <type/>
4130
  </argument>
4131
  </method>
4132
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1347" package="Media Library Assistant">
4133
  <name>mla_query_upload_items</name>
4134
  <full_name>mla_query_upload_items</full_name>
4135
+ <docblock line="1336">
4136
  <description><![CDATA[Retrieve MLA Upload MIME Type objects for list table display]]></description>
4137
  <long-description><![CDATA[]]></long-description>
4138
+ <tag line="1336" name="since" description="1.40"/>
4139
+ <tag line="1336" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
4140
  <type by_reference="false">array</type>
4141
  </tag>
4142
+ <tag line="1336" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
4143
  <type by_reference="false">int</type>
4144
  </tag>
4145
+ <tag line="1336" name="param" description="number of rows on each page" type="int" variable="$count">
4146
  <type by_reference="false">int</type>
4147
  </tag>
4148
+ <tag line="1336" name="return" description="MLA Upload MIME Type objects" type="array">
4149
  <type by_reference="false">array</type>
4150
  </tag>
4151
  </docblock>
4152
+ <argument line="1347">
4153
  <name>$request</name>
4154
  <default><![CDATA[]]></default>
4155
  <type/>
4156
  </argument>
4157
+ <argument line="1347">
4158
  <name>$offset</name>
4159
  <default><![CDATA[]]></default>
4160
  <type/>
4161
  </argument>
4162
+ <argument line="1347">
4163
  <name>$count</name>
4164
  <default><![CDATA[]]></default>
4165
  <type/>
4166
  </argument>
4167
  </method>
4168
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1362" package="Media Library Assistant">
4169
  <name>mla_tabulate_upload_items</name>
4170
  <full_name>mla_tabulate_upload_items</full_name>
4171
+ <docblock line="1353">
4172
  <description><![CDATA[Tabulate MLA Upload MIME Type objects by view for list table display]]></description>
4173
  <long-description><![CDATA[]]></long-description>
4174
+ <tag line="1353" name="since" description="1.40"/>
4175
+ <tag line="1353" name="param" description="keyword search criterion, optional" type="string" variable="$s">
4176
  <type by_reference="false">string</type>
4177
  </tag>
4178
+ <tag line="1353" name="return" description="( 'singular' label, 'plural' label, 'count' of items )" type="array">
4179
  <type by_reference="false">array</type>
4180
  </tag>
4181
  </docblock>
4182
+ <argument line="1362">
4183
  <name>$s</name>
4184
  <default><![CDATA['']]></default>
4185
  <type/>
4186
  </argument>
4187
  </method>
4188
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1431" package="Media Library Assistant">
4189
  <name>_get_core_icon_types</name>
4190
  <full_name>_get_core_icon_types</full_name>
4191
+ <docblock line="1424">
4192
  <description><![CDATA[Assemble the list of icon types without MLA filtering]]></description>
4193
  <long-description><![CDATA[]]></long-description>
4194
+ <tag line="1424" name="since" description="1.40"/>
4195
+ <tag line="1424" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4196
  <type by_reference="false">boolean</type>
4197
  </tag>
4198
  </docblock>
4199
  </method>
4200
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1468" package="Media Library Assistant">
4201
  <name>_get_current_icon_types</name>
4202
  <full_name>_get_current_icon_types</full_name>
4203
+ <docblock line="1461">
4204
  <description><![CDATA[Assemble the list of icon types with MLA filtering]]></description>
4205
  <long-description><![CDATA[]]></long-description>
4206
+ <tag line="1461" name="since" description="1.40"/>
4207
+ <tag line="1461" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4208
  <type by_reference="false">boolean</type>
4209
  </tag>
4210
  </docblock>
4211
  </method>
4212
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1513" package="Media Library Assistant">
4213
  <name>mla_get_core_icon_type</name>
4214
  <full_name>mla_get_core_icon_type</full_name>
4215
+ <docblock line="1504">
4216
  <description><![CDATA[Retrieve a standard icon type, i.e., without MLA filtering]]></description>
4217
  <long-description><![CDATA[]]></long-description>
4218
+ <tag line="1504" name="since" description="1.40"/>
4219
+ <tag line="1504" name="param" description="file extension" type="string" variable="$extension">
4220
  <type by_reference="false">string</type>
4221
  </tag>
4222
+ <tag line="1504" name="return" description="icon type for the requested extension; 'default' if extension not found" type="string">
4223
  <type by_reference="false">string</type>
4224
  </tag>
4225
  </docblock>
4226
+ <argument line="1513">
4227
  <name>$extension</name>
4228
  <default><![CDATA[]]></default>
4229
  <type/>
4230
  </argument>
4231
  </method>
4232
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1531" package="Media Library Assistant">
4233
  <name>mla_get_icon_type_image</name>
4234
  <full_name>mla_get_icon_type_image</full_name>
4235
+ <docblock line="1521">
4236
  <description><![CDATA[Get an HTML img element representing an attachment icon]]></description>
4237
  <long-description><![CDATA[]]></long-description>
4238
+ <tag line="1521" name="since" description="1.40"/>
4239
+ <tag line="1521" name="param" description="Icon Type, e.g., audio, video, spreadsheet" type="string" variable="$icon_type">
4240
  <type by_reference="false">string</type>
4241
  </tag>
4242
+ <tag line="1521" name="param" description="( width, height ) optional image size, default (64, 64)." type="array" variable="$size">
4243
  <type by_reference="false">array</type>
4244
  </tag>
4245
+ <tag line="1521" name="return" description="HTML img element or empty string on failure." type="string">
4246
  <type by_reference="false">string</type>
4247
  </tag>
4248
  </docblock>
4249
+ <argument line="1531">
4250
  <name>$icon_type</name>
4251
  <default><![CDATA[]]></default>
4252
  <type/>
4253
  </argument>
4254
+ <argument line="1531">
4255
  <name>$size</name>
4256
  <default><![CDATA[NULL]]></default>
4257
  <type/>
4258
  </argument>
4259
  </method>
4260
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1566" package="Media Library Assistant">
4261
  <name>mla_get_current_icon_types</name>
4262
  <full_name>mla_get_current_icon_types</full_name>
4263
+ <docblock line="1559">
4264
  <description><![CDATA[Get an array of current Icon Type names]]></description>
4265
  <long-description><![CDATA[]]></long-description>
4266
+ <tag line="1559" name="since" description="1.40"/>
4267
+ <tag line="1559" name="return" description="( icon_type ) or false on failure." type="array">
4268
  <type by_reference="false">array</type>
4269
  </tag>
4270
  </docblock>
4271
  </method>
4272
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1581" package="Media Library Assistant">
4273
  <name>_get_upload_mime_templates</name>
4274
  <full_name>_get_upload_mime_templates</full_name>
4275
+ <docblock line="1573">
4276
  <description><![CDATA[Assemble the in-memory representation of the Upload MIME Types]]></description>
4277
  <long-description><![CDATA[]]></long-description>
4278
+ <tag line="1573" name="since" description="1.40"/>
4279
+ <tag line="1573" name="param" description="Force a reload/recalculation of types" type="boolean" variable="$force_refresh">
4280
  <type by_reference="false">boolean</type>
4281
  </tag>
4282
+ <tag line="1573" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4283
  <type by_reference="false">boolean</type>
4284
  </tag>
4285
  </docblock>
4286
+ <argument line="1581">
4287
  <name>$force_refresh</name>
4288
  <default><![CDATA[false]]></default>
4289
  <type/>
4290
  </argument>
4291
  </method>
4292
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1796" package="Media Library Assistant">
4293
  <name>_put_upload_mime_templates</name>
4294
  <full_name>_put_upload_mime_templates</full_name>
4295
+ <docblock line="1789">
4296
  <description><![CDATA[Store the options portion of the Upload MIME Types]]></description>
4297
  <long-description><![CDATA[]]></long-description>
4298
+ <tag line="1789" name="since" description="1.40"/>
4299
+ <tag line="1789" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4300
  <type by_reference="false">boolean</type>
4301
  </tag>
4302
  </docblock>
4303
  </method>
4304
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1827" package="Media Library Assistant">
4305
  <name>mla_add_upload_mime</name>
4306
  <full_name>mla_add_upload_mime</full_name>
4307
+ <docblock line="1818">
4308
  <description><![CDATA[Add an MLA Upload MIME Type object]]></description>
4309
  <long-description><![CDATA[]]></long-description>
4310
+ <tag line="1818" name="since" description="1.40"/>
4311
+ <tag line="1818" name="param" description="Query variables for a single object, including slug" type="array" variable="$request">
4312
  <type by_reference="false">array</type>
4313
  </tag>
4314
+ <tag line="1818" name="return" description="Message(s) reflecting the results of the operation" type="array">
4315
  <type by_reference="false">array</type>
4316
  </tag>
4317
  </docblock>
4318
+ <argument line="1827">
4319
  <name>$request</name>
4320
  <default><![CDATA[]]></default>
4321
  <type/>
4322
  </argument>
4323
  </method>
4324
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1915" package="Media Library Assistant">
4325
  <name>mla_update_upload_mime</name>
4326
  <full_name>mla_update_upload_mime</full_name>
4327
+ <docblock line="1906">
4328
  <description><![CDATA[Update an MLA Upload MIME Type object]]></description>
4329
  <long-description><![CDATA[]]></long-description>
4330
+ <tag line="1906" name="since" description="1.40"/>
4331
+ <tag line="1906" name="param" description="Query variables for new object values, including optional original_slug" type="array" variable="$request">
4332
  <type by_reference="false">array</type>
4333
  </tag>
4334
+ <tag line="1906" name="return" description="Message(s) reflecting the results of the operation" type="array">
4335
  <type by_reference="false">array</type>
4336
  </tag>
4337
  </docblock>
4338
+ <argument line="1915">
4339
  <name>$request</name>
4340
  <default><![CDATA[]]></default>
4341
  <type/>
4342
  </argument>
4343
  </method>
4344
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2077" package="Media Library Assistant">
4345
  <name>mla_get_upload_mime_slug</name>
4346
  <full_name>mla_get_upload_mime_slug</full_name>
4347
+ <docblock line="2068">
4348
  <description><![CDATA[Retrieve an MLA Upload MIME Type slug given a post_ID]]></description>
4349
  <long-description><![CDATA[]]></long-description>
4350
+ <tag line="2068" name="since" description="1.40"/>
4351
+ <tag line="2068" name="param" description="MLA Upload MIME Type post_ID" type="integer" variable="$post_ID">
4352
  <type by_reference="false">integer</type>
4353
  </tag>
4354
+ <tag line="2068" name="return" description="string with slug of the requested object; false if object not found" type="mixed">
4355
  <type by_reference="false">mixed</type>
4356
  </tag>
4357
  </docblock>
4358
+ <argument line="2077">
4359
  <name>$post_ID</name>
4360
  <default><![CDATA[]]></default>
4361
  <type/>
4362
  </argument>
4363
  </method>
4364
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2095" package="Media Library Assistant">
4365
  <name>mla_get_upload_mime</name>
4366
  <full_name>mla_get_upload_mime</full_name>
4367
+ <docblock line="2086">
4368
  <description><![CDATA[Retrieve an MLA Upload MIME Type object]]></description>
4369
  <long-description><![CDATA[]]></long-description>
4370
+ <tag line="2086" name="since" description="1.40"/>
4371
+ <tag line="2086" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
4372
  <type by_reference="false">string</type>
4373
  </tag>
4374
+ <tag line="2086" name="return" description="Array of elements, including slug, for the requested object; false if object not found" type="mixed">
4375
  <type by_reference="false">mixed</type>
4376
  </tag>
4377
  </docblock>
4378
+ <argument line="2095">
4379
  <name>$slug</name>
4380
  <default><![CDATA[]]></default>
4381
  <type/>
4382
  </argument>
4383
  </method>
4384
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2115" package="Media Library Assistant">
4385
  <name>mla_delete_upload_mime</name>
4386
  <full_name>mla_delete_upload_mime</full_name>
4387
+ <docblock line="2106">
4388
  <description><![CDATA[Delete an MLA Upload MIME Type object]]></description>
4389
  <long-description><![CDATA[]]></long-description>
4390
+ <tag line="2106" name="since" description="1.40"/>
4391
+ <tag line="2106" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
4392
  <type by_reference="false">string</type>
4393
  </tag>
4394
+ <tag line="2106" name="return" description="Message(s) reflecting the results of the operation" type="array">
4395
  <type by_reference="false">array</type>
4396
  </tag>
4397
  </docblock>
4398
+ <argument line="2115">
4399
  <name>$slug</name>
4400
  <default><![CDATA[]]></default>
4401
  <type/>
4402
  </argument>
4403
  </method>
4404
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2167" package="Media Library Assistant">
4405
  <name>_prepare_optional_upload_items_query</name>
4406
  <full_name>_prepare_optional_upload_items_query</full_name>
4407
+ <docblock line="2156">
4408
  <description><![CDATA[Sanitize and expand Optional Upload MIME Type query arguments from request variables]]></description>
4409
  <long-description><![CDATA[]]></long-description>
4410
+ <tag line="2156" name="since" description="1.40"/>
4411
+ <tag line="2156" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
4412
  <type by_reference="false">array</type>
4413
  </tag>
4414
+ <tag line="2156" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
4415
  <type by_reference="false">int</type>
4416
  </tag>
4417
+ <tag line="2156" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
4418
  <type by_reference="false">int</type>
4419
  </tag>
4420
+ <tag line="2156" name="return" description="revised arguments suitable for query" type="array">
4421
  <type by_reference="false">array</type>
4422
  </tag>
4423
  </docblock>
4424
+ <argument line="2167">
4425
  <name>$raw_request</name>
4426
  <default><![CDATA[]]></default>
4427
  <type/>
4428
  </argument>
4429
+ <argument line="2167">
4430
  <name>$offset</name>
4431
  <default><![CDATA[0]]></default>
4432
  <type/>
4433
  </argument>
4434
+ <argument line="2167">
4435
  <name>$count</name>
4436
  <default><![CDATA[0]]></default>
4437
  <type/>
4438
  </argument>
4439
  </method>
4440
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2239" package="Media Library Assistant">
4441
  <name>_execute_optional_upload_items_query</name>
4442
  <full_name>_execute_optional_upload_items_query</full_name>
4443
+ <docblock line="2230">
4444
  <description><![CDATA[Execute an Optional Upload MIME Types query]]></description>
4445
  <long-description><![CDATA[]]></long-description>
4446
+ <tag line="2230" name="since" description="1.40"/>
4447
+ <tag line="2230" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
4448
  <type by_reference="false">array</type>
4449
  </tag>
4450
+ <tag line="2230" name="return" description="query results; array of MLA Optional Upload MIME Type objects" type="array">
4451
  <type by_reference="false">array</type>
4452
  </tag>
4453
  </docblock>
4454
+ <argument line="2239">
4455
  <name>$request</name>
4456
  <default><![CDATA[]]></default>
4457
  <type/>
4458
  </argument>
4459
  </method>
4460
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2317" package="Media Library Assistant">
4461
  <name>mla_count_optional_upload_items</name>
4462
  <full_name>mla_count_optional_upload_items</full_name>
4463
+ <docblock line="2308">
4464
  <description><![CDATA[Get the total number of MLA Upload MIME Type objects]]></description>
4465
  <long-description><![CDATA[]]></long-description>
4466
+ <tag line="2308" name="since" description="1.40"/>
4467
+ <tag line="2308" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
4468
  <type by_reference="false">array</type>
4469
  </tag>
4470
+ <tag line="2308" name="return" description="Number of MLA Upload MIME Type objects" type="integer">
4471
  <type by_reference="false">integer</type>
4472
  </tag>
4473
  </docblock>
4474
+ <argument line="2317">
4475
  <name>$request</name>
4476
  <default><![CDATA[]]></default>
4477
  <type/>
4478
  </argument>
4479
  </method>
4480
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2334" package="Media Library Assistant">
4481
  <name>mla_query_optional_upload_items</name>
4482
  <full_name>mla_query_optional_upload_items</full_name>
4483
+ <docblock line="2323">
4484
  <description><![CDATA[Retrieve MLA Upload MIME Type objects for list table display]]></description>
4485
  <long-description><![CDATA[]]></long-description>
4486
+ <tag line="2323" name="since" description="1.40"/>
4487
+ <tag line="2323" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
4488
  <type by_reference="false">array</type>
4489
  </tag>
4490
+ <tag line="2323" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
4491
  <type by_reference="false">int</type>
4492
  </tag>
4493
+ <tag line="2323" name="param" description="number of rows on each page" type="int" variable="$count">
4494
  <type by_reference="false">int</type>
4495
  </tag>
4496
+ <tag line="2323" name="return" description="MLA Upload MIME Type objects" type="array">
4497
  <type by_reference="false">array</type>
4498
  </tag>
4499
  </docblock>
4500
+ <argument line="2334">
4501
  <name>$request</name>
4502
  <default><![CDATA[]]></default>
4503
  <type/>
4504
  </argument>
4505
+ <argument line="2334">
4506
  <name>$offset</name>
4507
  <default><![CDATA[]]></default>
4508
  <type/>
4509
  </argument>
4510
+ <argument line="2334">
4511
  <name>$count</name>
4512
  <default><![CDATA[]]></default>
4513
  <type/>
4514
  </argument>
4515
  </method>
4516
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2347" package="Media Library Assistant">
4517
  <name>_get_optional_upload_mime_templates</name>
4518
  <full_name>_get_optional_upload_mime_templates</full_name>
4519
+ <docblock line="2340">
4520
  <description><![CDATA[Assemble the in-memory representation of the (read-only) Optional Upload MIME Types]]></description>
4521
  <long-description><![CDATA[]]></long-description>
4522
+ <tag line="2340" name="since" description="1.40"/>
4523
+ <tag line="2340" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
4524
  <type by_reference="false">boolean</type>
4525
  </tag>
4526
  </docblock>
4527
  </method>
4528
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2392" package="Media Library Assistant">
4529
  <name>mla_get_optional_upload_mime</name>
4530
  <full_name>mla_get_optional_upload_mime</full_name>
4531
+ <docblock line="2383">
4532
  <description><![CDATA[Retrieve an MLA Optional Upload MIME Type given an ID]]></description>
4533
  <long-description><![CDATA[]]></long-description>
4534
+ <tag line="2383" name="since" description="1.40"/>
4535
+ <tag line="2383" name="param" description="MLA Optional Upload MIME Type ID" type="integer" variable="$ID">
4536
  <type by_reference="false">integer</type>
4537
  </tag>
4538
+ <tag line="2383" name="return" description="the requested object; false if object not found" type="mixed">
4539
  <type by_reference="false">mixed</type>
4540
  </tag>
4541
  </docblock>
4542
+ <argument line="2392">
4543
  <name>$ID</name>
4544
  <default><![CDATA[]]></default>
4545
  <type/>
4648
  </method>
4649
  </class>
4650
  </file>
4651
+ <file path="includes\class-mla-options.php" hash="b182e02f71dbf3a8e3ebae4e227a60cd" package="Media Library Assistant">
4652
  <docblock line="2">
4653
  <description><![CDATA[Manages the plugin option settings]]></description>
4654
  <long-description><![CDATA[]]></long-description>
4869
  </property>
4870
  <property final="false" static="true" visibility="public" line="173" namespace="global" package="Media Library Assistant">
4871
  <name>$mla_option_definitions</name>
4872
+ <default><![CDATA[array(self::MLA_VERSION_OPTION => array('tab' => '', 'type' => 'hidden', 'std' => '0'), 'attachment_category' => array('tab' => '', 'name' => 'Attachment Categories', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Categories.'), 'attachment_tag' => array('tab' => '', 'name' => 'Attachment Tags', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Tags.'), 'where_used_heading' => array('tab' => 'general', 'name' => 'Where-used Reporting', 'type' => 'header'), 'exclude_revisions' => array('tab' => 'general', 'name' => 'Exclude Revisions', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to exclude revisions from where-used reporting.'), 'where_used_subheading' => array('tab' => 'general', 'name' => 'Where-used database access tuning', 'type' => 'subheader'), self::MLA_FEATURED_IN_TUNING => array('tab' => 'general', 'name' => 'Featured in', 'type' => 'select', 'std' => 'enabled', 'options' => array('enabled', 'disabled'), 'texts' => array('Enabled', 'Disabled'), 'help' => 'Search database posts and pages for Featured Image attachments.'), self::MLA_INSERTED_IN_TUNING => array('tab' => 'general', 'name' => 'Inserted in', 'type' => 'select', 'std' => 'base', 'options' => array('enabled', 'base', 'disabled'), 'texts' => array('Enabled', 'Base', 'Disabled'), 'help' => 'Search database posts and pages for attachments embedded in content.<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base name and extension only.'), self::MLA_GALLERY_IN_TUNING => array('tab' => 'general', 'name' => 'Gallery in', 'type' => 'select', 'std' => 'cached', 'options' => array('dynamic', 'refresh', 'cached', 'disabled'), 'texts' => array('Dynamic', 'Refresh', 'Cached', 'Disabled'), 'help' => 'Search database posts and pages for [gallery] shortcode results.<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached.'), self::MLA_MLA_GALLERY_IN_TUNING => array('tab' => 'general', 'name' => 'MLA Gallery in', 'type' => 'select', 'std' => 'cached', 'options' => array('dynamic', 'refresh', 'cached', 'disabled'), 'texts' => array('Dynamic', 'Refresh', 'Cached', 'Disabled'), 'help' => 'Search database posts and pages for [mla_gallery] shortcode results.<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached.'), 'taxonomy_heading' => array('tab' => 'general', 'name' => 'Taxonomy Support', 'type' => 'header'), 'taxonomy_support' => array('tab' => 'general', 'help' => 'Check the "Support" box to add the taxonomy to the Assistant and the Edit Media screen.<br>Check the "Inline Edit" box to display the taxonomy in the Quick Edit and Bulk Edit areas.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.', 'std' => array('tax_support' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_quick_edit' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_filter' => 'attachment_category'), 'type' => 'custom', 'render' => 'mla_taxonomy_option_handler', 'update' => 'mla_taxonomy_option_handler', 'delete' => 'mla_taxonomy_option_handler', 'reset' => 'mla_taxonomy_option_handler'), 'attachments_column' => array('tab' => '', 'name' => 'Attachments Column', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to replace the Posts column with the Attachments Column.'), 'orderby_heading' => array('tab' => 'general', 'name' => 'Media/Assistant Table Defaults', 'type' => 'header'), 'default_orderby' => array('tab' => 'general', 'name' => 'Order By', 'type' => 'select', 'std' => 'title_name', 'options' => array('none', 'title_name'), 'texts' => array('None', 'Title/Name'), 'help' => 'Select the column for the sort order of the Assistant table listing.'), 'default_order' => array('tab' => 'general', 'name' => 'Order', 'type' => 'radio', 'std' => 'ASC', 'options' => array('ASC', 'DESC'), 'texts' => array('Ascending', 'Descending'), 'help' => 'Choose the sort order.'), 'table_views_width' => array('tab' => 'general', 'name' => 'Views Width', 'type' => 'text', 'std' => '', 'size' => 10, 'help' => 'Enter the width for the views list, in pixels (px) or percent (%)'), 'media_modal_heading' => array('tab' => 'general', 'name' => 'Media Manager Enhancements', 'type' => 'header'), self::MLA_MEDIA_MODAL_TOOLBAR => array('tab' => 'general', 'name' => 'Enable Media Manager Enhancements', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable Media Manager Enhancements.'), self::MLA_MEDIA_MODAL_MIMETYPES => array('tab' => 'general', 'name' => 'Media Manager Enhanced MIME Type filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by more MIME Types, e.g., text, applications.'), self::MLA_MEDIA_MODAL_MONTHS => array('tab' => 'general', 'name' => 'Media Manager Month and Year filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by month and year uploaded.'), self::MLA_MEDIA_MODAL_TERMS => array('tab' => 'general', 'name' => 'Media Manager Category/Tag filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by taxonomy terms.'), self::MLA_MEDIA_MODAL_SEARCHBOX => array('tab' => 'general', 'name' => 'Media Manager Enhanced Search Media box', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to enable search box enhancements.'), 'template_heading' => array('tab' => 'mla_gallery', 'name' => 'Default [mla_gallery] Templates and Settings', 'type' => 'header'), 'default_style' => array('tab' => 'mla_gallery', 'name' => 'Style Template', 'type' => 'select', 'std' => 'default', 'options' => array(), 'texts' => array(), 'help' => 'Select the default style template for your [mla_gallery] shortcodes.'), 'default_markup' => array('tab' => 'mla_gallery', 'name' => 'Markup Template', 'type' => 'select', 'std' => 'default', 'options' => array(), 'texts' => array(), 'help' => 'Select the default markup template for your [mla_gallery] shortcodes.'), 'mla_gallery_columns' => array('tab' => 'mla_gallery', 'name' => 'Default columns', 'type' => 'text', 'std' => '3', 'size' => 3, 'help' => 'Enter the number of [mla_gallery] columns; must be a positive integer.'), 'mla_gallery_margin' => array('tab' => 'mla_gallery', 'name' => 'Default mla_margin', 'type' => 'text', 'std' => '1.5%', 'size' => 10, 'help' => 'Enter the CSS "margin" property value, in length (px, em, pt, etc.), percent (%), "auto" or "inherit".<br>&nbsp;&nbsp;Enter "none" to remove the property entirely.'), 'mla_gallery_itemwidth' => array('tab' => 'mla_gallery', 'name' => 'Default mla_itemwidth', 'type' => 'text', 'std' => 'calculate', 'size' => 10, 'help' => 'Enter the CSS "width" property value, in length (px, em, pt, etc.), percent (%), "auto" or "inherit".<br>&nbsp;&nbsp;Enter "calculate" (the default) to calculate the value taking the "margin" value into account.<br>&nbsp;&nbsp;Enter "exact" to calculate the value without considering the "margin" value.<br>&nbsp;&nbsp;Enter "none" to remove the property entirely.'), 'style_templates' => array('tab' => '', 'type' => 'hidden', 'std' => array()), 'markup_templates' => array('tab' => '', 'type' => 'hidden', 'std' => array()), 'enable_custom_field_mapping' => array('tab' => 'custom_field', 'name' => 'Enable custom field mapping when adding new media', 'type' => 'checkbox', 'std' => '', 'help' => 'Check this option to enable mapping when uploading new media (attachments).<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change this option.<br>&nbsp;&nbsp;Does NOT affect the operation of the "Map" buttons on the bulk edit, single edit and settings screens.'), 'custom_field_mapping' => array('tab' => '', 'help' => '&nbsp;<br>Update the custom field mapping values above, then click Save Changes to make the updates permanent.<br>You can also make temporary updates and click a Map All Attachments button to apply the rule(s) to all attachments without saving any rule changes.', 'std' => array(), 'type' => 'custom', 'render' => 'mla_custom_field_option_handler', 'update' => 'mla_custom_field_option_handler', 'delete' => 'mla_custom_field_option_handler', 'reset' => 'mla_custom_field_option_handler'), 'enable_iptc_exif_mapping' => array('tab' => 'iptc_exif', 'name' => 'Enable IPTC/EXIF Mapping when adding new media', 'type' => 'checkbox', 'std' => '', 'help' => 'Check this option to enable mapping when uploading new media (attachments).<br>&nbsp;&nbsp;Does NOT affect the operation of the "Map" buttons on the bulk edit, single edit and settings screens.'), 'iptc_exif_standard_mapping' => array('tab' => '', 'help' => 'Update the standard field mapping values above, then click <strong>Save Changes</strong> to make the updates permanent.<br>You can also make temporary updates and click <strong>Map All Attachments, Standard Fields Now</strong> to apply the updates to all attachments without saving the rule changes.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_taxonomy_mapping' => array('tab' => '', 'help' => 'Update the taxonomy term mapping values above, then click <strong>Save Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_custom_mapping' => array('tab' => '', 'help' => '<strong>Update</strong> individual custom field mapping values above, or make several updates and click <strong>Save Changes</strong> below to apply them all at once.<br>You can also <strong>add a new rule</strong> for an existing field or <strong>add a new field</strong> and rule.<br>You can make temporary updates and click <strong>Map All Attachments, Custom Fields Now</strong> to apply the updates to all attachments without saving the rule changes.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_mapping' => array('tab' => '', 'help' => 'IPTC/EXIF Mapping help', 'std' => array('standard' => array('post_title' => array('name' => 'Title', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_name' => array('name' => 'Name/Slug', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'image_alt' => array('name' => 'Alternate Text', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_excerpt' => array('name' => 'Caption', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_content' => array('name' => 'Description', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true)), 'taxonomy' => array(), 'custom' => array()), 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), self::MLA_ENABLE_POST_MIME_TYPES => array('tab' => 'view', 'name' => 'Enable View and Post MIME Type Support', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable Post MIME Type Support, then click <strong>Save Changes</strong> to record the new setting.'), self::MLA_POST_MIME_TYPES => array('tab' => '', 'type' => 'custom', 'render' => 'mla_post_mime_types_option_handler', 'update' => 'mla_post_mime_types_option_handler', 'delete' => 'mla_post_mime_types_option_handler', 'reset' => 'mla_post_mime_types_option_handler', 'help' => 'Post MIME Types help.', 'std' => array('all' => array('singular' => 'All', 'plural' => 'All', 'specification' => '', 'post_mime_type' => false, 'table_view' => true, 'menu_order' => 0, 'description' => 'Built-in view'), 'image' => array('singular' => 'Image', 'plural' => 'Images', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All image subtypes'), 'audio' => array('singular' => 'Audio', 'plural' => 'Audio', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All audio subtypes'), 'video' => array('singular' => 'Video', 'plural' => 'Video', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All video subtypes'), 'text' => array('singular' => 'Text', 'plural' => 'Text', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All text subtypes'), 'application' => array('singular' => 'Application', 'plural' => 'Applications', 'specification' => '', 'post_mime_type' => true, 'table_view' => true, 'menu_order' => 0, 'description' => 'All application subtypes'), 'unattached' => array('singular' => 'Unattached', 'plural' => 'Unattached', 'specification' => '', 'post_mime_type' => false, 'table_view' => true, 'menu_order' => 0, 'description' => 'Built-in view'), 'trash' => array('singular' => 'Trash', 'plural' => 'Trash', 'specification' => '', 'post_mime_type' => false, 'table_view' => true, 'menu_order' => 0, 'description' => 'Built-in view'))), self::MLA_ENABLE_UPLOAD_MIMES => array('tab' => 'upload', 'name' => 'Enable Upload MIME Type Support', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable Upload MIME Type Support, then click <strong>Save Changes</strong> to record the new setting.'), self::MLA_UPLOAD_MIMES => array('tab' => '', 'type' => 'custom', 'render' => 'mla_upload_mimes_option_handler', 'update' => 'mla_upload_mimes_option_handler', 'delete' => 'mla_upload_mimes_option_handler', 'reset' => 'mla_upload_mimes_option_handler', 'help' => 'Upload MIME Types help.', 'std' => false), self::MLA_ENABLE_MLA_ICONS => array('tab' => 'upload', 'name' => 'Enable MLA File Type Icons Support', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable MLA File Type Icons Support, then click <strong>Save Changes</strong> to record the new setting.'))]]></default>
4873
  <docblock line="148">
4874
  <description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them.]]></description>
4875
  <long-description><![CDATA[<p>Each option is defined by an array with the following elements:</p>
4896
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
4897
  </docblock>
4898
  </property>
4899
+ <property final="false" static="true" visibility="private" line="684" namespace="global" package="Media Library Assistant">
4900
  <name>$mla_option_templates</name>
4901
  <default><![CDATA[null]]></default>
4902
+ <docblock line="677">
4903
  <description><![CDATA[Style and Markup templates]]></description>
4904
  <long-description><![CDATA[]]></long-description>
4905
+ <tag line="677" name="since" description="0.80"/>
4906
+ <tag line="677" name="var" description="" type="array">
4907
  <type by_reference="false">array</type>
4908
  </tag>
4909
  </docblock>
4910
  </property>
4911
+ <property final="false" static="true" visibility="private" line="1818" namespace="global" package="Media Library Assistant">
4912
  <name>$custom_field_data_sources</name>
4913
+ <default><![CDATA[array('absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', 'mime_type', 'dimensions', 'pixels', 'width', 'height', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent', 'parent_date', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'featured_in', 'featured_in_title', 'inserted_in', 'inserted_in_title', 'gallery_in', 'gallery_in_title', 'mla_gallery_in', 'mla_gallery_in_title', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
4914
+ <docblock line="1811">
4915
  <description><![CDATA[Array of Data Source names for custom field mapping]]></description>
4916
  <long-description><![CDATA[]]></long-description>
4917
+ <tag line="1811" name="since" description="1.10"/>
4918
+ <tag line="1811" name="var" description="" type="array">
4919
  <type by_reference="false">array</type>
4920
  </tag>
4921
  </docblock>
4922
  </property>
4923
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="658" package="Media Library Assistant">
4924
  <name>initialize</name>
4925
  <full_name>initialize</full_name>
4926
+ <docblock line="651">
4927
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
4928
  <long-description><![CDATA[]]></long-description>
4929
+ <tag line="651" name="since" description="1.00"/>
4930
+ <tag line="651" name="return" description="" type="void">
4931
  <type by_reference="false">void</type>
4932
  </tag>
4933
  </docblock>
4934
  </method>
4935
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="693" package="Media Library Assistant">
4936
  <name>_load_option_templates</name>
4937
  <full_name>_load_option_templates</full_name>
4938
+ <docblock line="686">
4939
  <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
4940
  <long-description><![CDATA[]]></long-description>
4941
+ <tag line="686" name="since" description="0.80"/>
4942
+ <tag line="686" name="return" description="" type="void">
4943
  <type by_reference="false">void</type>
4944
  </tag>
4945
  </docblock>
4946
  </method>
4947
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="741" package="Media Library Assistant">
4948
  <name>mla_fetch_gallery_template</name>
4949
  <full_name>mla_fetch_gallery_template</full_name>
4950
+ <docblock line="731">
4951
  <description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
4952
  <long-description><![CDATA[]]></long-description>
4953
+ <tag line="731" name="since" description="0.80"/>
4954
+ <tag line="731" name="param" description="Template name" type="string" variable="$key">
4955
  <type by_reference="false">string</type>
4956
  </tag>
4957
+ <tag line="731" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
4958
  <type by_reference="false">string</type>
4959
  </tag>
4960
+ <tag line="731" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
4961
  <type by_reference="false">string</type>
4962
  <type by_reference="false">boolean</type>
4963
  <type by_reference="false">null</type>
4964
  </tag>
4965
  </docblock>
4966
+ <argument line="741">
4967
  <name>$key</name>
4968
  <default><![CDATA[]]></default>
4969
  <type/>
4970
  </argument>
4971
+ <argument line="741">
4972
  <name>$type</name>
4973
  <default><![CDATA['style']]></default>
4974
  <type/>
4975
  </argument>
4976
  </method>
4977
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="764" package="Media Library Assistant">
4978
  <name>mla_get_style_templates</name>
4979
  <full_name>mla_get_style_templates</full_name>
4980
+ <docblock line="757">
4981
  <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
4982
  <long-description><![CDATA[]]></long-description>
4983
+ <tag line="757" name="since" description="0.80"/>
4984
+ <tag line="757" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
4985
  <type by_reference="false">array</type>
4986
  <type by_reference="false">null</type>
4987
  </tag>
4988
  </docblock>
4989
  </method>
4990
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="790" package="Media Library Assistant">
4991
  <name>mla_put_style_templates</name>
4992
  <full_name>mla_put_style_templates</full_name>
4993
+ <docblock line="782">
4994
  <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
4995
  <long-description><![CDATA[]]></long-description>
4996
+ <tag line="782" name="since" description="0.80"/>
4997
+ <tag line="782" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
4998
  <type by_reference="false">array</type>
4999
  </tag>
5000
+ <tag line="782" name="return" description="true if success, false if failure" type="boolean">
5001
  <type by_reference="false">boolean</type>
5002
  </tag>
5003
  </docblock>
5004
+ <argument line="790">
5005
  <name>$templates</name>
5006
  <default><![CDATA[]]></default>
5007
  <type/>
5008
  </argument>
5009
  </method>
5010
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="806" package="Media Library Assistant">
5011
  <name>mla_get_markup_templates</name>
5012
  <full_name>mla_get_markup_templates</full_name>
5013
+ <docblock line="799">
5014
  <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
5015
  <long-description><![CDATA[]]></long-description>
5016
+ <tag line="799" name="since" description="0.80"/>
5017
+ <tag line="799" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
5018
  <type by_reference="false">array</type>
5019
  <type by_reference="false">null</type>
5020
  </tag>
5021
  </docblock>
5022
  </method>
5023
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="861" package="Media Library Assistant">
5024
  <name>mla_put_markup_templates</name>
5025
  <full_name>mla_put_markup_templates</full_name>
5026
+ <docblock line="853">
5027
  <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
5028
  <long-description><![CDATA[]]></long-description>
5029
+ <tag line="853" name="since" description="0.80"/>
5030
+ <tag line="853" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
5031
  <type by_reference="false">array</type>
5032
  </tag>
5033
+ <tag line="853" name="return" description="true if success, false if failure" type="boolean">
5034
  <type by_reference="false">boolean</type>
5035
  </tag>
5036
  </docblock>
5037
+ <argument line="861">
5038
  <name>$templates</name>
5039
  <default><![CDATA[]]></default>
5040
  <type/>
5041
  </argument>
5042
  </method>
5043
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="881" package="Media Library Assistant">
5044
  <name>mla_get_option</name>
5045
  <full_name>mla_get_option</full_name>
5046
+ <docblock line="870">
5047
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
5048
  <long-description><![CDATA[]]></long-description>
5049
+ <tag line="870" name="since" description="0.1"/>
5050
+ <tag line="870" name="param" description="Name of the desired option" type="string" variable="$option">
5051
  <type by_reference="false">string</type>
5052
  </tag>
5053
+ <tag line="870" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
5054
  <type by_reference="false">boolean</type>
5055
  </tag>
5056
+ <tag line="870" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
5057
  <type by_reference="false">boolean</type>
5058
  </tag>
5059
+ <tag line="870" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
5060
  <type by_reference="false">mixed</type>
5061
  </tag>
5062
  </docblock>
5063
+ <argument line="881">
5064
  <name>$option</name>
5065
  <default><![CDATA[]]></default>
5066
  <type/>
5067
  </argument>
5068
+ <argument line="881">
5069
  <name>$get_default</name>
5070
  <default><![CDATA[false]]></default>
5071
  <type/>
5072
  </argument>
5073
+ <argument line="881">
5074
  <name>$get_stored</name>
5075
  <default><![CDATA[false]]></default>
5076
  <type/>
5077
  </argument>
5078
  </method>
5079
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="908" package="Media Library Assistant">
5080
  <name>mla_update_option</name>
5081
  <full_name>mla_update_option</full_name>
5082
+ <docblock line="898">
5083
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
5084
  <long-description><![CDATA[]]></long-description>
5085
+ <tag line="898" name="since" description="0.1"/>
5086
+ <tag line="898" name="param" description="Name of the desired option" type="string" variable="$option">
5087
  <type by_reference="false">string</type>
5088
  </tag>
5089
+ <tag line="898" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
5090
  <type by_reference="false">mixed</type>
5091
  </tag>
5092
+ <tag line="898" name="return" description="True if the value was changed or false if the update failed" type="boolean">
5093
  <type by_reference="false">boolean</type>
5094
  </tag>
5095
  </docblock>
5096
+ <argument line="908">
5097
  <name>$option</name>
5098
  <default><![CDATA[]]></default>
5099
  <type/>
5100
  </argument>
5101
+ <argument line="908">
5102
  <name>$newvalue</name>
5103
  <default><![CDATA[]]></default>
5104
  <type/>
5105
  </argument>
5106
  </method>
5107
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="924" package="Media Library Assistant">
5108
  <name>mla_delete_option</name>
5109
  <full_name>mla_delete_option</full_name>
5110
+ <docblock line="915">
5111
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
5112
  <long-description><![CDATA[]]></long-description>
5113
+ <tag line="915" name="since" description="0.1"/>
5114
+ <tag line="915" name="param" description="Name of the desired option" type="string" variable="$option">
5115
  <type by_reference="false">string</type>
5116
  </tag>
5117
+ <tag line="915" name="return" description="True if the option was deleted, otherwise false" type="boolean">
5118
  <type by_reference="false">boolean</type>
5119
  </tag>
5120
  </docblock>
5121
+ <argument line="924">
5122
  <name>$option</name>
5123
  <default><![CDATA[]]></default>
5124
  <type/>
5125
  </argument>
5126
  </method>
5127
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="945" package="Media Library Assistant">
5128
  <name>mla_taxonomy_support</name>
5129
  <full_name>mla_taxonomy_support</full_name>
5130
+ <docblock line="932">
5131
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
5132
  settings are being updated or reset.]]></description>
5133
  <long-description><![CDATA[]]></long-description>
5134
+ <tag line="932" name="since" description="0.30"/>
5135
+ <tag line="932" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
5136
  <type by_reference="false">string</type>
5137
  </tag>
5138
+ <tag line="932" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
5139
  <type by_reference="false">string</type>
5140
  </tag>
5141
+ <tag line="932" name="return" description="true if the taxonomy is supported in this way else false string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by" type="boolean|string">
5142
  <type by_reference="false">boolean</type>
5143
  <type by_reference="false">string</type>
5144
  </tag>
5145
  </docblock>
5146
+ <argument line="945">
5147
  <name>$tax_name</name>
5148
  <default><![CDATA[]]></default>
5149
  <type/>
5150
  </argument>
5151
+ <argument line="945">
5152
  <name>$support_type</name>
5153
  <default><![CDATA['support']]></default>
5154
  <type/>
5155
  </argument>
5156
  </method>
5157
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1021" package="Media Library Assistant">
5158
  <name>mla_taxonomy_option_handler</name>
5159
  <full_name>mla_taxonomy_option_handler</full_name>
5160
+ <docblock line="1008">
5161
  <description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
5162
  <long-description><![CDATA[]]></long-description>
5163
+ <tag line="1008" name="since" description="0.30"/>
5164
+ <tag line="1008" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5165
+ <tag line="1008" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
5166
  <type by_reference="false">string</type>
5167
  </tag>
5168
+ <tag line="1008" name="param" description="option name, e.g., 'taxonomy_support'" type="string" variable="$key">
5169
  <type by_reference="false">string</type>
5170
  </tag>
5171
+ <tag line="1008" name="param" description="option parameters" type="array" variable="$value">
5172
  <type by_reference="false">array</type>
5173
  </tag>
5174
+ <tag line="1008" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
5175
  <type by_reference="false">array</type>
5176
  </tag>
5177
+ <tag line="1008" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
5178
  <type by_reference="false">string</type>
5179
  </tag>
5180
  </docblock>
5181
+ <argument line="1021">
5182
  <name>$action</name>
5183
  <default><![CDATA[]]></default>
5184
  <type/>
5185
  </argument>
5186
+ <argument line="1021">
5187
  <name>$key</name>
5188
  <default><![CDATA[]]></default>
5189
  <type/>
5190
  </argument>
5191
+ <argument line="1021">
5192
  <name>$value</name>
5193
  <default><![CDATA[]]></default>
5194
  <type/>
5195
  </argument>
5196
+ <argument line="1021">
5197
  <name>$args</name>
5198
  <default><![CDATA[null]]></default>
5199
  <type/>
5200
  </argument>
5201
  </method>
5202
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1129" package="Media Library Assistant">
5203
  <name>mla_add_attachment_action</name>
5204
  <full_name>mla_add_attachment_action</full_name>
5205
+ <docblock line="1120">
5206
  <description><![CDATA[Perform ITC/EXIF mapping on just-inserted attachment]]></description>
5207
  <long-description><![CDATA[]]></long-description>
5208
+ <tag line="1120" name="since" description="1.00"/>
5209
+ <tag line="1120" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
5210
  <type by_reference="false">integer</type>
5211
  </tag>
5212
+ <tag line="1120" name="return" description="" type="void">
5213
  <type by_reference="false">void</type>
5214
  </tag>
5215
  </docblock>
5216
+ <argument line="1129">
5217
  <name>$post_id</name>
5218
  <default><![CDATA[]]></default>
5219
  <type/>
5220
  </argument>
5221
  </method>
5222
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1149" package="Media Library Assistant">
5223
  <name>mla_update_attachment_metadata_filter</name>
5224
  <full_name>mla_update_attachment_metadata_filter</full_name>
5225
+ <docblock line="1139">
5226
  <description><![CDATA[Perform Custom Field mapping on just-inserted or updated attachment]]></description>
5227
  <long-description><![CDATA[]]></long-description>
5228
+ <tag line="1139" name="since" description="1.10"/>
5229
+ <tag line="1139" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
5230
  <type by_reference="false">array</type>
5231
  </tag>
5232
+ <tag line="1139" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
5233
  <type by_reference="false">integer</type>
5234
  </tag>
5235
+ <tag line="1139" name="return" description="" type="void">
5236
  <type by_reference="false">void</type>
5237
  </tag>
5238
  </docblock>
5239
+ <argument line="1149">
5240
  <name>$data</name>
5241
  <default><![CDATA[]]></default>
5242
  <type/>
5243
  </argument>
5244
+ <argument line="1149">
5245
  <name>$post_id</name>
5246
  <default><![CDATA[]]></default>
5247
  <type/>
5248
  </argument>
5249
  </method>
5250
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1169" package="Media Library Assistant">
5251
  <name>mla_custom_field_option_value</name>
5252
  <full_name>mla_custom_field_option_value</full_name>
5253
+ <docblock line="1160">
5254
  <description><![CDATA[Fetch custom field option value given a slug]]></description>
5255
  <long-description><![CDATA[]]></long-description>
5256
+ <tag line="1160" name="since" description="1.10"/>
5257
+ <tag line="1160" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
5258
  <type by_reference="false">string</type>
5259
  </tag>
5260
+ <tag line="1160" name="return" description="option value, e.g., array( 'name' =&gt; 'File Size', ... )" type="array">
5261
  <type by_reference="false">array</type>
5262
  </tag>
5263
  </docblock>
5264
+ <argument line="1169">
5265
  <name>$slug</name>
5266
  <default><![CDATA[]]></default>
5267
  <type/>
5268
  </argument>
5269
  </method>
5270
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1189" package="Media Library Assistant">
5271
  <name>mla_custom_field_support</name>
5272
  <full_name>mla_custom_field_support</full_name>
5273
+ <docblock line="1180">
5274
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
5275
  <long-description><![CDATA[]]></long-description>
5276
+ <tag line="1180" name="since" description="1.10"/>
5277
+ <tag line="1180" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
5278
  <type by_reference="false">string</type>
5279
  </tag>
5280
+ <tag line="1180" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
5281
  <type by_reference="false">array</type>
5282
  </tag>
5283
  </docblock>
5284
+ <argument line="1189">
5285
  <name>$support_type</name>
5286
  <default><![CDATA['default_columns']]></default>
5287
  <type/>
5288
  </argument>
5289
  </method>
5290
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1235" package="Media Library Assistant">
5291
  <name>_evaluate_file_information</name>
5292
  <full_name>_evaluate_file_information</full_name>
5293
+ <docblock line="1223">
5294
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
5295
  <long-description><![CDATA[]]></long-description>
5296
+ <tag line="1223" name="since" description="1.10"/>
5297
+ <tag line="1223" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
5298
  <type by_reference="false">string</type>
5299
  </tag>
5300
+ <tag line="1223" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
5301
  <type by_reference="false">array</type>
5302
  </tag>
5303
+ <tag line="1223" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
5304
  <type by_reference="false">array</type>
5305
  </tag>
5306
+ <tag line="1223" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
5307
  <type by_reference="false">integer</type>
5308
  </tag>
5309
+ <tag line="1223" name="return" description="absolute_path_raw, absolute_path, absolute_file_name_raw, absolute_file_name, absolute_file, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes" type="array">
5310
  <type by_reference="false">array</type>
5311
  </tag>
5312
  </docblock>
5313
+ <argument line="1235">
5314
  <name>$upload_dir</name>
5315
  <default><![CDATA[]]></default>
5316
  <type/>
5317
  </argument>
5318
+ <argument line="1235">
5319
  <name>$wp_attached_files</name>
5320
  <default><![CDATA[]]></default>
5321
  <type/>
5322
  </argument>
5323
+ <argument line="1235">
5324
  <name>$wp_attachment_metadata</name>
5325
  <default><![CDATA[]]></default>
5326
  <type/>
5327
  </argument>
5328
+ <argument line="1235">
5329
  <name>$post_id</name>
5330
  <default><![CDATA[]]></default>
5331
  <type/>
5332
  </argument>
5333
  </method>
5334
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1304" package="Media Library Assistant">
5335
  <name>_evaluate_post_information</name>
5336
  <full_name>_evaluate_post_information</full_name>
5337
+ <docblock line="1293">
5338
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
5339
  <long-description><![CDATA[]]></long-description>
5340
+ <tag line="1293" name="since" description="1.40"/>
5341
+ <tag line="1293" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
5342
  <type by_reference="false">integer</type>
5343
  </tag>
5344
+ <tag line="1293" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
5345
  <type by_reference="false">string</type>
5346
  </tag>
5347
+ <tag line="1293" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
5348
  <type by_reference="false">string</type>
5349
  </tag>
5350
+ <tag line="1293" name="return" description="'post_date' =&gt; (string) upload date, 'post_parent' =&gt; (integer) ID of parent or zero )" type="mixed">
5351
  <type by_reference="false">mixed</type>
5352
  </tag>
5353
  </docblock>
5354
+ <argument line="1304">
5355
  <name>$post_id</name>
5356
  <default><![CDATA[]]></default>
5357
  <type/>
5358
  </argument>
5359
+ <argument line="1304">
5360
  <name>$category</name>
5361
  <default><![CDATA[]]></default>
5362
  <type/>
5363
  </argument>
5364
+ <argument line="1304">
5365
  <name>$data_source</name>
5366
  <default><![CDATA[]]></default>
5367
  <type/>
5368
  </argument>
5369
  </method>
5370
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1340" package="Media Library Assistant">
5371
  <name>_evaluate_array_result</name>
5372
  <full_name>_evaluate_array_result</full_name>
5373
+ <docblock line="1329">
5374
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
5375
  <long-description><![CDATA[]]></long-description>
5376
+ <tag line="1329" name="since" description="1.40"/>
5377
+ <tag line="1329" name="param" description="field value(s)" type="array" variable="$value">
5378
  <type by_reference="false">array</type>
5379
  </tag>
5380
+ <tag line="1329" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
5381
  <type by_reference="false">string</type>
5382
  </tag>
5383
+ <tag line="1329" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
5384
  <type by_reference="false">boolean</type>
5385
  </tag>
5386
+ <tag line="1329" name="return" description="array for option = array|multi else string" type="mixed">
5387
  <type by_reference="false">mixed</type>
5388
  </tag>
5389
  </docblock>
5390
+ <argument line="1340">
5391
  <name>$value</name>
5392
  <default><![CDATA[]]></default>
5393
  <type/>
5394
  </argument>
5395
+ <argument line="1340">
5396
  <name>$option</name>
5397
  <default><![CDATA[]]></default>
5398
  <type/>
5399
  </argument>
5400
+ <argument line="1340">
5401
  <name>$keep_existing</name>
5402
  <default><![CDATA[]]></default>
5403
  <type/>
5404
  </argument>
5405
  </method>
5406
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1376" package="Media Library Assistant">
5407
  <name>_evaluate_data_source</name>
5408
  <full_name>_evaluate_data_source</full_name>
5409
+ <docblock line="1364">
5410
  <description><![CDATA[Evaluate custom field mapping data source]]></description>
5411
  <long-description><![CDATA[]]></long-description>
5412
+ <tag line="1364" name="since" description="1.10"/>
5413
+ <tag line="1364" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
5414
  <type by_reference="false">integer</type>
5415
  </tag>
5416
+ <tag line="1364" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
5417
  <type by_reference="false">string</type>
5418
  </tag>
5419
+ <tag line="1364" name="param" description="data source specification ( name, data_source, keep_existing, format, mla_column, quick_edit, bulk_edit, meta_name, no_null, option )" type="array" variable="$data_value">
5420
  <type by_reference="false">array</type>
5421
  </tag>
5422
+ <tag line="1364" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
5423
  <type by_reference="false">array</type>
5424
  </tag>
5425
+ <tag line="1364" name="return" description="data source value" type="string">
5426
  <type by_reference="false">string</type>
5427
  </tag>
5428
  </docblock>
5429
+ <argument line="1376">
5430
  <name>$post_id</name>
5431
  <default><![CDATA[]]></default>
5432
  <type/>
5433
  </argument>
5434
+ <argument line="1376">
5435
  <name>$category</name>
5436
  <default><![CDATA[]]></default>
5437
  <type/>
5438
  </argument>
5439
+ <argument line="1376">
5440
  <name>$data_value</name>
5441
  <default><![CDATA[]]></default>
5442
  <type/>
5443
  </argument>
5444
+ <argument line="1376">
5445
  <name>$attachment_metadata</name>
5446
  <default><![CDATA[NULL]]></default>
5447
  <type/>
5448
  </argument>
5449
  </method>
5450
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1716" package="Media Library Assistant">
5451
  <name>mla_evaluate_custom_field_mapping</name>
5452
  <full_name>mla_evaluate_custom_field_mapping</full_name>
5453
+ <docblock line="1704">
5454
  <description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
5455
  <long-description><![CDATA[]]></long-description>
5456
+ <tag line="1704" name="since" description="1.10"/>
5457
+ <tag line="1704" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
5458
  <type by_reference="false">integer</type>
5459
  </tag>
5460
+ <tag line="1704" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
5461
  <type by_reference="false">string</type>
5462
  </tag>
5463
+ <tag line="1704" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
5464
  <type by_reference="false">array</type>
5465
  </tag>
5466
+ <tag line="1704" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
5467
  <type by_reference="false">array</type>
5468
  </tag>
5469
+ <tag line="1704" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
5470
  <type by_reference="false">array</type>
5471
  </tag>
5472
  </docblock>
5473
+ <argument line="1716">
5474
  <name>$post_id</name>
5475
  <default><![CDATA[]]></default>
5476
  <type/>
5477
  </argument>
5478
+ <argument line="1716">
5479
  <name>$category</name>
5480
  <default><![CDATA[]]></default>
5481
  <type/>
5482
  </argument>
5483
+ <argument line="1716">
5484
  <name>$settings</name>
5485
  <default><![CDATA[NULL]]></default>
5486
  <type/>
5487
  </argument>
5488
+ <argument line="1716">
5489
  <name>$attachment_metadata</name>
5490
  <default><![CDATA[NULL]]></default>
5491
  <type/>
5492
  </argument>
5493
  </method>
5494
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1785" package="Media Library Assistant">
5495
  <name>_compose_custom_field_option_list</name>
5496
  <full_name>_compose_custom_field_option_list</full_name>
5497
+ <docblock line="1774">
5498
  <description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
5499
  <long-description><![CDATA[]]></long-description>
5500
+ <tag line="1774" name="since" description="1.10"/>
5501
+ <tag line="1774" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5502
+ <tag line="1774" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
5503
  <type by_reference="false">string</type>
5504
  </tag>
5505
+ <tag line="1774" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
5506
  <type by_reference="false">array</type>
5507
  </tag>
5508
+ <tag line="1774" name="return" description="HTML markup with select field options" type="string">
5509
  <type by_reference="false">string</type>
5510
  </tag>
5511
  </docblock>
5512
+ <argument line="1785">
5513
  <name>$selection</name>
5514
  <default><![CDATA['none']]></default>
5515
  <type/>
5516
  </argument>
5517
+ <argument line="1785">
5518
  <name>$blacklist</name>
5519
  <default><![CDATA[array()]]></default>
5520
  <type/>
5521
  </argument>
5522
  </method>
5523
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1879" package="Media Library Assistant">
5524
  <name>_compose_data_source_option_list</name>
5525
  <full_name>_compose_data_source_option_list</full_name>
5526
+ <docblock line="1869">
5527
  <description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
5528
  <long-description><![CDATA[]]></long-description>
5529
+ <tag line="1869" name="since" description="1.10"/>
5530
+ <tag line="1869" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5531
+ <tag line="1869" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
5532
  <type by_reference="false">string</type>
5533
  </tag>
5534
+ <tag line="1869" name="return" description="HTML markup with select field options" type="string">
5535
  <type by_reference="false">string</type>
5536
  </tag>
5537
  </docblock>
5538
+ <argument line="1879">
5539
  <name>$selection</name>
5540
  <default><![CDATA['none']]></default>
5541
  <type/>
5542
  </argument>
5543
  </method>
5544
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1937" package="Media Library Assistant">
5545
  <name>_update_custom_field_mapping</name>
5546
  <full_name>_update_custom_field_mapping</full_name>
5547
+ <docblock line="1927">
5548
  <description><![CDATA[Update custom field mappings]]></description>
5549
  <long-description><![CDATA[]]></long-description>
5550
+ <tag line="1927" name="since" description="1.10"/>
5551
+ <tag line="1927" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
5552
  <type by_reference="false">array</type>
5553
  </tag>
5554
+ <tag line="1927" name="param" description="new values" type="array" variable="$new_values">
5555
  <type by_reference="false">array</type>
5556
  </tag>
5557
+ <tag line="1927" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
5558
  <type by_reference="false">array</type>
5559
  </tag>
5560
  </docblock>
5561
+ <argument line="1937">
5562
  <name>$current_values</name>
5563
  <default><![CDATA[]]></default>
5564
  <type/>
5565
  </argument>
5566
+ <argument line="1937">
5567
  <name>$new_values</name>
5568
  <default><![CDATA[]]></default>
5569
  <type/>
5570
  </argument>
5571
  </method>
5572
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2134" package="Media Library Assistant">
5573
  <name>mla_custom_field_option_handler</name>
5574
  <full_name>mla_custom_field_option_handler</full_name>
5575
+ <docblock line="2121">
5576
  <description><![CDATA[Render and manage custom field mapping options]]></description>
5577
  <long-description><![CDATA[]]></long-description>
5578
+ <tag line="2121" name="since" description="1.10"/>
5579
+ <tag line="2121" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5580
+ <tag line="2121" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
5581
  <type by_reference="false">string</type>
5582
  </tag>
5583
+ <tag line="2121" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
5584
  <type by_reference="false">string</type>
5585
  </tag>
5586
+ <tag line="2121" name="param" description="option parameters" type="array" variable="$value">
5587
  <type by_reference="false">array</type>
5588
  </tag>
5589
+ <tag line="2121" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
5590
  <type by_reference="false">array</type>
5591
  </tag>
5592
+ <tag line="2121" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
5593
  <type by_reference="false">string</type>
5594
  </tag>
5595
  </docblock>
5596
+ <argument line="2134">
5597
  <name>$action</name>
5598
  <default><![CDATA[]]></default>
5599
  <type/>
5600
  </argument>
5601
+ <argument line="2134">
5602
  <name>$key</name>
5603
  <default><![CDATA[]]></default>
5604
  <type/>
5605
  </argument>
5606
+ <argument line="2134">
5607
  <name>$value</name>
5608
  <default><![CDATA[]]></default>
5609
  <type/>
5610
  </argument>
5611
+ <argument line="2134">
5612
  <name>$args</name>
5613
  <default><![CDATA[null]]></default>
5614
  <type/>
5615
  </argument>
5616
  </method>
5617
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2326" package="Media Library Assistant">
5618
  <name>mla_evaluate_iptc_exif_mapping</name>
5619
  <full_name>mla_evaluate_iptc_exif_mapping</full_name>
5620
+ <docblock line="2315">
5621
  <description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
5622
  <long-description><![CDATA[]]></long-description>
5623
+ <tag line="2315" name="since" description="1.00"/>
5624
+ <tag line="2315" name="param" description="post object with current values" type="object" variable="$post">
5625
  <type by_reference="false">object</type>
5626
  </tag>
5627
+ <tag line="2315" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
5628
  <type by_reference="false">string</type>
5629
  </tag>
5630
+ <tag line="2315" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
5631
  <type by_reference="false">array</type>
5632
  </tag>
5633
+ <tag line="2315" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
5634
  <type by_reference="false">array</type>
5635
  </tag>
5636
  </docblock>
5637
+ <argument line="2326">
5638
  <name>$post</name>
5639
  <default><![CDATA[]]></default>
5640
  <type/>
5641
  </argument>
5642
+ <argument line="2326">
5643
  <name>$category</name>
5644
  <default><![CDATA[]]></default>
5645
  <type/>
5646
  </argument>
5647
+ <argument line="2326">
5648
  <name>$settings</name>
5649
  <default><![CDATA[NULL]]></default>
5650
  <type/>
5651
  </argument>
5652
  </method>
5653
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2499" package="Media Library Assistant">
5654
  <name>_compose_iptc_option_list</name>
5655
  <full_name>_compose_iptc_option_list</full_name>
5656
+ <docblock line="2489">
5657
  <description><![CDATA[Compose an IPTC Options list with current selection]]></description>
5658
  <long-description><![CDATA[]]></long-description>
5659
+ <tag line="2489" name="since" description="1.00"/>
5660
+ <tag line="2489" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5661
+ <tag line="2489" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
5662
  <type by_reference="false">string</type>
5663
  </tag>
5664
+ <tag line="2489" name="return" description="HTML markup with select field options" type="string">
5665
  <type by_reference="false">string</type>
5666
  </tag>
5667
  </docblock>
5668
+ <argument line="2499">
5669
  <name>$selection</name>
5670
  <default><![CDATA['none']]></default>
5671
  <type/>
5672
  </argument>
5673
  </method>
5674
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2532" package="Media Library Assistant">
5675
  <name>_compose_parent_option_list</name>
5676
  <full_name>_compose_parent_option_list</full_name>
5677
+ <docblock line="2521">
5678
  <description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
5679
  <long-description><![CDATA[]]></long-description>
5680
+ <tag line="2521" name="since" description="1.00"/>
5681
+ <tag line="2521" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5682
+ <tag line="2521" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
5683
  <type by_reference="false">string</type>
5684
  </tag>
5685
+ <tag line="2521" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
5686
  <type by_reference="false">integer</type>
5687
  </tag>
5688
+ <tag line="2521" name="return" description="HTML markup with select field options" type="string">
5689
  <type by_reference="false">string</type>
5690
  </tag>
5691
  </docblock>
5692
+ <argument line="2532">
5693
  <name>$taxonomy</name>
5694
  <default><![CDATA[]]></default>
5695
  <type/>
5696
  </argument>
5697
+ <argument line="2532">
5698
  <name>$selection</name>
5699
  <default><![CDATA[0]]></default>
5700
  <type/>
5701
  </argument>
5702
  </method>
5703
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2566" package="Media Library Assistant">
5704
  <name>_update_iptc_exif_standard_mapping</name>
5705
  <full_name>_update_iptc_exif_standard_mapping</full_name>
5706
+ <docblock line="2556">
5707
  <description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
5708
  <long-description><![CDATA[]]></long-description>
5709
+ <tag line="2556" name="since" description="1.00"/>
5710
+ <tag line="2556" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
5711
  <type by_reference="false">array</type>
5712
  </tag>
5713
+ <tag line="2556" name="param" description="new values" type="array" variable="$new_values">
5714
  <type by_reference="false">array</type>
5715
  </tag>
5716
+ <tag line="2556" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
5717
  <type by_reference="false">array</type>
5718
  </tag>
5719
  </docblock>
5720
+ <argument line="2566">
5721
  <name>$current_values</name>
5722
  <default><![CDATA[]]></default>
5723
  <type/>
5724
  </argument>
5725
+ <argument line="2566">
5726
  <name>$new_values</name>
5727
  <default><![CDATA[]]></default>
5728
  <type/>
5729
  </argument>
5730
  </method>
5731
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2645" package="Media Library Assistant">
5732
  <name>_update_iptc_exif_taxonomy_mapping</name>
5733
  <full_name>_update_iptc_exif_taxonomy_mapping</full_name>
5734
+ <docblock line="2635">
5735
  <description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
5736
  <long-description><![CDATA[]]></long-description>
5737
+ <tag line="2635" name="since" description="1.00"/>
5738
+ <tag line="2635" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
5739
  <type by_reference="false">array</type>
5740
  </tag>
5741
+ <tag line="2635" name="param" description="new values" type="array" variable="$new_values">
5742
  <type by_reference="false">array</type>
5743
  </tag>
5744
+ <tag line="2635" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
5745
  <type by_reference="false">array</type>
5746
  </tag>
5747
  </docblock>
5748
+ <argument line="2645">
5749
  <name>$current_values</name>
5750
  <default><![CDATA[]]></default>
5751
  <type/>
5752
  </argument>
5753
+ <argument line="2645">
5754
  <name>$new_values</name>
5755
  <default><![CDATA[]]></default>
5756
  <type/>
5757
  </argument>
5758
  </method>
5759
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2737" package="Media Library Assistant">
5760
  <name>_update_iptc_exif_custom_mapping</name>
5761
  <full_name>_update_iptc_exif_custom_mapping</full_name>
5762
+ <docblock line="2727">
5763
  <description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
5764
  <long-description><![CDATA[]]></long-description>
5765
+ <tag line="2727" name="since" description="1.00"/>
5766
+ <tag line="2727" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
5767
  <type by_reference="false">array</type>
5768
  </tag>
5769
+ <tag line="2727" name="param" description="new values" type="array" variable="$new_values">
5770
  <type by_reference="false">array</type>
5771
  </tag>
5772
+ <tag line="2727" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
5773
  <type by_reference="false">array</type>
5774
  </tag>
5775
  </docblock>
5776
+ <argument line="2737">
5777
  <name>$current_values</name>
5778
  <default><![CDATA[]]></default>
5779
  <type/>
5780
  </argument>
5781
+ <argument line="2737">
5782
  <name>$new_values</name>
5783
  <default><![CDATA[]]></default>
5784
  <type/>
5785
  </argument>
5786
  </method>
5787
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2861" package="Media Library Assistant">
5788
  <name>_get_custom_field_names</name>
5789
  <full_name>_get_custom_field_names</full_name>
5790
+ <docblock line="2851">
5791
  <description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
5792
+ <long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
5793
+ haven't been mapped to any attachments, yet.</p>]]></long-description>
5794
+ <tag line="2851" name="since" description="1.00"/>
5795
+ <tag line="2851" name="return" description="Custom field names from the postmeta table and MLA rules" type="array">
5796
  <type by_reference="false">array</type>
5797
  </tag>
5798
  </docblock>
5799
  </method>
5800
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2905" package="Media Library Assistant">
5801
  <name>mla_iptc_exif_option_handler</name>
5802
  <full_name>mla_iptc_exif_option_handler</full_name>
5803
+ <docblock line="2892">
5804
  <description><![CDATA[Render and manage iptc/exif support options]]></description>
5805
  <long-description><![CDATA[]]></long-description>
5806
+ <tag line="2892" name="since" description="1.00"/>
5807
+ <tag line="2892" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
5808
+ <tag line="2892" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
5809
  <type by_reference="false">string</type>
5810
  </tag>
5811
+ <tag line="2892" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
5812
  <type by_reference="false">string</type>
5813
  </tag>
5814
+ <tag line="2892" name="param" description="option parameters" type="array" variable="$value">
5815
  <type by_reference="false">array</type>
5816
  </tag>
5817
+ <tag line="2892" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
5818
  <type by_reference="false">array</type>
5819
  </tag>
5820
+ <tag line="2892" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
5821
  <type by_reference="false">string</type>
5822
  </tag>
5823
  </docblock>
5824
+ <argument line="2905">
5825
  <name>$action</name>
5826
  <default><![CDATA[]]></default>
5827
  <type/>
5828
  </argument>
5829
+ <argument line="2905">
5830
  <name>$key</name>
5831
  <default><![CDATA[]]></default>
5832
  <type/>
5833
  </argument>
5834
+ <argument line="2905">
5835
  <name>$value</name>
5836
  <default><![CDATA[]]></default>
5837
  <type/>
5838
  </argument>
5839
+ <argument line="2905">
5840
  <name>$args</name>
5841
  <default><![CDATA[null]]></default>
5842
  <type/>
5844
  </method>
5845
  </class>
5846
  </file>
5847
+ <file path="includes\class-mla-settings.php" hash="861a34643fae3c542447b56286576115" package="Media Library Assistant">
5848
  <docblock line="2">
5849
  <description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
5850
  <long-description><![CDATA[]]></long-description>
6537
  </tag>
6538
  </docblock>
6539
  </method>
6540
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2479" package="Media Library Assistant">
6541
  <name>_save_view_settings</name>
6542
  <full_name>_save_view_settings</full_name>
6543
+ <docblock line="2470">
6544
  <description><![CDATA[Save View settings to the options table]]></description>
6545
  <long-description><![CDATA[]]></long-description>
6546
+ <tag line="2470" name="since" description="1.40"/>
6547
+ <tag line="2470" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6548
+ <tag line="2470" name="return" description="Message(s) reflecting the results of the operation" type="array">
6549
  <type by_reference="false">array</type>
6550
  </tag>
6551
  </docblock>
6552
  </method>
6553
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2510" package="Media Library Assistant">
6554
  <name>_save_upload_settings</name>
6555
  <full_name>_save_upload_settings</full_name>
6556
+ <docblock line="2501">
6557
  <description><![CDATA[Save Upload settings to the options table]]></description>
6558
  <long-description><![CDATA[]]></long-description>
6559
+ <tag line="2501" name="since" description="1.40"/>
6560
+ <tag line="2501" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6561
+ <tag line="2501" name="return" description="Message(s) reflecting the results of the operation" type="array">
6562
  <type by_reference="false">array</type>
6563
  </tag>
6564
  </docblock>
6565
  </method>
6566
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2546" package="Media Library Assistant">
6567
  <name>_process_custom_field_mapping</name>
6568
  <full_name>_process_custom_field_mapping</full_name>
6569
+ <docblock line="2535">
6570
  <description><![CDATA[Process custom field settings against all image attachments
6571
  without saving the settings to the mla_option]]></description>
6572
  <long-description><![CDATA[]]></long-description>
6573
+ <tag line="2535" name="since" description="1.10"/>
6574
+ <tag line="2535" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6575
+ <tag line="2535" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$settings">
6576
  <type by_reference="false">array</type>
6577
  </tag>
6578
+ <tag line="2535" name="return" description="Message(s) reflecting the results of the operation" type="array">
6579
  <type by_reference="false">array</type>
6580
  </tag>
6581
  </docblock>
6582
+ <argument line="2546">
6583
  <name>$settings</name>
6584
  <default><![CDATA[NULL]]></default>
6585
  <type/>
6586
  </argument>
6587
  </method>
6588
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2598" package="Media Library Assistant">
6589
  <name>_delete_custom_field</name>
6590
  <full_name>_delete_custom_field</full_name>
6591
+ <docblock line="2589">
6592
  <description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
6593
  <long-description><![CDATA[]]></long-description>
6594
+ <tag line="2589" name="since" description="1.10"/>
6595
+ <tag line="2589" name="param" description="specific custom_field_mapping rule" type="array" variable="$value">
6596
  <type by_reference="false">array</type>
6597
  </tag>
6598
+ <tag line="2589" name="return" description="Message(s) reflecting the results of the operation" type="array">
6599
  <type by_reference="false">array</type>
6600
  </tag>
6601
  </docblock>
6602
+ <argument line="2598">
6603
  <name>$value</name>
6604
  <default><![CDATA[]]></default>
6605
  <type/>
6606
  </argument>
6607
  </method>
6608
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2622" package="Media Library Assistant">
6609
  <name>_save_custom_field_settings</name>
6610
  <full_name>_save_custom_field_settings</full_name>
6611
+ <docblock line="2612">
6612
  <description><![CDATA[Save custom field settings to the options table]]></description>
6613
  <long-description><![CDATA[]]></long-description>
6614
+ <tag line="2612" name="since" description="1.10"/>
6615
+ <tag line="2612" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6616
+ <tag line="2612" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$new_values">
6617
  <type by_reference="false">array</type>
6618
  </tag>
6619
+ <tag line="2612" name="return" description="Message(s) reflecting the results of the operation" type="array">
6620
  <type by_reference="false">array</type>
6621
  </tag>
6622
  </docblock>
6623
+ <argument line="2622">
6624
  <name>$new_values</name>
6625
  <default><![CDATA[NULL]]></default>
6626
  <type/>
6627
  </argument>
6628
  </method>
6629
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2662" package="Media Library Assistant">
6630
  <name>_process_iptc_exif_standard</name>
6631
  <full_name>_process_iptc_exif_standard</full_name>
6632
+ <docblock line="2652">
6633
  <description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
6634
  without saving the settings to the mla_option]]></description>
6635
  <long-description><![CDATA[]]></long-description>
6636
+ <tag line="2652" name="since" description="1.00"/>
6637
+ <tag line="2652" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6638
+ <tag line="2652" name="return" description="Message(s) reflecting the results of the operation" type="array">
6639
  <type by_reference="false">array</type>
6640
  </tag>
6641
  </docblock>
6642
  </method>
6643
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2712" package="Media Library Assistant">
6644
  <name>_process_iptc_exif_taxonomy</name>
6645
  <full_name>_process_iptc_exif_taxonomy</full_name>
6646
+ <docblock line="2702">
6647
  <description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
6648
  without saving the settings to the mla_option]]></description>
6649
  <long-description><![CDATA[]]></long-description>
6650
+ <tag line="2702" name="since" description="1.00"/>
6651
+ <tag line="2702" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6652
+ <tag line="2702" name="return" description="Message(s) reflecting the results of the operation" type="array">
6653
  <type by_reference="false">array</type>
6654
  </tag>
6655
  </docblock>
6656
  </method>
6657
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2765" package="Media Library Assistant">
6658
  <name>_process_iptc_exif_custom</name>
6659
  <full_name>_process_iptc_exif_custom</full_name>
6660
+ <docblock line="2753">
6661
  <description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
6662
  without saving the settings to the mla_option]]></description>
6663
  <long-description><![CDATA[]]></long-description>
6664
+ <tag line="2753" name="since" description="1.00"/>
6665
+ <tag line="2753" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6666
+ <tag line="2753" name="param" description="| NULL specific iptc_exif_custom_mapping values" type="array" variable="$settings">
6667
  <type by_reference="false">array</type>
6668
  </tag>
6669
+ <tag line="2753" name="return" description="Message(s) reflecting the results of the operation" type="array">
6670
  <type by_reference="false">array</type>
6671
  </tag>
6672
  </docblock>
6673
+ <argument line="2765">
6674
  <name>$settings</name>
6675
  <default><![CDATA[NULL]]></default>
6676
  <type/>
6677
  </argument>
6678
  </method>
6679
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2823" package="Media Library Assistant">
6680
  <name>_save_iptc_exif_custom_settings</name>
6681
  <full_name>_save_iptc_exif_custom_settings</full_name>
6682
+ <docblock line="2814">
6683
  <description><![CDATA[Save IPTC/EXIF custom field settings to the options table]]></description>
6684
  <long-description><![CDATA[]]></long-description>
6685
+ <tag line="2814" name="since" description="1.30"/>
6686
+ <tag line="2814" name="param" description="specific iptc_exif_custom_mapping values" type="array" variable="$new_values">
6687
  <type by_reference="false">array</type>
6688
  </tag>
6689
+ <tag line="2814" name="return" description="Message(s) reflecting the results of the operation" type="array">
6690
  <type by_reference="false">array</type>
6691
  </tag>
6692
  </docblock>
6693
+ <argument line="2823">
6694
  <name>$new_values</name>
6695
  <default><![CDATA[]]></default>
6696
  <type/>
6697
  </argument>
6698
  </method>
6699
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2839" package="Media Library Assistant">
6700
  <name>_save_iptc_exif_settings</name>
6701
  <full_name>_save_iptc_exif_settings</full_name>
6702
+ <docblock line="2830">
6703
  <description><![CDATA[Save IPTC/EXIF settings to the options table]]></description>
6704
  <long-description><![CDATA[]]></long-description>
6705
+ <tag line="2830" name="since" description="1.00"/>
6706
+ <tag line="2830" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6707
+ <tag line="2830" name="return" description="Message(s) reflecting the results of the operation" type="array">
6708
  <type by_reference="false">array</type>
6709
  </tag>
6710
  </docblock>
6711
  </method>
6712
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2876" package="Media Library Assistant">
6713
  <name>_save_general_settings</name>
6714
  <full_name>_save_general_settings</full_name>
6715
+ <docblock line="2867">
6716
  <description><![CDATA[Save General settings to the options table]]></description>
6717
  <long-description><![CDATA[]]></long-description>
6718
+ <tag line="2867" name="since" description="0.1"/>
6719
+ <tag line="2867" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
6720
+ <tag line="2867" name="return" description="Message(s) reflecting the results of the operation" type="array">
6721
  <type by_reference="false">array</type>
6722
  </tag>
6723
  </docblock>
6724
  </method>
6725
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2934" package="Media Library Assistant">
6726
  <name>_reset_general_settings</name>
6727
  <full_name>_reset_general_settings</full_name>
6728
+ <docblock line="2927">
6729
  <description><![CDATA[Delete saved settings, restoring default values]]></description>
6730
  <long-description><![CDATA[]]></long-description>
6731
+ <tag line="2927" name="since" description="0.1"/>
6732
+ <tag line="2927" name="return" description="Message(s) reflecting the results of the operation" type="array">
6733
  <type by_reference="false">array</type>
6734
  </tag>
6735
  </docblock>
6736
  </method>
6737
  </class>
6738
  </file>
6739
+ <file path="includes\class-mla-shortcodes.php" hash="9f491692bee39b61ded8e665b2476a14" package="Media Library Assistant">
6740
  <docblock line="2">
6741
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
6742
  <long-description><![CDATA[]]></long-description>
6777
  </tag>
6778
  </docblock>
6779
  </property>
6780
+ <property final="false" static="true" visibility="private" line="1308" namespace="global" package="Media Library Assistant">
6781
  <name>$query_parameters</name>
6782
  <default><![CDATA[array()]]></default>
6783
+ <docblock line="1294">
6784
  <description><![CDATA[WP_Query filter "parameters"]]></description>
6785
  <long-description><![CDATA[<p>This array defines parameters for the query's where and orderby filters,
6786
  mla_shortcode_query_posts_where_filter and mla_shortcode_query_posts_orderby_filter.
6788
  any further logic required to translate those values is contained in the filter.</p>
6789
 
6790
  <p>Array index values are: orderby, post_parent</p>]]></long-description>
6791
+ <tag line="1294" name="since" description="1.13"/>
6792
+ <tag line="1294" name="var" description="" type="array">
6793
  <type by_reference="false">array</type>
6794
  </tag>
6795
  </docblock>
6796
  </property>
6797
+ <property final="false" static="true" visibility="private" line="1417" namespace="global" package="Media Library Assistant">
6798
  <name>$data_selection_parameters</name>
6799
+ <default><![CDATA[array('order' => 'ASC', 'orderby' => 'menu_order,ID', 'id' => NULL, 'ids' => array(), 'include' => array(), 'exclude' => array(), 'post_parent' => NULL, 'author' => NULL, 'author_name' => '', 'cat' => 0, 'category_name' => '', 'category__and' => array(), 'category__in' => array(), 'category__not_in' => array(), 'tag' => '', 'tag_id' => 0, 'tag__and' => array(), 'tag__in' => array(), 'tag__not_in' => array(), 'tag_slug__and' => array(), 'tag_slug__in' => array(), 'tax_operator' => '', 'tax_include_children' => true, 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'image', 'nopaging' => true, 'numberposts' => 0, 'posts_per_page' => 0, 'posts_per_archive_page' => 0, 'paged' => NULL, 'offset' => NULL, 'mla_paginate_current' => NULL, 'mla_paginate_total' => NULL, 'meta_key' => '', 'meta_value' => '', 'meta_value_num' => NULL, 'meta_compare' => '', 'meta_query' => '', 's' => '')]]></default>
6800
+ <docblock line="1410">
6801
  <description><![CDATA[Data selection parameters for the WP_Query in [mla_gallery]]]></description>
6802
  <long-description><![CDATA[]]></long-description>
6803
+ <tag line="1410" name="since" description="1.30"/>
6804
+ <tag line="1410" name="var" description="" type="array">
6805
  <type by_reference="false">array</type>
6806
  </tag>
6807
  </docblock>
6852
  <type/>
6853
  </argument>
6854
  </method>
6855
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1126" package="Media Library Assistant">
6856
  <name>_process_shortcode_parameter</name>
6857
  <full_name>_process_shortcode_parameter</full_name>
6858
+ <docblock line="1116">
6859
  <description><![CDATA[Handles brace/bracket escaping and parses template for a shortcode parameter]]></description>
6860
  <long-description><![CDATA[]]></long-description>
6861
+ <tag line="1116" name="since" description="1.14"/>
6862
+ <tag line="1116" name="param" description="raw shortcode parameter, e.g., &quot;text {+field+} {brackets} \\{braces\\}&quot;" type="string" variable="$text">
6863
  <type by_reference="false">string</type>
6864
  </tag>
6865
+ <tag line="1116" name="param" description="template substitution values, e.g., ('instance' =&gt; '1', ... )" type="string" variable="$markup_values">
6866
  <type by_reference="false">string</type>
6867
  </tag>
6868
+ <tag line="1116" name="return" description="query specification with HTML escape sequences and line breaks removed" type="string">
6869
  <type by_reference="false">string</type>
6870
  </tag>
6871
  </docblock>
6872
+ <argument line="1126">
6873
  <name>$text</name>
6874
  <default><![CDATA[]]></default>
6875
  <type/>
6876
  </argument>
6877
+ <argument line="1126">
6878
  <name>$markup_values</name>
6879
  <default><![CDATA[]]></default>
6880
  <type/>
6881
  </argument>
6882
  </method>
6883
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1146" package="Media Library Assistant">
6884
+ <name>_process_pagination_output_types</name>
6885
+ <full_name>_process_pagination_output_types</full_name>
6886
+ <docblock line="1132">
6887
+ <description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
6888
+ <long-description><![CDATA[]]></long-description>
6889
+ <tag line="1132" name="since" description="1.42"/>
6890
+ <tag line="1132" name="param" description="value(s) for mla_output_type parameter" type="array" variable="$output_parameters">
6891
+ <type by_reference="false">array</type>
6892
+ </tag>
6893
+ <tag line="1132" name="param" description="template substitution values, e.g., ('instance' =&gt; '1', ... )" type="string" variable="$markup_values">
6894
+ <type by_reference="false">string</type>
6895
+ </tag>
6896
+ <tag line="1132" name="param" description="merged default and passed shortcode parameter values" type="string" variable="$arguments">
6897
+ <type by_reference="false">string</type>
6898
+ </tag>
6899
+ <tag line="1132" name="param" description="raw passed shortcode parameter values" type="string" variable="$attr">
6900
+ <type by_reference="false">string</type>
6901
+ </tag>
6902
+ <tag line="1132" name="param" description="number of attachments in the gallery, without pagination" type="integer" variable="$found_rows">
6903
+ <type by_reference="false">integer</type>
6904
+ </tag>
6905
+ <tag line="1132" name="param" description="output text so far, may include debug values" type="string" variable="$output">
6906
+ <type by_reference="false">string</type>
6907
+ </tag>
6908
+ <tag line="1132" name="return" description="false or string with HTML for pagination output types" type="mixed">
6909
+ <type by_reference="false">mixed</type>
6910
+ </tag>
6911
+ </docblock>
6912
+ <argument line="1146">
6913
+ <name>$output_parameters</name>
6914
+ <default><![CDATA[]]></default>
6915
+ <type/>
6916
+ </argument>
6917
+ <argument line="1146">
6918
+ <name>$markup_values</name>
6919
+ <default><![CDATA[]]></default>
6920
+ <type/>
6921
+ </argument>
6922
+ <argument line="1146">
6923
+ <name>$arguments</name>
6924
+ <default><![CDATA[]]></default>
6925
+ <type/>
6926
+ </argument>
6927
+ <argument line="1146">
6928
+ <name>$attr</name>
6929
+ <default><![CDATA[]]></default>
6930
+ <type/>
6931
+ </argument>
6932
+ <argument line="1146">
6933
+ <name>$found_rows</name>
6934
+ <default><![CDATA[]]></default>
6935
+ <type/>
6936
+ </argument>
6937
+ <argument line="1146">
6938
+ <name>$output</name>
6939
+ <default><![CDATA['']]></default>
6940
+ <type/>
6941
+ </argument>
6942
+ </method>
6943
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1319" package="Media Library Assistant">
6944
  <name>_sanitize_query_specification</name>
6945
  <full_name>_sanitize_query_specification</full_name>
6946
+ <docblock line="1310">
6947
  <description><![CDATA[Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications]]></description>
6948
  <long-description><![CDATA[]]></long-description>
6949
+ <tag line="1310" name="since" description="1.14"/>
6950
+ <tag line="1310" name="param" description="query specification; PHP nested arrays" type="string" variable="$specification">
6951
  <type by_reference="false">string</type>
6952
  </tag>
6953
+ <tag line="1310" name="return" description="query specification with HTML escape sequences and line breaks removed" type="string">
6954
  <type by_reference="false">string</type>
6955
  </tag>
6956
  </docblock>
6957
+ <argument line="1319">
6958
  <name>$specification</name>
6959
  <default><![CDATA[]]></default>
6960
  <type/>
6961
  </argument>
6962
  </method>
6963
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1336" package="Media Library Assistant">
6964
  <name>_validate_sql_orderby</name>
6965
  <full_name>_validate_sql_orderby</full_name>
6966
+ <docblock line="1325">
6967
  <description><![CDATA[Translates query parameters to a valid SQL order by clause.]]></description>
6968
  <long-description><![CDATA[<p>Accepts one or more valid columns, with or without ASC/DESC.
6969
  Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().</p>]]></long-description>
6970
+ <tag line="1325" name="since" description="1.20"/>
6971
+ <tag line="1325" name="param" description="Validated query parameters" type="array" variable="$query_parameters">
6972
  <type by_reference="false">array</type>
6973
  </tag>
6974
+ <tag line="1325" name="return" description="Returns the orderby clause if present, false otherwise." type="string|bool">
6975
  <type by_reference="false">string</type>
6976
  <type by_reference="false">bool</type>
6977
  </tag>
6978
  </docblock>
6979
+ <argument line="1336">
6980
  <name>$query_parameters</name>
6981
  <default><![CDATA[]]></default>
6982
  <type/>
6983
  </argument>
6984
  </method>
6985
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1484" package="Media Library Assistant">
6986
  <name>mla_get_shortcode_attachments</name>
6987
  <full_name>mla_get_shortcode_attachments</full_name>
6988
+ <docblock line="1473">
6989
  <description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
6990
  <long-description><![CDATA[]]></long-description>
6991
+ <tag line="1473" name="since" description=".50"/>
6992
+ <tag line="1473" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
6993
  <type by_reference="false">int</type>
6994
  </tag>
6995
+ <tag line="1473" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
6996
  <type by_reference="false">array</type>
6997
  </tag>
6998
+ <tag line="1473" name="param" description="true to calculate and return ['found_posts'] as an array element" type="boolean" variable="$return_found_rows">
6999
+ <type by_reference="false">boolean</type>
7000
+ </tag>
7001
+ <tag line="1473" name="return" description="List of attachments returned from WP_Query" type="array">
7002
  <type by_reference="false">array</type>
7003
  </tag>
7004
  </docblock>
7005
+ <argument line="1484">
7006
  <name>$post_parent</name>
7007
  <default><![CDATA[]]></default>
7008
  <type/>
7009
  </argument>
7010
+ <argument line="1484">
7011
  <name>$attr</name>
7012
  <default><![CDATA[]]></default>
7013
  <type/>
7014
  </argument>
7015
+ <argument line="1484">
7016
+ <name>$return_found_rows</name>
7017
+ <default><![CDATA[false]]></default>
7018
+ <type/>
7019
+ </argument>
7020
  </method>
7021
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1873" package="Media Library Assistant">
7022
  <name>mla_shortcode_query_posts_where_filter</name>
7023
  <full_name>mla_shortcode_query_posts_where_filter</full_name>
7024
+ <docblock line="1859">
7025
  <description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
7026
  <long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
7027
  phrase to circumvent subsequent Role Scoper modification of the clause.
7028
  Handles post_parent "any" and "none" cases.
7029
  Defined as public because it's a filter.</p>]]></long-description>
7030
+ <tag line="1859" name="since" description="0.70"/>
7031
+ <tag line="1859" name="param" description="query clause before modification" type="string" variable="$where_clause">
7032
  <type by_reference="false">string</type>
7033
  </tag>
7034
+ <tag line="1859" name="return" description="query clause after modification" type="string">
7035
  <type by_reference="false">string</type>
7036
  </tag>
7037
  </docblock>
7038
+ <argument line="1873">
7039
  <name>$where_clause</name>
7040
  <default><![CDATA[]]></default>
7041
  <type/>
7042
  </argument>
7043
  </method>
7044
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1914" package="Media Library Assistant">
7045
  <name>mla_shortcode_query_posts_orderby_filter</name>
7046
  <full_name>mla_shortcode_query_posts_orderby_filter</full_name>
7047
+ <docblock line="1902">
7048
  <description><![CDATA[Filters the ORDERBY clause for shortcode queries]]></description>
7049
  <long-description><![CDATA[<p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
7050
  Defined as public because it's a filter.</p>]]></long-description>
7051
+ <tag line="1902" name="since" description="1.20"/>
7052
+ <tag line="1902" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
7053
  <type by_reference="false">string</type>
7054
  </tag>
7055
+ <tag line="1902" name="return" description="query clause after modification" type="string">
7056
  <type by_reference="false">string</type>
7057
  </tag>
7058
  </docblock>
7059
+ <argument line="1914">
7060
  <name>$orderby_clause</name>
7061
  <default><![CDATA[]]></default>
7062
  <type/>
7063
  </argument>
7064
  </method>
7065
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1939" package="Media Library Assistant">
7066
  <name>mla_shortcode_query_posts_clauses_filter</name>
7067
  <full_name>mla_shortcode_query_posts_clauses_filter</full_name>
7068
+ <docblock line="1927">
7069
  <description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
7070
  <long-description><![CDATA[<p>This is for debug purposes only.
7071
  Defined as public because it's a filter.</p>]]></long-description>
7072
+ <tag line="1927" name="since" description="1.30"/>
7073
+ <tag line="1927" name="param" description="query clauses before modification" type="array" variable="$pieces">
7074
  <type by_reference="false">array</type>
7075
  </tag>
7076
+ <tag line="1927" name="return" description="query clauses after modification (none)" type="array">
7077
  <type by_reference="false">array</type>
7078
  </tag>
7079
  </docblock>
7080
+ <argument line="1939">
7081
  <name>$pieces</name>
7082
  <default><![CDATA[]]></default>
7083
  <type/>
7084
  </argument>
7085
  </method>
7086
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1957" package="Media Library Assistant">
7087
  <name>mla_shortcode_query_posts_clauses_request_filter</name>
7088
  <full_name>mla_shortcode_query_posts_clauses_request_filter</full_name>
7089
+ <docblock line="1945">
7090
  <description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
7091
  <long-description><![CDATA[<p>This is for debug purposes only.
7092
  Defined as public because it's a filter.</p>]]></long-description>
7093
+ <tag line="1945" name="since" description="1.30"/>
7094
+ <tag line="1945" name="param" description="query clauses before modification" type="array" variable="$pieces">
7095
  <type by_reference="false">array</type>
7096
  </tag>
7097
+ <tag line="1945" name="return" description="query clauses after modification (none)" type="array">
7098
  <type by_reference="false">array</type>
7099
  </tag>
7100
  </docblock>
7101
+ <argument line="1957">
7102
  <name>$pieces</name>
7103
  <default><![CDATA[]]></default>
7104
  <type/>
8755
  </docblock>
8756
  </function>
8757
  </file>
8758
+ <file path="index.php" hash="c2d95d64370f8627adfbe36fde33b3b8" package="Media Library Assistant">
8759
  <docblock line="2">
8760
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
8761
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
8762
  will the rest of the plugin be loaded and run.</p>]]></long-description>
8763
  <tag line="2" name="package" description="Media Library Assistant"/>
8764
+ <tag line="2" name="version" description="1.42"/>
8765
  </docblock>
8766
  <include line="109" type="Require Once" package="Media Library Assistant">
8767
  <name>includes/mla-plugin-loader.php</name>
8880
  </file>
8881
  <package name="Media Library Assistant" full_name="Media Library Assistant"/>
8882
  <namespace name="global" full_name="global"/>
8883
+ <marker count="1">todo</marker>
8884
  <marker count="0">fixme</marker>
8885
  <deprecated count="0"/>
8886
  </project>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://fairtradejudaica.org/make-a-difference/donate/
4
  Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums, lightroom, photoshop, MIME, mime-type, icon, upload, file extensions
5
  Requires at least: 3.3
6
  Tested up to: 3.5.1
7
- Stable tag: 1.41
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -119,6 +119,24 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
119
 
120
  == Changelog ==
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  = 1.41 =
123
  * New: For `[mla_gallery]`, the new `mla_output` parameter lets you get "previous_link" and "next_link" values to support moving through an `[mla_gallery]` one item at a time. Look for **Support for Alternative Gallery Output** in the Other Notes section or the Settings/Media Library Assistant Documentation tab for complete information.
124
  * New: For `[mla_gallery]`, field-level substitution parameters now include $_REQUEST arguments. You can pass any values you need from HTML form or hyperlink variables to the Gallery Display Content parameters and to your custom style and markup templates.
@@ -238,101 +256,48 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
238
  * Fix: For WordPress 3.5, Custom Field support for attachments enabled in admin_init action.
239
 
240
  = 0.90 =
241
- * New: Field-level IPTC and EXIF metadata support for `[mla_gallery]` display using custom markup templates.
242
- * New: Field-level custom field and taxonomy term support for `[mla_gallery]` display using custom markup templates.
243
- * New: Contextual help tabs added to WordPress 3.5+ Edit Media Screen, explaining MLA enhancements.
244
- * Updated for WordPress version 3.5!
245
 
246
  = 0.81 =
247
- * New: Improved default Style template, `[mla_gallery]` parameters "mla_itemwidth" and "mla_margin" added to allow control of gallery item spacing.
248
- * Fix: Quick edit support of WordPress standard Categories taxonomy fixed.
249
 
250
  = 0.80 =
251
- * New: MLA Gallery Style and Markup Templates, for control over CSS styles, HTML markup and data content of `[mla_gallery]` shortcode output.
252
- * New: The `[mla_gallery]` "mla_link_text", "mla_rollover_text" and "mla_caption", parameters allow easy customization of gallery display.
253
- * New: The `[mla_gallery]` "link" parameter now accepts size values, e.g., "medium", to generate a link to image sizes other than "full".
254
- * New: The `[mla_gallery]` "mla_debug" parameter provides debugging information for query parameters.
255
- * New: Quick Edit area now includes caption field.
256
- * New: Settings page now divided into three tabbed subpages for easier access to settings and documentation.
257
- * New: For WordPress 3.5, custom field support added to attachments and to the WordPress standard Edit Media Screen.
258
- * New: For WordPress version 3.5, the WordPress standard Edit Media screen now includes Last Modified date, Parent Info, Menu Order, Image Metadata and all "where-used" information.
259
- * New: For WordPress versions before 3.5, the MLA Edit Single Item screen now includes "Gallery in" and "MLA Gallery in" information.
260
- * Fix: Bulk edit now supports "No Change" option for Author.
261
- * Fix: Bulk edit now supports changing Parent ID to "0" (unattached).
262
- * Fix: Where-used reporting corrected for sites without month- and year-based folders.
263
- * Fix: "No Categories" filtering fixed; used to return items with categories in some cases.
264
 
265
  = 0.71 =
266
- * Fix: Removed (!) Warning displays for empty Gallery in and MLA Gallery in column entries.
267
 
268
  = 0.70 =
269
- * New: "Gallery in" and "MLA Gallery in" columns show where the item appears in `[gallery]` and `[mla_gallery]` shortcode output.
270
- * New: Post titles in the where-used columns contain a link to the Edit Post/Page screen.
271
- * New: Title/Name column distinguishes between "BAD PARENT" (no where-used references to the item) and "INVALID PARENT" (does not exist).
272
- * Fix: `[mla_gallery]` queries are modified to avoid a conflict with the Role Scoper plugin.
273
- * Fix: Undefined taxonomies are now bypassed when defining table columns, avoiding (!) Notice displays after changing taxonomy support settings.
274
 
275
  = 0.60 =
276
- * 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".
277
- * New: The ID/Parent and Parent ID columns now contain a link to a parent-specific search of the Media Library.
278
- * New: Menu Order added as sortable column, to Edit Single Item and to Quick Edit area.
279
- * New: The Author column now contains a link to an author-specific search of the Media Library.
280
- * New: The Attached to column now contains a link to the Edit Post/Page screen for the parent.
281
- * New: For WordPress version 3.5, the WordPress standard Edit Media screen replaces the MLA Edit Single Item screen.
282
- * Fix: HTML markup is no longer escaped in `[mla_gallery]` captions; caption processing now matches the WordPress `[gallery]` shortcode.
283
- * Fix: For WordPress version 3.5, duplicate "edit taxonomy" submenu entries will not appear.
284
 
285
  = 0.50 =
286
- * New: `[mla_gallery]` shortcode, a superset of the `[gallery]` shortcode that provides many enhancements. These include taxonomy support and all post_mime_type values (not just images). Media Library items need not be "attached" to the post.
287
- * New: `[mla_gallery]` shortcode documentation added to Settings page
288
- * New: Donate button and link added to Settings page
289
 
290
  = 0.41 =
291
- * Fix: SQL View (supporting ALT Text sorting) now created for automatic plugin upgrades
292
 
293
  = 0.40 =
294
- * New: Bulk Edit area; update author or parent, add, remove or replace taxonomy terms for several attachments at once
295
- * New: ALT Text is now a sortable column, and shows attachments with no ALT Text value
296
- * New: Activate and deactivate hooks added to create and drop an SQL View supporting ALT Text sorting
297
- * New: Revisions are excluded from the where-used columns; a settings option lets you include them if you wish
298
- * Fix: Better validation/sanitization of data fields on input and display
299
- * Fix: Database query validation/sanitization with wpdb->prepare()
300
- * Fix: check_admin_referer added to settings page
301
- * Fix: Inline CSS styles for message DIV moved to style sheet
302
 
303
  = 0.30 =
304
- * New: Complete support for all taxonomies registered with WordPress, 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 admin screen, filter the listing on any taxonomy, assign terms to attachments and list the attachments for a taxonomy term.
305
- * New: MIME Type and Last Modified Date added to columns listing
306
- * New: Last Modified Date added to single item edit screen
307
- * New: Default column and sort order added to Settings page
308
- * New: Plugin version number added to Settings page header
309
- * Fix: Text fields such as Title, Alternate Text and Caption containing single quotes are no longer truncated on the Edit single item screen
310
- * Fix: Sortable columns and sort order updated.
311
 
312
  = 0.20 =
313
- * New: Quick Edit action for inline editing of attachment metadata
314
- * New: Post Author can be changed
315
- * New: Hyperlink to phpDocs documentation added to Settings page
316
- * New: Shortcode documentation added to settings page
317
- * New: Some book credits added to the "Other Notes" section
318
- * Change: Minified version of JavaScript files are loaded unless 'SCRIPT_DEBUG' is defined as true in wp-config.php
319
- * Change: Global functions moved into classes to minimize the chance of name conflicts
320
- * Change: All class, function and constant names are now checked for conflicts with other plugins and themes
321
- * Fix: Retain pagination values, e.g., page 3 of 5, when returning from row-level actions
322
- * Fix: Retain orderby and order values, e.g., descending sort on date, when returning from row-level actions
323
 
324
  = 0.11 =
325
- * Fix: Changed admin URL references from relative (/wp-admin/...) to absolute, using admin_url().
326
- * Fix: Changed wp_nonce_field() calls to suppress duplicate output of nonce field variables.
327
- * Fix: Changed the minimum WordPress version required to 3.3.
328
 
329
  = 0.1 =
330
  * Initial release.
331
 
332
  == Upgrade Notice ==
333
 
334
- = 1.41 =
335
- New [mla_gallery] "previous link" and "next link" output for gallery navigation. New "request" substitution parameter to access $_REQUEST variables. Three other enhancements, seven fixes.
336
 
337
  == Other Notes ==
338
 
@@ -340,7 +305,8 @@ In this section, scroll down to see:
340
 
341
  * Acknowledgements
342
  * MLA Gallery Shortcode Documentation
343
- * Support for &ldquo;Photonic Gallery for Flickr, Picasa, SmugMug, 500px and Instagram&rdquo;
 
344
  * MLA Gallery Style and Markup Template Documentation
345
  * Library Views/Post MIME Type Processing
346
  * File Extension/MIME Type Processing
@@ -387,15 +353,18 @@ Three parameters provide control over the placement, size and spacing of gallery
387
 
388
  <h4>Gallery Display Content</h4>
389
 
390
- Nine parameters provide an easy way to control the contents of gallery items without requiring the use of custom Markup templates.
391
 
 
392
  * mla_link_attributes
 
393
  * mla_link_href
394
  * mla_link_text
 
395
  * mla_rollover_text
396
  * mla_image_attributes
397
  * mla_image_class
398
- * mla_ image_alt
399
  * mla_caption
400
  * mla_target
401
 
@@ -463,19 +432,32 @@ You can override the default to, for example, display PDF documents (`post_mime_
463
 
464
  If you are working with a template that supports pagination you can use specific values for "posts_per_page", "posts_per_archive_page", "paged" and/or "offset" .
465
 
 
 
 
 
466
  <h4>Custom Field Parameters</h4>
467
 
468
  The `[mla_gallery]` shortcode supports the simple custom field parameters as well as the more powerful "meta_query" parameters made available as of WordPress 3.1.
469
 
470
- == Support for Alternative Gallery Output ==
471
- The [mla_gallery] shortcode can be used to provide "Previous" and "Next" links that support moving among the individual items in a gallery. Two parameters implement this feature:
 
 
472
 
473
- * `mla_output` - the type of output the shortcode will return. The default value, "gallery", returns the traditional gallery of image thumbnails, etc. The "next_link" value returns a link to the next gallery item, and "previous_link" returns a link to the previous gallery item.
474
- * `id` - (optional) the ID of the "current" gallery item.
475
 
476
- The link returned is drawn from the attachment-specific "link" substitution parameter for the next or previous gallery item. This means you can use all of the **Gallery Display Content** parameters to control each element of the link. For example, you can code `mla_rollover_text='&larr; Previous'` to replace the thumbnail image with a generic text link to the "previous_link" item. You can also add HTML arguments to the link to pass values along from one page to the next.
 
 
 
 
477
 
478
- For example, you can select images using the MLA Att. Tag taxonomy and have each gallery item link to a page (page_id=893 in this case) that displays a larger version of the single image:
 
 
 
 
479
 
480
  `
481
  [mla_gallery attachment_tag="sample" mla_caption="{+title+}" mla_link_href="{+site_url+}?page_id=893&current_id={+attachment_ID+}&attachment_tag={+query:attachment_tag+}"]
@@ -494,7 +476,7 @@ Note the use of `attachment_tag={+query:attachment_tag+}` in the href to pass th
494
  </div>
495
  `
496
 
497
- Note the following points:
498
 
499
  1.The "ids" parameter in the first [mla_gallery] takes the "current_id" value (for the single image to be displayed) from the HTML $_REQUEST array.
500
  2.The "id" parameters in the second and third [mla_gallery] take the "current_id" value from the HTML $_REQUEST array. In these "galleries" the "current_id" is the item from which "previous" and "next" are calculated.
@@ -502,6 +484,12 @@ Note the following points:
502
 
503
  This example shows the power of the substitution parameters and in particular the "query" and "request" prefixes that can be used to pass information into an [mla_gallery] and from one page to the next. All of this without modifying PHP templates or requiring other code modifications!
504
 
 
 
 
 
 
 
505
  == Support for Other Gallery-generating Shortcodes ==
506
 
507
  The [mla_gallery] shortcode can be used in combination with other gallery-generating shortcodes to give you the data selection power of [mla_gallery] and the formatting/display power of popular alternatives such as the WordPress.com Jetpack Carousel and Tiled Galleries modules. Any shortcode that accepts "ids=" or a similar parameter listing the attachment ID values for the gallery can be used. Two parameters implement this feature:
4
  Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums, lightroom, photoshop, MIME, mime-type, icon, upload, file extensions
5
  Requires at least: 3.3
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.42
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
119
 
120
  == Changelog ==
121
 
122
+ = 1.42 =
123
+ * New: **Pagination support for `[mla_gallery]`**, using the "previous_page" and "next_page" values of the "mla_output" parameter. See the Settings/Media Library Assistant Documentation tab for complete information and examples.
124
+ * New: For `[mla_gallery]`, a new parameter ("mla_link_class") lets you add class attribute values to the hyperlinks.
125
+ * New: For `[mla_gallery]`, a new parameter ("mla_nolink_text") replaces the empty string returned for an empty `[mla_gallery]` or null pagination links.
126
+ * New: For `[mla_gallery]`, the **"mla_margin" and "mla_itemwidth" parameters can be set to any value**, not just percent values. You can use "auto", dimension values like "10px" or remove the properties altogether. See the Settings/Media Library Assistant Documentation tab for complete information.
127
+ * New: Default values for the `[mla_gallery]` "columns", "mla_margin" and "mla_itemwidth" parameters can now be specified on the Settings/Media Library Assistant submenu, MLA Gallery tab.
128
+ * New: For `[mla_gallery]`, a new substitution parameter ("last_in_row") contains a class name for the last item in each full gallery row. You can use this class name to apply specific CSS styles to the last item in each full row.
129
+ * New: For `[mla_gallery]`, a new parameter ("tax_include_children") gives more control for queries on hierarchial taxonomies, such as `attachment_category`.
130
+ * New: On the Media/Assistant submenu a new rollover action, "View", has been added.
131
+ * New: On the Media/Assistant submenu a new column, "File URL", has been added.
132
+ * New: `absolute_path`, `absolute_file_name`, `base_file`, `name_only` and `mime_type` values added to the custom field data sources list.
133
+ * Fix: For `[mla_gallery]`, the `paged=current` value will now take its value from the "page" query variable for Single Paginated Posts that contain the `<!--nextpage-->` quicktag in the post content.
134
+ * Fix: On the Media/Assistant submenu, the view, search, filter and sort values are retained when moving among multiple pages.
135
+ * Fix: On the Media/Assistant submenu, the view, search and filter values are retained when re-sorting by column values.
136
+ * Fix: On the Media/Assistant submenu, the current view is correctly highlighted for MLA enhanced table views.
137
+ * Fix: If you disable the Media Manager Enhanced Search Media box, the WordPress-native search box functions correctly.
138
+ * Fix: On the Settings/Media Library Assistant submenu, Custom Fields and IPTC/EXIF tabs, the field drop-downlist in the "Add a new Mapping Rule" area now includes fields that have been defined but not yet mapped to any attachments.
139
+
140
  = 1.41 =
141
  * New: For `[mla_gallery]`, the new `mla_output` parameter lets you get "previous_link" and "next_link" values to support moving through an `[mla_gallery]` one item at a time. Look for **Support for Alternative Gallery Output** in the Other Notes section or the Settings/Media Library Assistant Documentation tab for complete information.
142
  * New: For `[mla_gallery]`, field-level substitution parameters now include $_REQUEST arguments. You can pass any values you need from HTML form or hyperlink variables to the Gallery Display Content parameters and to your custom style and markup templates.
256
  * Fix: For WordPress 3.5, Custom Field support for attachments enabled in admin_init action.
257
 
258
  = 0.90 =
259
+ * `[mla_gallery]` support for custom fields, taxonomy terms and IPTC/EXIF metadata. Updated for WordPress 3.5!
 
 
 
260
 
261
  = 0.81 =
262
+ * Improved default Style template, `[mla_gallery]` parameters "mla_itemwidth" and "mla_margin" for control of gallery item spacing. Quick edit support of WordPress standard Categories taxonomy has been fixed.
 
263
 
264
  = 0.80 =
265
+ * MLA Gallery Style and Markup Templates for control over CSS styles, HTML markup and data content of `[mla_gallery]` shortcode output. Eight other enhancements and four fixes.
 
 
 
 
 
 
 
 
 
 
 
 
266
 
267
  = 0.71 =
268
+ * Removed (!) Warning displays for empty Gallery in and MLA Gallery in column entries.
269
 
270
  = 0.70 =
271
+ * 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.
 
 
 
 
272
 
273
  = 0.60 =
274
+ * 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.
 
 
 
 
 
 
 
275
 
276
  = 0.50 =
277
+ * New `[mla_gallery]` shortcode, a superset of the `[gallery]` shortcode that provides many enhancements. These include taxonomy support and all post_mime_type values (not just images). Media Library items need not be "attached" to the post.
 
 
278
 
279
  = 0.41 =
280
+ * SQL View (supporting ALT Text sorting) now created for automatic plugin upgrades
281
 
282
  = 0.40 =
283
+ * Bulk Edit area; add, remove or replace taxonomy terms for several attachments at once. Sort your media listing on ALT Text, exclude revisions from where-used reporting.
 
 
 
 
 
 
 
284
 
285
  = 0.30 =
286
+ * Support ALL taxonomies, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. Add taxonomy columns to the Assistant admin screen, filter on any taxonomy, assign terms and list the attachments for a term.
 
 
 
 
 
 
287
 
288
  = 0.20 =
289
+ * Quick Edit action for inline editing of attachment metadata
 
 
 
 
 
 
 
 
 
290
 
291
  = 0.11 =
292
+ * Fixed "404 Not Found" errors when updating single items.
 
 
293
 
294
  = 0.1 =
295
  * Initial release.
296
 
297
  == Upgrade Notice ==
298
 
299
+ = 1.42 =
300
+ Get pagination support for [mla_gallery]! Improved CSS width (itemwidth) and margin handling. Eight other enhancements, six fixes.
301
 
302
  == Other Notes ==
303
 
305
 
306
  * Acknowledgements
307
  * MLA Gallery Shortcode Documentation
308
+ * Support for Alternative Gallery Output, e.g., Pagination
309
+ * Support for Other Gallery-generating Shortcodes
310
  * MLA Gallery Style and Markup Template Documentation
311
  * Library Views/Post MIME Type Processing
312
  * File Extension/MIME Type Processing
353
 
354
  <h4>Gallery Display Content</h4>
355
 
356
+ Twelve parameters provide an easy way to control the contents of gallery items without requiring the use of custom Markup templates.
357
 
358
+ * mla_output (pagination support)
359
  * mla_link_attributes
360
+ * mla_link_class
361
  * mla_link_href
362
  * mla_link_text
363
+ * mla_nolink_text
364
  * mla_rollover_text
365
  * mla_image_attributes
366
  * mla_image_class
367
+ * mla_image_alt
368
  * mla_caption
369
  * mla_target
370
 
432
 
433
  If you are working with a template that supports pagination you can use specific values for "posts_per_page", "posts_per_archive_page", "paged" and/or "offset" .
434
 
435
+ The "paged=current" parameter is useful for "paginated single posts" (i.e. posts that include the <code>&lt;!--nextpage--&gt;</code> Quicktag one or more times). Simply make two ore more copies of your <code>[mla_gallery]</code> shortcode separated by the Quicktag and include the "paged=current' in each copy.
436
+
437
+ The more complex task of dividing a large <code>[mla_gallery]</code> into two or more pages is supported by MLA's **Support for Alternative Gallery Output, e.g., Pagination**; see the section below.
438
+
439
  <h4>Custom Field Parameters</h4>
440
 
441
  The `[mla_gallery]` shortcode supports the simple custom field parameters as well as the more powerful "meta_query" parameters made available as of WordPress 3.1.
442
 
443
+ == Support for Alternative Gallery Output, e.g., pagination ==
444
+ The `[mla_gallery]` shortcode can be used to provide "Previous" and "Next" links that support moving among the individual items in a gallery or among gallery "pages". For example, if you have many items with a specific Att. Category or Att. Tag value you can build a single-image page with links to the previous/next item having that value. You can also build a page that shows a large gallery in groups, or "gallery pages", of ten items with links to the previous/next ten items or links to all of the gallery pages of items having that value.
445
+
446
+ <h4>The <code>mla_output</code> parameter</h4>
447
 
448
+ The **"mla_output"** parameter determines the type of output the shortcode will return. Explanation and examples of each output type are given later in this section. You can choose from five values:
 
449
 
450
+ * `gallery`: The default value; returns the traditional gallery of image thumbnails, captions, etc.
451
+ * `next_link`: returns a link to the next gallery item. The optional ",wrap" qualifier determines what happens at the end of the gallery. If you omit the qualifier, an empty string is returned for the "next_link" from the last item in the gallery. If you code the ",wrap" qualifier, the "next_link" from the last item will be to the first gallery item.
452
+ * `previous_link`: returns a link to the previous gallery item. The optional ",wrap" qualifier determines what happens at the beginning of the gallery. If you omit the qualifier, an empty string is returned for the "previous_link" from the first gallery item. If you code the ",wrap" qualifier, "previous_link" from the first gallery item will be to the last gallery item.
453
+ * `next_page`: returns a link to the next "page" of gallery items. The optional ",wrap" or ",last" qualifiers determine what happens at the end of the gallery. If you omit the qualifier, an empty string is returned for the "next_page" if there are no more items in the gallery. If you code the ",wrap" qualifier, the "next_page" from the last page of items will be to the first page of gallery items. If you code the ",last" qualifier, the "next_page" link will return to/remain on the last page of gallery items.
454
+ * `previous_page`: returns a link to the previous "page" of gallery items. The optional ",wrap" or ",first" qualifiers determine what happens at the beginning of the gallery. If you omit the qualifier, an empty string is returned for the "previous_link" from the first page of gallery items. If you code the ",wrap" qualifier, "previous_page" from the first page of gallery items will be to the last page of gallery items. If you code the ",first" qualifier, the "previous_link" link will return to/remain on the first page of gallery items.
455
 
456
+ <h4>Next and previous gallery items; the `next_link` and `previous_link` output types</h4>
457
+
458
+ WordPress provides functions that generate links to the "<em>next/previous image attached to the current post</em>." These are not useful when your Media Library items are not images or are not attached to a specific post or page. If, for example, you use an `[mla_gallery]` shortcode to build a gallery of items with a specific Att. Tag value you can use the `next_link` and`previous_link` output types to move through single-item pages for the gallery.
459
+
460
+ You can select images using the MLA Att. Tag taxonomy and have each gallery item link to a page (page_id=893 in this case) that displays a larger version of the single image:
461
 
462
  `
463
  [mla_gallery attachment_tag="sample" mla_caption="{+title+}" mla_link_href="{+site_url+}?page_id=893&current_id={+attachment_ID+}&attachment_tag={+query:attachment_tag+}"]
476
  </div>
477
  `
478
 
479
+ Consider the following points:
480
 
481
  1.The "ids" parameter in the first [mla_gallery] takes the "current_id" value (for the single image to be displayed) from the HTML $_REQUEST array.
482
  2.The "id" parameters in the second and third [mla_gallery] take the "current_id" value from the HTML $_REQUEST array. In these "galleries" the "current_id" is the item from which "previous" and "next" are calculated.
484
 
485
  This example shows the power of the substitution parameters and in particular the "query" and "request" prefixes that can be used to pass information into an [mla_gallery] and from one page to the next. All of this without modifying PHP templates or requiring other code modifications!
486
 
487
+ <h4>Next and previous gallery pages; the `next_page` and `previous_page` output types</h4>
488
+
489
+ WordPress provides functions that generate links to the "<em>next/previous set of posts within the current query</em>." These are not useful because the "current query" is for posts/pages, <strong>not</strong> Media Library items. What's needed is a way to paginate an `[mla_gallery]` shortcode on a single post or page. If, for example, you use an `[mla_gallery]` shortcode to build a gallery of items with a specific Att. Tag value you can use the `next_page` and `previous_page` output types to move through the gallery in groups of, say, ten items per "gallery page".
490
+
491
+ WordPress uses the "paged" parameter to indicate the current "<em>set of posts within the current query</em>." To avoid built-in WordPress logic that uses this parameter, MLA has its own "mla_paginate_current" parameter to indicate the current set of items within the gallery (the current gallery page). MLA will automatically manage this parameter for you, but you can also use it explicitly to handle special cases.
492
+
493
  == Support for Other Gallery-generating Shortcodes ==
494
 
495
  The [mla_gallery] shortcode can be used in combination with other gallery-generating shortcodes to give you the data selection power of [mla_gallery] and the formatting/display power of popular alternatives such as the WordPress.com Jetpack Carousel and Tiled Galleries modules. Any shortcode that accepts "ids=" or a similar parameter listing the attachment ID values for the gallery can be used. Two parameters implement this feature:
tpls/documentation-settings-tab.tpl CHANGED
@@ -27,7 +27,7 @@
27
  </ul>
28
  </li>
29
  <li>
30
- <a href="#mla_output"><strong>Support for Alternative Gallery Output</strong></a>
31
  </li>
32
  <li>
33
  <a href="#alt_shortcode"><strong>Support for Other Gallery-generating Shortcodes</strong></a>
@@ -121,34 +121,46 @@ Three <code>[mla_gallery]</code> parameters provide control over the placement,
121
  <table>
122
  <tr>
123
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_float</td>
124
- <td>specifies the float attribute of the ".gallery-item" style. Acceptable values are "left", "none", "right"; the default value is "right" if current locale is RTL, "left" on LTR (left-to-right inline flow, e.g., English).</td>
125
  </tr>
126
  <tr>
127
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_margin</td>
128
- <td>specifies the margin attribute (in percent) of the ".gallery-item" style. The default value is "1.5" percent.</td>
129
  </tr>
130
  <tr>
131
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_itemwidth</td>
132
- <td>specifies the width attribute (in percent) of the ".gallery-item" style. The default value is calculated by subtracting twice the margin from 100%, then dividing by the number of gallery columns. For example, the default value is "32", or (100 - (2 * 1.5)) / 3.</td>
 
 
 
 
133
  </tr>
134
  </table>
135
  <p>
136
  These parameters are only important if the gallery thumbnails are too large to fit within the width of the page on which they appear. For example, if you code <code>[mla_gallery size=full]</code>, the browser will automatically scale down large images to fit within the width attribute (in percent) of the ".gallery-item" style. The default 1.5% margin will ensure that the images do not overlap; you can increase it to add more space between the gallery items. You can also reduce the itemwidth parameter to increase the left and right space between the items.
 
 
 
137
  <a name="gallery_display_content"></a>
138
  </p>
139
  <h4>Gallery Display Content</h4>
140
  <p>
141
- Nine <code>[mla_gallery]</code> parameters provide an easy way to control the contents of gallery items without requiring the use of custom Markup templates.
142
  </p>
143
  <table>
144
  <tr>
145
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_output</td>
146
- <td>completely replaces gallery output with links to the "previous" or "next" item. Complete documentation is in the <a href="#mla_output"><strong>Support for Alternative Gallery Output</strong></a> section below.</td>
147
  </tr>
148
  <tr>
149
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_attributes</td>
150
  <td>adds one or more HTML attributes to the hyperlink for each gallery item; see below</td>
151
  </tr>
 
 
 
 
 
152
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_href</td>
153
  <td>replaces the HTML "href" attribute in the hyperlink for each gallery item; see below</td>
154
  </tr>
@@ -157,6 +169,10 @@ Nine <code>[mla_gallery]</code> parameters provide an easy way to control the co
157
  <td>replaces the thumbnail image or attachment title text displayed for each gallery item</td>
158
  </tr>
159
  <tr>
 
 
 
 
160
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_rollover_text</td>
161
  <td>replaces the HTML "title" attribute in the hyperlink for each gallery item. This is the attachment title text displayed when the mouse rolls or hovers over the gallery thumbnail</td>
162
  </tr>
@@ -183,7 +199,7 @@ Nine <code>[mla_gallery]</code> parameters provide an easy way to control the co
183
  <tr>
184
  </table>
185
  <p>
186
- The first eight parameters support the <a href="#mla_markup_parameters">Markup</a> and <a href="#mla_attachment_parameters">Attachment-specific</a> substitution arguments defined for Markup Templates. For example, if you code "<code>mla_rollover_text='{+date+} : {+description+}'</code>, the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the WordPress shortcode parser reserves square brackets ("[" and "]") for its own use.
187
  </p>
188
  <p>
189
  The "mla_link_href" parameter is a great way to change the destination your gallery item links to or add arguments to the link for later processing. For example, to make a gallery item link back to the page/post it is attached to, you can code: <code>mla_link_href='{+site_url+}/?page_id={+parent+}'</code>. You can also add arguments to the link, e.g., <code>mla_link_href='{+link_url+}&amp;amp;myarg=myvalue'</code>. Note the use of the HTML entity name "&amp;amp;" to put an ampersand in the value; the WordPress "visual" post editor will replace "&", "<" and ">" with "&amp;amp;", "&amp;lt;" and "&amp;gt;" whether you like it not. The <strong>only</strong> markup parameter modified by this parameter is "link". Other markup parameters such as "pagelink", "filelink" and "link_url" are not modified.
@@ -373,12 +389,28 @@ Note that you must use the name/slug strings for taxonomy and terms, not the "ti
373
  In this example, "attachment_tag" is the WordPress taxonomy name/slug for the taxonomy. If you're using "Att. Category", the slug would be "attachment_category".
374
  </p>
375
  <p>
376
- The default behavior of the simple taxonomy query will match any of the terms in the list. MLA enhances the simple taxonomy query form by providing an additional parameter, "tax_operator", which can be "IN", "NOT IN" or "AND". If you specify a "tax_operator", MLA will convert your query to the more powerful "tax_query" form, searching on the "slug" field and using the operator you specify. For example, a query for two terms in which <strong>both</strong> terms must match would be coded as:
 
 
 
 
 
 
 
 
 
 
 
 
 
377
  </p>
378
  <ul class="mla_settings">
379
- <li><code>[mla_gallery attachment_category='separate-category,another-category' tax_operator=AND]</code></li>
380
  </ul>
381
  <p>
 
 
 
382
  More complex queries can be specified by using <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters" title="WordPress Codex Documentation for tax_query" target="_blank">WP_Query's "tax_query"</a>, e.g.:
383
  </p>
384
  <ul class="mla_settings">
@@ -407,7 +439,13 @@ For compatibility with the WordPress <code>[gallery]</code> shortcode, these par
407
  </p>
408
  <h4>Pagination Parameters</h4>
409
  <p>
410
- The <code>[mla_gallery]</code> shortcode supplies <code>nopaging=true</code> as a default parameter. If you are working with a template that supports pagination you can replace this with specific values for "numberposts", "posts_per_page", "posts_per_archive_page", "paged" and/or "offset" . You can also pass "paged=current" to suppress the "nopaging" default; "current" will be replaced by the appropriate value (get_query_var('paged')).
 
 
 
 
 
 
411
  <a name="time_parameters"></a>
412
  </p>
413
  <h4>Time Parameters</h4>
@@ -440,25 +478,51 @@ The "mla_debug" parameter controls the display of information about the query pa
440
  <p>
441
  <a href="#backtotop">Go to Top</a>
442
  </p>
443
- <h3>Support for Alternative Gallery Output</h3>
444
  <p>
445
- The <code>[mla_gallery]</code> shortcode can be used to provide "Previous" and "Next" links that support moving among the individual items in a gallery.
 
 
 
 
446
  </p>
447
  <table>
448
  <tr>
449
- <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_output</td>
450
- <td>the type of output the shortcode will return. The default value, "gallery", returns the traditional gallery of image thumbnails, etc. The "next_link" value returns a link to the next gallery item, and "previous_link" returns a link to the previous gallery item. The optional ",wrap" qualifier determines what happens at each end of the gallery. If you omit the qualifier, an empty string is returned for the "previous_link" from the first gallery item, and for the "next_link" from the last item in the gallery. If you code the ",wrap" qualifier, "previous_link" from the first gallery item will be to the last gallery item and the "next_link" from the last item will be to the first gallery item.</td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
451
  </tr>
 
 
 
 
 
 
452
  <tr>
453
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">id</td>
454
  <td>(optional) the ID of the "current" gallery item. If you omit this parameter, the default value is the ID of the current "post". The default value is only useful if you are enhancing the PHP code of the "image.php" template for the "Attachment Page" associated with a Media Library item.</td>
455
  </tr>
456
  </table>
457
  <p>
458
- The link returned is drawn from the attachment-specific "link" substitution parameter for the next or previous gallery item. This means you can use all of the <a href="#gallery_display_content">Gallery Display Content</a> parameters to control each element of the link. For example, you can code <code>mla_rollover_text='&amp;larr; Previous'</code> to replace the thumbnail image with a generic text link to the "previous_link" item. You can also add HTML arguments to the link to pass values along from one page to the next.
459
  </p>
460
  <p>
461
- For example, you can select images using the MLA Att. Tag taxonomy and have each gallery item link to a page (page_id=893 in this case) that displays a larger version of the single image:
462
  </p>
463
  <code>
464
  [mla_gallery attachment_tag="sample" mla_caption="{+title+}" mla_link_href="{+site_url+}?page_id=893&amp;current_id={+attachment_ID+}&amp;attachment_tag={+query:attachment_tag+}"]
@@ -470,14 +534,14 @@ Note the use of <code>attachment_tag={+query:attachment_tag+}</code> in the href
470
  [mla_gallery columns=1 ids="{+request:current_id+}" size=medium]
471
  <br />&nbsp;<br>
472
  &lt;div style="clear: both; float: left"&gt;<br />
473
- [mla_gallery mla_output="previous_link,wrap" mla_link_text='&larr; Previous Sample' attachment_tag="{+request:attachment_tag+}" id="{+request:current_id+}" mla_caption="{+title+}" mla_link_href="{+site_url+}?page_id=893&amp;current_id={+attachment_ID+}&amp;attachment_tag={+query:attachment_tag+}"]<br>
474
  &lt;/div&gt;<br>
475
  &lt;div style="float: right"&gt;<br>
476
- [mla_gallery mla_output="next_link,wrap" mla_link_text='Next Sample &rarr;' attachment_tag="{+request:attachment_tag+}" id="{+request:current_id+}" mla_caption="{+title+}" mla_link_href="{+site_url+}?page_id=893&amp;current_id={+attachment_ID+}&amp;attachment_tag={+query:attachment_tag+}"]<br>
477
  &lt;/div&gt;
478
  </code>
479
  <p>
480
- Note the following points:
481
  </p>
482
  <ol>
483
  <li>The "ids" parameter in the first <code>[mla_gallery]</code> takes the "current_id" value (for the single image to be displayed) from the HTML $_REQUEST array.
@@ -490,6 +554,156 @@ Note the following points:
490
  <p>
491
  This example shows the power of the substitution parameters and in particular the "query" and "request" prefixes that can be used to pass information into an <code>[mla_gallery]</code> and from one page to the next. All of this without modifying PHP templates or requiring other code modifications!
492
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  <a name="alt_shortcode"></a>
494
  &nbsp;
495
  <p>
@@ -614,11 +828,11 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
614
  </tr>
615
  <tr>
616
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">itemwidth</td>
617
- <td>shortcode parameter, default = '97' if 'columns' is zero, or 97/columns, e.g., '32' if columns is '3'</td>
618
  </tr>
619
  <tr>
620
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">margin</td>
621
- <td>shortcode parameter, default = '1.5' (percent)</td>
622
  </tr>
623
  <tr>
624
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">float</td>
@@ -674,11 +888,11 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
674
  </tr>
675
  <tr>
676
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">itemwidth</td>
677
- <td>shortcode parameter, default = '97' if 'columns' is zero, or 97/columns, e.g., '32' if columns is '3'</td>
678
  </tr>
679
  <tr>
680
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">margin</td>
681
- <td>shortcode parameter, default = '1.5' (percent)</td>
682
  </tr>
683
  <tr>
684
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">float</td>
@@ -702,7 +916,7 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
702
  </tr>
703
  <tr>
704
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">base_dir</td>
705
- <td>full path to the upload directory, without trailing slash</td>
706
  </tr>
707
  </table>
708
  <a name="mla_attachment_parameters"></a>
@@ -717,6 +931,10 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
717
  <td>starts at '1', incremented for each attachment in the gallery</td>
718
  </tr>
719
  <tr>
 
 
 
 
720
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">caption</td>
721
  <td>if captiontag is not empty, contains caption/post_excerpt</td>
722
  </tr>
@@ -1170,12 +1388,28 @@ If you just want to add a custom field to the Media/Assistant submenu, the quick
1170
  <td>WordPress attachment metadata, from the <em>_wp_attachment_metadata</em> array. Enter the field you want in the text box below the dropdown list. More coding guidelines are given below this table.</td>
1171
  </tr>
1172
  <tr>
 
 
 
 
 
 
 
 
 
 
 
 
1173
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">path</td>
1174
  <td>path portion of the base_file value, e.g., 2012/11/</td>
1175
  </tr>
1176
  <tr>
1177
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">file_name</td>
1178
- <td>file name portion of the base_file value, e.g., image.jpg</td>
 
 
 
 
1179
  </tr>
1180
  <tr>
1181
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">extension</td>
27
  </ul>
28
  </li>
29
  <li>
30
+ <a href="#mla_output"><strong>Support for Alternative Gallery Output, e.g., Pagination</strong></a>
31
  </li>
32
  <li>
33
  <a href="#alt_shortcode"><strong>Support for Other Gallery-generating Shortcodes</strong></a>
121
  <table>
122
  <tr>
123
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_float</td>
124
+ <td>specifies the CSS float attribute of the ".gallery-item" style. Acceptable values are "left", "none", "right"; the default value is "right" if current locale is RTL, "left" on LTR (left-to-right inline flow, e.g., English).</td>
125
  </tr>
126
  <tr>
127
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_margin</td>
128
+ <td>specifies the CSS margin property of the ".gallery-item" style. The default value is "1.5%", a percent of the total gallery width. You can also specify any dimension value, e.g., "10px" or "2em", as well as the "auto" or "inherit" values. Finally, you can specify "none", which will remove the margin property from the styles template altogether.</td>
129
  </tr>
130
  <tr>
131
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_itemwidth</td>
132
+ <td>specifies the CSS width attribute of the ".gallery-item" style. You can specify a percent of the total gallery width, e.g., "33.3%". You can also specify any dimension value, e.g., "10px" or "2em", as well as the "auto" or "inherit" values. You can specify "none", which will remove the margin property from the styles template altogether.
133
+ <br />&nbsp;<br />
134
+ Two additional values, "calculate" (the default) and "exact", calculate the width automatically, based on the "columns" and "mla_margin" values. For "calculate", the width is calculated by dividing 100% by the number of columns, then subtracting twice the margin. For example, the default value is (floor(1000/3)/10) - ( 2.0 * 1.5 ) = 30.3%. Adding in the left and right margins makes each column 33.3% and the total width will be 99.9%
135
+ <br />&nbsp;<br />
136
+ For the "exact" value, the calculation is the same but the margin is ignored, so the width value would be 33.3%.</td>
137
  </tr>
138
  </table>
139
  <p>
140
  These parameters are only important if the gallery thumbnails are too large to fit within the width of the page on which they appear. For example, if you code <code>[mla_gallery size=full]</code>, the browser will automatically scale down large images to fit within the width attribute (in percent) of the ".gallery-item" style. The default 1.5% margin will ensure that the images do not overlap; you can increase it to add more space between the gallery items. You can also reduce the itemwidth parameter to increase the left and right space between the items.
141
+ </p>
142
+ <p>
143
+ The default margin and width calculations try to make the total width of each row as close to 100% as possible, but never exceed 100% due to rounding errors. If you have more advanced style and format needs, you can define custom style and/or markup templates. You can also code <code>mla_style=none</code> to suppress inline styles entirely and use a separate stylesheet to control the format of the gallery.
144
  <a name="gallery_display_content"></a>
145
  </p>
146
  <h4>Gallery Display Content</h4>
147
  <p>
148
+ Twelve <code>[mla_gallery]</code> parameters provide an easy way to control the contents of gallery items without requiring the use of custom Markup templates.
149
  </p>
150
  <table>
151
  <tr>
152
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_output</td>
153
+ <td>completely replaces gallery output with links to the "previous" or "next" item/page or pagination links. Complete documentation is in the <a href="#mla_output"><strong>Support for Alternative Gallery Output, e.g., Pagination</strong></a> section below.</td>
154
  </tr>
155
  <tr>
156
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_attributes</td>
157
  <td>adds one or more HTML attributes to the hyperlink for each gallery item; see below</td>
158
  </tr>
159
+ <tr>
160
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_class</td>
161
+ <td><strong>adds</strong> one or more classes to any already defined for the hyperlink </td>
162
+ </tr>
163
+ <tr>
164
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_href</td>
165
  <td>replaces the HTML "href" attribute in the hyperlink for each gallery item; see below</td>
166
  </tr>
169
  <td>replaces the thumbnail image or attachment title text displayed for each gallery item</td>
170
  </tr>
171
  <tr>
172
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_nolink_text</td>
173
+ <td>replaces the empty string displayed when there are no gallery items or no pagination link </td>
174
+ </tr>
175
+ <tr>
176
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_rollover_text</td>
177
  <td>replaces the HTML "title" attribute in the hyperlink for each gallery item. This is the attachment title text displayed when the mouse rolls or hovers over the gallery thumbnail</td>
178
  </tr>
199
  <tr>
200
  </table>
201
  <p>
202
+ All but the "mla_target" parameter support the <a href="#mla_markup_parameters">Markup</a> and <a href="#mla_attachment_parameters">Attachment-specific</a> substitution arguments defined for Markup Templates. For example, if you code "<code>mla_rollover_text='{+date+} : {+description+}'</code>, the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the WordPress shortcode parser reserves square brackets ("[" and "]") for its own use.
203
  </p>
204
  <p>
205
  The "mla_link_href" parameter is a great way to change the destination your gallery item links to or add arguments to the link for later processing. For example, to make a gallery item link back to the page/post it is attached to, you can code: <code>mla_link_href='{+site_url+}/?page_id={+parent+}'</code>. You can also add arguments to the link, e.g., <code>mla_link_href='{+link_url+}&amp;amp;myarg=myvalue'</code>. Note the use of the HTML entity name "&amp;amp;" to put an ampersand in the value; the WordPress "visual" post editor will replace "&", "<" and ">" with "&amp;amp;", "&amp;lt;" and "&amp;gt;" whether you like it not. The <strong>only</strong> markup parameter modified by this parameter is "link". Other markup parameters such as "pagelink", "filelink" and "link_url" are not modified.
389
  In this example, "attachment_tag" is the WordPress taxonomy name/slug for the taxonomy. If you're using "Att. Category", the slug would be "attachment_category".
390
  </p>
391
  <p>
392
+ The default behavior of the simple taxonomy query will match any of the terms in the list. MLA enhances the simple taxonomy query form by providing two additional parameters:
393
+ </p>
394
+ <table>
395
+ <tr>
396
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">tax_operator</td>
397
+ <td>SQL operator to test terms against; can be "OR", IN", "NOT IN" or "AND".</td>
398
+ </tr>
399
+ <tr>
400
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">tax_include_children</td>
401
+ <td>whether or not to include children for hierarchical taxonomies; can be "true" (the default) or "false". </td>
402
+ </tr>
403
+ </table>
404
+ <p>
405
+ If you specify either or both of these parameters, MLA will convert your query to the more powerful "tax_query" form, searching on the "slug" field and using the operator you specify. For example, a query for two terms in which <strong>both</strong> terms must match would be coded as:
406
  </p>
407
  <ul class="mla_settings">
408
+ <li><code>[mla_gallery attachment_category='separate-category,another-category' tax_operator=AND tax_include_children=false]</code></li>
409
  </ul>
410
  <p>
411
+ Note that the default tax_include_children value is true, matching the default WordPress setting. If your tax_operator is "AND", you will almost certainly want to change this setting.
412
+ </p>
413
+ <p>
414
  More complex queries can be specified by using <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters" title="WordPress Codex Documentation for tax_query" target="_blank">WP_Query's "tax_query"</a>, e.g.:
415
  </p>
416
  <ul class="mla_settings">
439
  </p>
440
  <h4>Pagination Parameters</h4>
441
  <p>
442
+ The <code>[mla_gallery]</code> shortcode supplies <code>nopaging=true</code> as a default parameter. If you are working with a template that supports pagination you can replace this with specific values for "numberposts", "posts_per_page", "posts_per_archive_page", "paged" and/or "offset" . You can also pass "paged=current" to suppress the "nopaging" default; "current" will be replaced by the appropriate value (<code>get_query_var('paged')</code> or <code>get_query_var('page')</code>).
443
+ </p>
444
+ <p>
445
+ The "paged=current" parameter is useful for "paginated single posts" (i.e. posts that include the <code>&lt;!--nextpage--&gt;</code> Quicktag one or more times). Simply make two ore more copies of your <code>[mla_gallery]</code> shortcode separated by the Quicktag and include the "paged=current' in each copy.
446
+ </p>
447
+ <p>
448
+ The more complex task of dividing a large <code>[mla_gallery]</code> into two or more pages is supported by MLA's <a href="#mla_output">Support for Alternative Gallery Output, e.g., Pagination</a>; see the section below.
449
  <a name="time_parameters"></a>
450
  </p>
451
  <h4>Time Parameters</h4>
478
  <p>
479
  <a href="#backtotop">Go to Top</a>
480
  </p>
481
+ <h3>Support for Alternative Gallery Output, e.g., Pagination</h3>
482
  <p>
483
+ The <code>[mla_gallery]</code> shortcode can be used to provide "Previous" and "Next" links that support moving among the individual items in a gallery or among gallery "pages". For example, if you have many items with a specific Att. Category or Att. Tag value you can build a single-image page with links to the previous/next item having that value. You can also build a page that shows a large gallery in groups, or "gallery pages", of ten items with links to the previous/next ten items or links to all of the gallery pages of items having that value.
484
+ </p>
485
+ <h4>The <code>mla_output</code> parameter</h4>
486
+ <p>
487
+ The <strong>"mla_output"</strong> parameter determines the type of output the shortcode will return. Explanation and examples of each output type are given later in this section. You can choose from five values:
488
  </p>
489
  <table>
490
  <tr>
491
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">gallery</td>
492
+ <td>The default value; returns the traditional gallery of image thumbnails, captions, etc.</td>
493
+ </tr>
494
+ <tr>
495
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">next_link</td>
496
+ <td>returns a link to the next gallery item. The optional ",wrap" qualifier determines what happens at the end of the gallery. If you omit the qualifier, an empty string is returned for the "next_link" from the last item in the gallery. If you code the ",wrap" qualifier, the "next_link" from the last item will be to the first gallery item.</td>
497
+ </tr>
498
+ <tr>
499
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">previous_link</td>
500
+ <td>returns a link to the previous gallery item. The optional ",wrap" qualifier determines what happens at the beginning of the gallery. If you omit the qualifier, an empty string is returned for the "previous_link" from the first gallery item. If you code the ",wrap" qualifier, "previous_link" from the first gallery item will be to the last gallery item.</td>
501
+ </tr>
502
+ <tr>
503
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">next_page</td>
504
+ <td>returns a link to the next "page" of gallery items. The optional ",wrap" or ",last" qualifiers determine what happens at the end of the gallery. If you omit the qualifier, an empty string is returned for the "next_page" if there are no more items in the gallery. If you code the ",wrap" qualifier, the "next_page" from the last page of items will be to the first page of gallery items. If you code the ",last" qualifier, the "next_page" link will return to/remain on the last page of gallery items.</td>
505
+ </tr>
506
+ <tr>
507
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">previous_page</td>
508
+ <td>returns a link to the previous "page" of gallery items. The optional ",wrap" or ",first" qualifiers determine what happens at the beginning of the gallery. If you omit the qualifier, an empty string is returned for the "previous_link" from the first page of gallery items. If you code the ",wrap" qualifier, "previous_page" from the first page of gallery items will be to the last page of gallery items. If you code the ",first" qualifier, the "previous_link" link will return to/remain on the first page of gallery items.</td>
509
  </tr>
510
+ </table>
511
+ <h4>Next and previous gallery items; the <code>next_link</code> and <code>previous_link</code> output types</h4>
512
+ <p>
513
+ WordPress provides functions that generate links to the "<em>next/previous image attached to the current post</em>." These are not useful when your Media Library items are not images or are not attached to a specific post or page. If, for example, you use an <code>[mla_gallery]</code> shortcode to build a gallery of items with a specific Att. Tag value you can use the <code>next_link</code> and <code>previous_link</code> output types to move through single-item pages for the gallery. You will need one more parameter to specify the "current item" in the gallery:
514
+ </p>
515
+ <table>
516
  <tr>
517
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">id</td>
518
  <td>(optional) the ID of the "current" gallery item. If you omit this parameter, the default value is the ID of the current "post". The default value is only useful if you are enhancing the PHP code of the "image.php" template for the "Attachment Page" associated with a Media Library item.</td>
519
  </tr>
520
  </table>
521
  <p>
522
+ The next or previous link returned is drawn from the attachment-specific "link" substitution parameter for the next or previous gallery item. This means you can use all of the <a href="#gallery_display_content">Gallery Display Content</a> parameters to control each element of the link. For example, you can code <code>mla_rollover_text='&amp;larr; Previous'</code> to replace the thumbnail image with a generic text link to the "previous_link" item. You can also add HTML arguments to the link to pass values along from one page to the next.
523
  </p>
524
  <p>
525
+ Expanding the example, you can select images using the MLA Att. Tag taxonomy and have each gallery item link to a page (<em><strong>page_id=893</strong></em> in this case) that displays a larger version of the single image:
526
  </p>
527
  <code>
528
  [mla_gallery attachment_tag="sample" mla_caption="{+title+}" mla_link_href="{+site_url+}?page_id=893&amp;current_id={+attachment_ID+}&amp;attachment_tag={+query:attachment_tag+}"]
534
  [mla_gallery columns=1 ids="{+request:current_id+}" size=medium]
535
  <br />&nbsp;<br>
536
  &lt;div style="clear: both; float: left"&gt;<br />
537
+ [mla_gallery mla_output="previous_link,wrap" mla_link_text='&amp;larr; Previous Sample' attachment_tag="{+request:attachment_tag+}" id="{+request:current_id+}" mla_caption="{+title+}" mla_link_href="{+site_url+}?page_id=893&amp;current_id={+attachment_ID+}&amp;attachment_tag={+query:attachment_tag+}"]<br>
538
  &lt;/div&gt;<br>
539
  &lt;div style="float: right"&gt;<br>
540
+ [mla_gallery mla_output="next_link,wrap" mla_link_text='Next Sample &amp;rarr;' attachment_tag="{+request:attachment_tag+}" id="{+request:current_id+}" mla_caption="{+title+}" mla_link_href="{+site_url+}?page_id=893&amp;current_id={+attachment_ID+}&amp;attachment_tag={+query:attachment_tag+}"]<br>
541
  &lt;/div&gt;
542
  </code>
543
  <p>
544
+ Consider the following points:
545
  </p>
546
  <ol>
547
  <li>The "ids" parameter in the first <code>[mla_gallery]</code> takes the "current_id" value (for the single image to be displayed) from the HTML $_REQUEST array.
554
  <p>
555
  This example shows the power of the substitution parameters and in particular the "query" and "request" prefixes that can be used to pass information into an <code>[mla_gallery]</code> and from one page to the next. All of this without modifying PHP templates or requiring other code modifications!
556
  </p>
557
+ <h4>Next and previous gallery pages; the <code>next_page</code> and <code>previous_page</code> output types</h4>
558
+ <p>
559
+ WordPress provides functions that generate links to the "<em>next/previous set of posts within the current query</em>." These are not useful because the "current query" is for posts/pages, <strong>not</strong> Media Library items. What's needed is a way to paginate an <code>[mla_gallery]</code> shortcode on a single post or page. If, for example, you use an <code>[mla_gallery]</code> shortcode to build a gallery of items with a specific Att. Tag value you can use the <code>next_page</code> and <code>previous_page</code> output types to move through the gallery in groups of, say, ten items per "gallery page".
560
+ </p>
561
+ <p>
562
+ WordPress uses the "paged" parameter to indicate the current "<em>set of posts within the current query</em>." To avoid built-in WordPress logic that uses this parameter, MLA has its own "mla_paginate_current" parameter to indicate the current set of items within the gallery (the current gallery page). MLA will automatically manage this parameter for you, but you can also use it explicitly to handle special cases.
563
+ </p>
564
+ <h4>Page selection parameters for <code>next_page</code> and <code>previous_page</code> output types</h4>
565
+ <p>
566
+ Use the following parameters to specify the size of each gallery page and the current gallery page:
567
+ </p>
568
+ <table>
569
+ <tr>
570
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">posts_per_page</td>
571
+ <td>sets the number of gallery items on each gallery "page" </td>
572
+ </tr>
573
+ <tr>
574
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">numberposts</td>
575
+ <td>synonym for "posts_per_page" </td>
576
+ </tr>
577
+ <tr>
578
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_paginate_current</td>
579
+ <td>the "current" gallery page; defaults to one (1) if not specified. MLA will usually manage this for you, adding it to the hyperlinks for the previous and next gallery pages. MLA will look for this parameter in the HTML $_REQUEST array if it is not coded in the gallery shortcode.</td>
580
+ </tr>
581
+ <tr>
582
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_paginate_total</td>
583
+ <td>the highest page number you want to display; defaults to (total items / posts_per_page) if not specified, which is usually what you want. </td>
584
+ </tr>
585
+ <tr>
586
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">offset, paged</td>
587
+ <td><strong>DO NOT USE THESE PARAMETERS; THEY WILL BREAK MLA PAGINATION</strong> </td>
588
+ </tr>
589
+ </table>
590
+ <p>For most applications, "posts_per_page" is the only parameter you need to specify. Make sure this parameter is that same for your main gallery shortcode and for the pagination shortcodes that go with it.</p>
591
+ <h4>Gallery Display Content parameters for <code>next_page</code> and <code>previous_page</code> output types</h4>
592
+ <p>
593
+ The next or previous link returned can use the following Gallery Display Content parameters to control each element of the link:
594
+ </p>
595
+ <table>
596
+ <tr>
597
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_attributes</td>
598
+ <td>adds one or more HTML attributes to the hyperlink </td>
599
+ </tr>
600
+ <tr>
601
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_class</td>
602
+ <td><strong>adds</strong> one or more classes to those already defined for the hyperlink </td>
603
+ </tr>
604
+ <tr>
605
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_href</td>
606
+ <td>replaces the HTML &quot;href&quot; attribute in the hyperlink </td>
607
+ </tr>
608
+ <tr>
609
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_text</td>
610
+ <td>replaces the link text </td>
611
+ </tr>
612
+ <tr>
613
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_nolink_text</td>
614
+ <td>replaces the empty string displayed when there is no link and link text, e.g., no previous or next page link </td>
615
+ </tr>
616
+ <tr>
617
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_rollover_text</td>
618
+ <td>replaces the HTML &quot;title&quot; attribute in the hyperlink. This is the text displayed when the mouse rolls or hovers over the link text </td>
619
+ </tr>
620
+ <tr>
621
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_target</td>
622
+ <td>adds an HTML &quot;target&quot; attribute to the hyperlink </td>
623
+ </tr>
624
+ </table>
625
+ <h4>Markup Substitution Parameters for <code>next_page</code> and <code>previous_page</code> output types</h4>
626
+ <p>You can use any of the <a href="#mla_markup_parameters"><strong>Substitution parameters for markup templates</strong></a> in your next/previous page links (since the links are at the "gallery page" level, the attachment-specific substitution parameters are not available). The following additional substitution parameters are available for the <code>next_page</code> and <code>previous_page</code> output types:
627
+ </p>
628
+ <table>
629
+ <tr>
630
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">current_page</td>
631
+ <td>the number of the current page</td>
632
+ </tr>
633
+ <tr>
634
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">new_page</td>
635
+ <td>the number of the new (previous or next) page; zero for paginate_links</td>
636
+ </tr>
637
+ <tr>
638
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">last_page</td>
639
+ <td>the number of the last/highest/maximum page</td>
640
+ </tr>
641
+ <tr>
642
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">posts_per_page</td>
643
+ <td>the number of items on each gallery page</td>
644
+ </tr>
645
+ <tr>
646
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">found_rows</td>
647
+ <td>the number of items in the gallery</td>
648
+ </tr>
649
+ <tr>
650
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">current_offset</td>
651
+ <td>the number of items skipped before the current page</td>
652
+ </tr>
653
+ <tr>
654
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">new_offset</td>
655
+ <td>the number of items skipped before the new page</td>
656
+ </tr>
657
+ <tr>
658
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">current_page_text</td>
659
+ <td>'mla_paginate_current="[+current_page+]"'</td>
660
+ </tr>
661
+ <tr>
662
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">new_page_text</td>
663
+ <td>'mla_paginate_current="[+new_page+]"'</td>
664
+ </tr>
665
+ <tr>
666
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">last_page_text</td>
667
+ <td>'mla_paginate_total="[+last_page+]"'</td>
668
+ </tr>
669
+ <tr>
670
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">posts_per_page_text</td>
671
+ <td>'posts_per_page="[+posts_per_page+]"'</td>
672
+ </tr>
673
+ <tr>
674
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">scheme</td>
675
+ <td>the HTTP protocol used to access the page; usually "http://" but might be "https://"</td>
676
+ </tr>
677
+ <tr>
678
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">http_host</td>
679
+ <td>contents of the <em>Host:</em> header of the current request; usually a domain name such as "mysite.com" or an IP address</td>
680
+ </tr>
681
+ <tr>
682
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">request_uri</td>
683
+ <td>the URI given to access the page, e.g., "wordpress/2013/06/sample-post" or "wordpress/tag-gallery-page?attachment_tag=sample". MLA manages pagination by adding the "mla_paginate_current" query parameter to the URI value</td>
684
+ </tr>
685
+ <tr>
686
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">new_url</td>
687
+ <td>concatenation of scheme + http_host + request_uri</td>
688
+ </tr>
689
+ </table>
690
+ <h4>An example of the <code>next_page</code> and <code>previous_page</code> output types</h4>
691
+ <p>
692
+ Expanding the "attachment tag gallery" example, you can select images using the MLA Att. Tag taxonomy and divide the gallery into fixed-size pages. Following the main gallery shortcode are the previous/next page links:
693
+ </p>
694
+ <code>
695
+ [mla_gallery attachment_tag="sample" mla_caption="{+title+}" posts_per_page=10]
696
+ <br>&nbsp;<br>
697
+ &lt;div style="clear: both; float: left"&gt;<br />
698
+ [mla_gallery mla_output="previous_page,first" mla_link_text='&amp;larr; Previous Gallery Page' attachment_tag="sample" mla_rollover_text="Previous or first page for this tag"]<br>
699
+ &lt;/div&gt;<br>
700
+ &lt;div style="float: right"&gt;<br>
701
+ [mla_gallery mla_output="next_page,last" mla_link_text='&amp;larr; Next Gallery Page' attachment_tag="sample" mla_rollover_text="Next or last page for this tag"]<br>
702
+ &lt;/div&gt;
703
+ </code>
704
+ <p>
705
+ This example is simpler that the earlier single-item paging example because the "current page" handling is done by MLA, and the "sample" tag value is hard-coded. You could also develop a generic "Att. Tag" gallery page and pass the tag value in the URI for that page (as in the single-item pagination example earlier in this section).
706
+ </p>
707
  <a name="alt_shortcode"></a>
708
  &nbsp;
709
  <p>
828
  </tr>
829
  <tr>
830
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">itemwidth</td>
831
+ <td>shortcode parameter, default is calculated by dividing 100% by the number of columns and subtracting twice the margin value, e.g., 30.3% for three columns and a margin value of 1.5%. Can also contain other dimensional values such as '10px' or CSS-specific values like 'auto' or 'inherit'.</td>
832
  </tr>
833
  <tr>
834
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">margin</td>
835
+ <td>shortcode parameter, default = '1.5%'. Can also contain other dimensional values such as '10px' or CSS-specific values like 'auto' or 'inherit'.</td>
836
  </tr>
837
  <tr>
838
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">float</td>
888
  </tr>
889
  <tr>
890
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">itemwidth</td>
891
+ <td>shortcode parameter, default is calculated by dividing 100% by the number of columns and subtracting twice the margin value, e.g., 30.3% for three columns and a margin value of 1.5%. Can also contain other dimensional values such as '10px' or CSS-specific values like 'auto' or 'inherit'.</td>
892
  </tr>
893
  <tr>
894
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">margin</td>
895
+ <td>shortcode parameter, default = '1.5%'. Can also contain other dimensional values such as '10px' or CSS-specific values like 'auto' or 'inherit'.</td>
896
  </tr>
897
  <tr>
898
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">float</td>
916
  </tr>
917
  <tr>
918
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">base_dir</td>
919
+ <td>absolute (full) path to the upload directory, without trailing slash</td>
920
  </tr>
921
  </table>
922
  <a name="mla_attachment_parameters"></a>
931
  <td>starts at '1', incremented for each attachment in the gallery</td>
932
  </tr>
933
  <tr>
934
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">last_in_row</td>
935
+ <td>set to "last_in_row" for the last item in each full gallery row, and to an empty string for all other items in the row. If the gallery ends with a partial row, the last_in_row parameter is not set.</td>
936
+ </tr>
937
+ <tr>
938
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">caption</td>
939
  <td>if captiontag is not empty, contains caption/post_excerpt</td>
940
  </tr>
1388
  <td>WordPress attachment metadata, from the <em>_wp_attachment_metadata</em> array. Enter the field you want in the text box below the dropdown list. More coding guidelines are given below this table.</td>
1389
  </tr>
1390
  <tr>
1391
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">absolute_path</td>
1392
+ <td>complete path portion of the attachment file, e.g., C:/site/wordpress/wp-content/uploads/2012/11/</td>
1393
+ </tr>
1394
+ <tr>
1395
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">absolute_file_name</td>
1396
+ <td>complete path and file name of the attachment file, e.g., C:/site/wordpress/wp-content/uploads/2012/11/filename.ext</td>
1397
+ </tr>
1398
+ <tr>
1399
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">base_file</td>
1400
+ <td>relative path (within uploads directory) and file name of the attachment file, e.g., 2012/11/image.jpg</td>
1401
+ </tr>
1402
+ <tr>
1403
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">path</td>
1404
  <td>path portion of the base_file value, e.g., 2012/11/</td>
1405
  </tr>
1406
  <tr>
1407
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">file_name</td>
1408
+ <td>file name and extension portion of the base_file value, e.g., image.jpg</td>
1409
+ </tr>
1410
+ <tr>
1411
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">name_only</td>
1412
+ <td>file name portion of the base_file value, e.g., image</td>
1413
  </tr>
1414
  <tr>
1415
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">extension</td>
tpls/mla-option-templates.tpl CHANGED
@@ -567,9 +567,9 @@
567
  }
568
  #[+selector+] .gallery-item {
569
  float: [+float+];
570
- margin: [+margin+]%;
571
  text-align: center;
572
- width: [+itemwidth+]%;
573
  }
574
  #[+selector+] .gallery-item .gallery-icon img {
575
  border: 2px solid #cfcfcf;
@@ -588,7 +588,7 @@
588
  <!-- row-open -->
589
 
590
  <!-- template="default-item-markup" -->
591
- <[+itemtag+] class='gallery-item'>
592
  <[+icontag+] class='gallery-icon'>
593
  [+link+]
594
  </[+icontag+]>
567
  }
568
  #[+selector+] .gallery-item {
569
  float: [+float+];
570
+ margin: [+margin+];
571
  text-align: center;
572
+ width: [+itemwidth+];
573
  }
574
  #[+selector+] .gallery-item .gallery-icon img {
575
  border: 2px solid #cfcfcf;
588
  <!-- row-open -->
589
 
590
  <!-- template="default-item-markup" -->
591
+ <[+itemtag+] class='gallery-item [+last_in_row+]'>
592
  <[+icontag+] class='gallery-icon'>
593
  [+link+]
594
  </[+icontag+]>