Overview

Packages

  • awl
    • caldav-client-v2
    • RRule
  • davical
    • authentication
      • drivers
    • caldav
    • DAViCalSession
    • DAVTicket
    • external-bind
    • feed
    • HTTPAuthSession
    • iSchedule
    • iSchedule-POST
    • logging
    • metrics
    • Principal
    • propfind
    • PublicSession
    • Request
    • Resource
    • tzservice
  • None

Functions

  • add_failure
  • check_for_expansion
  • component_to_xml
  • controlRequestContainer
  • delete_collection
  • deliverItipCancel
  • display_status
  • do_scheduling_for_delete
  • do_scheduling_reply
  • do_scheduling_requests
  • doImipMessage
  • doItipAttendeeReply
  • doItipOrganizerCancel
  • export_iCalendar
  • GetItip
  • GetTZID
  • handle_cancel_request
  • handle_freebusy_request
  • handle_schedule_reply
  • handle_schedule_request
  • import_addressbook_collection
  • import_calendar_collection
  • import_collection
  • late_catch_fatal_error
  • logRequestHeaders
  • obfuscated_event
  • process_ace
  • processItipCancel
  • property_response
  • public_events_only
  • rollback
  • rollback_on_error
  • send_dav_header
  • simple_write_resource
  • write_alarms
  • write_attendees
  • write_resource
  • Overview
  • Package
  • Function
  • Tree
  • Deprecated
  • Todo

Function write_resource

Actually write the resource to the database. All checking of whether this is reasonable should be done before this is called.

Package: davical\caldav
Copyright: Morphoss Ltd - http://www.morphoss.com/
License: GNU GPL v2 or later version
Author: Andrew McMillan andrew@morphoss.com
Located at caldav-PUT-functions.php
Parameters summary
DAVResource $resource The resource being written
string $caldav_data The actual data to be written
DAVResource $collection The collection containing the resource being written
integer $author The user_no who wants to put this resource on the server
string & $etag An etag unique for this event
string $put_action_type INSERT or UPDATE depending on what we are to do
boolean $caldav_context True, if we are responding via CalDAV, false for other ways of calling this
string $log_action = true 'INSERT' or 'UPDATE': the type of action we are doing
boolean $weak_etag = null $log_action Whether to log the fact that we are writing this into an action log (if configured)
string $weak_etag,… An etag that is NOT modified on ATTENDEE changes for this event
Return value summary
boolean True for success, false for failure.
DAViCal API documentation generated by ApiGen