/** * Return list of pending reservations for object. Each item in the list is an array with the following elements * * * @param array $pa_options No options are currently supported * @return array A list of pending reservations, or null if not object is loaded */ public function getCheckoutReservations($pa_options = null) { if (!($vn_object_id = $this->getPrimaryKey())) { return null; } $t_checkout = new ca_object_checkouts(); $va_reservations = $t_checkout->objectHasReservations($vn_object_id); $vb_is_reserved = is_array($va_reservations) && sizeof($va_reservations); return $vb_is_reserved ? $va_reservations : array(); }