You are here

function backup_migrate_item::create in Backup and Migrate 6.3

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

Create a new items with the given input. Doesn't load the parameters, but could use them to determine what type to create.

2 calls to backup_migrate_item::create()
backup_migrate_item::all_items in includes/crud.inc
Get all of the given items.
backup_migrate_location::create in includes/locations.inc
Create a new location of the correct type.
1 method overrides backup_migrate_item::create()
backup_migrate_location::create in includes/locations.inc
Create a new location of the correct type.

File

includes/crud.inc, line 897
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 create($params = array()) {
  $type = get_class($this);
  return new $type($params);
}