public function MigrateSourceReservation::__construct in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Simple initialization.
Parameters
SelectQueryInterface $query: The query we are iterating over.
array $fields: Optional - keys are field names, values are descriptions. Use to override the default descriptions, or to add additional source fields which the migration will add via other means (e.g., prepareRow()).
SelectQueryInterface $count_query: Optional - an explicit count query, primarily used when counting the primary query is slow.
boolean $options: Options applied to this source.
Overrides MigrateSourceSQL::__construct
File
- merci_migrate/
merci_reservation.inc, line 52
Class
Code
public function __construct() {
$query = db_select('node', 'n')
->condition('n.type', 'merci_reservation')
->condition('n.status', 1, '=')
->fields('n');
parent::__construct($query);
}