class merci_handler_field_merci_reservation_status in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Same name and namespace in other branches
- 6.2 handlers/merci_handler_field.inc \merci_handler_field_merci_reservation_status
- 7.2 handlers/merci_handler_field.inc \merci_handler_field_merci_reservation_status
Reservation status.
Hierarchy
- class \merci_handler_field_merci_reservation_status extends \views_handler_field
Expanded class hierarchy of merci_handler_field_merci_reservation_status
1 string reference to 'merci_handler_field_merci_reservation_status'
- merci_views_data in ./
merci.views.inc - Implementation of hook_views_data().
File
- handlers/
merci_handler_field.inc, line 60
View source
class merci_handler_field_merci_reservation_status extends views_handler_field {
function construct() {
parent::construct();
// TODO: does this need an alias?
$this->additional_fields['status'] = 'status';
}
function query() {
$this
->ensure_my_table();
$this
->add_additional_fields();
}
function render($values) {
parent::render($values);
$statuses = merci_record_status();
$status = $values->{$this->aliases['status']};
return $statuses[$status];
}
}