Exemple #1
0
    public function deleteAllBookings() {
        //Comprovaci� de seguretat
        if (!SecurityUtil::checkPermission('IWbookings::', "::", ACCESS_ADMIN)) {
            LogUtil::registerError($this->__('You are not allowed to administrate the bookings'));
            return false;
        }
        DbUtil::deleteWhere('IWbookings', 'true');

        // Success
        return true;
    }