You are here

function MerciHours::isLocked in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Returns whether the entity is locked, thus may not be deleted or renamed.

Entities provided in code are automatically treated as locked, as well as any fixed profile type.

File

merci_hours/includes/entity.inc, line 51

Class

MerciHours
Define a WorkCalendar object with its operations.

Code

function isLocked() {
  return isset($this->status) && empty($this->is_new) && ($this->status & ENTITY_IN_CODE || $this->status & ENTITY_FIXED);
}