You are here

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

File

merci_reservation/includes/entity.inc
View source
<?php

/**
* Task class.
*/
class MerciReservation extends Entity {
  protected function defaultLabel() {
    if (property_exists($this, 'id')) {
      return "Checkout " . $this->id;
    }
    return "Checkout";
  }
  protected function defaultUri() {
    $entity_info = $this
      ->entityInfo();
    return array(
      'path' => $entity_info['admin ui']['path'] . '/' . $this->id,
    );
  }

}

Classes

Namesort descending Description
MerciReservation Task class.