You are here

merci_line_item_handler_field_line_item_title.inc in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

File

merci_line_item/includes/views/handlers/merci_line_item_handler_field_line_item_title.inc
View source
<?php

/**
 * Field handler to return a line item's title.
 */
class merci_line_item_handler_field_line_item_title extends views_handler_field {
  function construct() {
    parent::construct();
    $this->additional_fields['line_item_id'] = 'line_item_id';
  }
  function query() {
    $this
      ->ensure_my_table();
    $this
      ->add_additional_fields();
  }
  function render($values) {

    // Load the line item and return its title.
    $line_item_id = $this
      ->get_value($values, 'line_item_id');
    $line_item = merci_line_item_load($line_item_id);
    return merci_line_item_title($line_item);
  }

}

Classes

Namesort descending Description
merci_line_item_handler_field_line_item_title Field handler to return a line item's title.