public function backup_migrate_item::get_list_row in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/crud.inc \backup_migrate_item::get_list_row()
- 8.3 includes/crud.inc \backup_migrate_item::get_list_row()
- 6.3 includes/crud.inc \backup_migrate_item::get_list_row()
- 6.2 includes/crud.inc \backup_migrate_item::get_list_row()
- 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 756 - 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.
Code
public 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;
}