You are here

public static function RoomsUnitMigration::unit_csvcolumns in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

1 call to RoomsUnitMigration::unit_csvcolumns()
RoomsUnitMigration::__construct in modules/rooms_unit/rooms_unit.migrate.inc
General initialization of a Migration object.

File

modules/rooms_unit/rooms_unit.migrate.inc, line 273
Class MigrateDestinationRoomsUnit.

Class

RoomsUnitMigration
Base Migration class that imports bookable units from a csv file.

Code

public static function unit_csvcolumns() {

  //'Row ID','Name','Base price','Default state','Bookable','Min sleeps','Max sleeps','Min children','Max children','Single beds','Double beds'
  $columns[0] = array(
    'row_id',
    'Row ID',
  );
  $columns[1] = array(
    'name',
    'Name',
  );
  $columns[2] = array(
    'base_price',
    'Base price',
  );
  $columns[3] = array(
    'default_state',
    'Default state',
  );
  $columns[4] = array(
    'bookable',
    'Default state',
  );
  $columns[5] = array(
    'min_sleeps',
    'Min sleeps',
  );
  $columns[6] = array(
    'max_sleeps',
    'Max sleeps',
  );
  $columns[7] = array(
    'min_children',
    'Min children',
  );
  $columns[8] = array(
    'max_children',
    'Max children',
  );
  $columns[9] = array(
    'singles',
    'Single beds',
  );
  $columns[10] = array(
    'doubles',
    'Double beds',
  );
  return $columns;
}