_NGG_Images_List_Table

Construtor class to create the table layout.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/ngglegacy/admin/manage-images.php  
  1. class _NGG_Images_List_Table extends WP_List_Table { 
  2. var $_screen; 
  3. var $_columns; 
  4.  
  5. function __construct($screen) 
  6. if ( is_string( $screen ) ) 
  7. $screen = convert_to_screen( $screen ); 
  8.  
  9. $this->_screen = $screen; 
  10. $this->_columns = array() ; 
  11.  
  12. add_filter( 'manage_' . $screen->id . '_columns', array( &$this, 'get_columns' ), 0 ); 
  13.  
  14. function get_column_info() { 
  15.  
  16. $columns = get_column_headers( $this->_screen ); 
  17. $hidden = get_hidden_columns( $this->_screen ); 
  18. $_sortable = $this->get_sortable_columns(); 
  19. $sortable = array(); 
  20.  
  21. foreach ( $_sortable as $id => $data ) { 
  22. if ( empty( $data ) ) 
  23. continue; 
  24.  
  25. $data = (array) $data; 
  26. if ( !isset( $data[1] ) ) 
  27. $data[1] = false; 
  28.  
  29. $sortable[$id] = $data; 
  30.  
  31. return array( $columns, $hidden, $sortable ); 
  32.  
  33. // define the columns to display, the syntax is 'internal name' => 'display name' 
  34. function get_columns() { 
  35. $columns = array(); 
  36.  
  37. $columns['cb'] = '<input name="checkall" type="checkbox" onclick="checkAll(document.getElementById(\'updategallery\'));" />'; 
  38. $columns['id'] = __('ID'); 
  39. $columns['thumbnail'] = __('Thumbnail', 'nggallery'); 
  40. $columns['filename'] = __('Filename', 'nggallery'); 
  41. $columns['alt_title_desc'] = __('Alt & Title Text', 'nggallery') . ' / ' . __('Description', 'nggallery'); 
  42. $columns['tags'] = __('Tags (comma separated list)', 'nggallery'); 
  43. $columns = apply_filters('ngg_manage_images_columns', $columns); 
  44.  
  45. return $columns; 
  46.  
  47. function get_sortable_columns() { 
  48. return array(); 
  49.  
  50. function the_list() 
  51.