Beispiel #1
0
 /**
  * Delete all loans associated with a itemtype
  * @param the itemtype
  * @return nothing
  */
 public static function deleteLoans($itemtype)
 {
     $reservation_item = new ReservationItem();
     foreach ($reservation_item->find("`itemtype`='{$itemtype}'") as $data) {
         $reservation_item->delete($data);
     }
 }