You are here

function backup_migrate_item::get_list_row in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/crud.inc \backup_migrate_item::get_list_row()
  2. 8.3 includes/crud.inc \backup_migrate_item::get_list_row()
  3. 6.2 includes/crud.inc \backup_migrate_item::get_list_row()
  4. 7.3 includes/crud.inc \backup_migrate_item::get_list_row()
  5. 7.2 includes/crud.inc \backup_migrate_item::get_list_row()

Get a row of data to be used in a list of items of this type.

2 calls to backup_migrate_item::get_list_row()
backup_migrate_location::get_list_row in includes/locations.inc
Get a row of data to be used in a list of items of this type.
backup_migrate_schedule::get_list_row in includes/schedules.inc
Get a row of data to be used in a list of items of this type.
2 methods override backup_migrate_item::get_list_row()
backup_migrate_location::get_list_row in includes/locations.inc
Get a row of data to be used in a list of items of this type.
backup_migrate_schedule::get_list_row in includes/schedules.inc
Get a row of data to be used in a list of items of this type.

File

includes/crud.inc, line 754
CRUD functions for backup and migrate types (schedules, profiles etc.).

Class

backup_migrate_item
A base class for items which can be stored in the database, listed, edited, deleted etc.

Code

function get_list_row() {
  $out = array();
  foreach ($this
    ->get_list_column_info() as $key => $col) {
    $out[$key] = empty($col['html']) ? check_plain($this
      ->get($key)) : $this
      ->get($key);
    if (isset($col['class'])) {
      $out[$key] = array(
        'data' => $out[$key],
        'class' => $col['class'],
      );
    }
  }
  return $out;
}