public function updateCalendarObject($calendarId, $objectUri, $calendarData)
    {
        $stmt = $this->pdo->prepare('UPDATE simple_calendarobjects SET calendardata = ? WHERE calendarid = ? AND uri = ?');
        $stmt->execute([$calendarData, $calendarId, $objectUri]);

        return '"'.md5($calendarData).'"';
    }
public function updateCalendarObject($calendarId, $objectUri, $calendarData)
    {
        $stmt = $this->pdo->prepare('UPDATE simple_calendarobjects SET calendardata = ? WHERE calendarid = ? AND uri = ?');
        $stmt->execute([$calendarData, $calendarId, $objectUri]);

        return '"'.md5($calendarData).'"';
    }
public function updateCalendarObject ( $ calendarId , $ objectUri , $ calendarData ) { $ stmt = $ this -> pdo -> prepare ( 'UPDATE simple_calendarobjects SET calendardata = ? WHERE calendarid = ? AND uri = ?' ) ; $ stmt -> execute ( [ $ calendarData , $ calendarId , $ objectUri ] ) ; return '"' . md5 ( $ calendarData ) . '"' ; }
Updates an existing calendarobject, based on it's uri.

The object uri is only the basename, or filename and not a full path.

It is possible return an etag from this function, which will be used in
the response to this PUT request. Note that the ETag must be surrounded
by double-quotes.

However, you should only really return this ETag if you don't mangle the
calendar-data. If the result of a subsequent GET to this object is not
the exact same as this request body, you should omit the ETag.

@param mixed  $calendarId
@param string $objectUri
@param string $calendarData

@return string|null
Updates an existing calendarobject based on it s uri .