function backup_migrate_item::from_array

cis7 backup_migrate_item::from_array($params)
cle7 backup_migrate_item::from_array($params)
elmsmedia7 backup_migrate_item::from_array($params)
icor7 backup_migrate_item::from_array($params)
meedjum_blog7 backup_migrate_item::from_array($params)
mooc7 backup_migrate_item::from_array($params)

Load an existing item from an array.

3 calls to backup_migrate_item::from_array()
backup_migrate_item::edit_form_submit in sites/all/modules/ulmus/backup_migrate/includes/
Submit the edit form for the item.
backup_migrate_item::load_row in sites/all/modules/ulmus/backup_migrate/includes/
Load an existing item from an database (serialized) array.
backup_migrate_item::__construct in sites/all/modules/ulmus/backup_migrate/includes/
Constructor, set the basic info pulled from the db or generated programatically.


sites/all/modules/ulmus/backup_migrate/includes/, line 268
CRUD functions for backup and migrate types (schedules, profiles etc.).


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


function from_array($params) {
  foreach ($params as $key => $value) {
    if (method_exists($this, 'set_' . $key)) {
      $this->{'set_' . $key}($value);
    else {
      $this->{$key} = $value;