Example #1
0
 /** 
  * REQUIRED if displaying checkboxes or using bulk actions! The 'cb' column
  * is given special treatment when columns are processed. It ALWAYS needs to
  * have it's own method.
  * 
  * @see WP_List_Table::::single_row_columns()
  * 
  * @param array $item 
  * 		A singular item (one full row's worth of data)
  * 
  * @return string 
  * 		Text to be placed inside the column <td> (movie title only)
  */
 public function column_cb($item)
 {
     return sprintf('<input type="checkbox" name="%1$s[]" value="%2$s" />', $this->definition->singularName(), $this->definition->getCheckboxValue($item));
 }