"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/CalDAV/Backend/PDO.php" between
dav-4.0.2.tar.gz and dav-4.0.3.tar.gz

About: sabre/dav is a WebDAV framework for PHP allowing to create WebDAV, CalDAV and CardDAV servers.

PDO.php  (dav-4.0.2):PDO.php  (dav-4.0.3)
skipping to change at line 877 skipping to change at line 877
calendar_instances.uri AS calendaruri, calendarobjects.uri as objecturi calendar_instances.uri AS calendaruri, calendarobjects.uri as objecturi
FROM FROM
$this->calendarObjectTableName AS calendarobjects $this->calendarObjectTableName AS calendarobjects
LEFT JOIN LEFT JOIN
$this->calendarInstancesTableName AS calendar_instances $this->calendarInstancesTableName AS calendar_instances
ON calendarobjects.calendarid = calendar_instances.calendarid ON calendarobjects.calendarid = calendar_instances.calendarid
WHERE WHERE
calendar_instances.principaluri = ? calendar_instances.principaluri = ?
AND AND
calendarobjects.uid = ? calendarobjects.uid = ?
AND
calendar_instances.access = 1
SQL; SQL;
$stmt = $this->pdo->prepare($query); $stmt = $this->pdo->prepare($query);
$stmt->execute([$principalUri, $uid]); $stmt->execute([$principalUri, $uid]);
if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) { if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
return $row['calendaruri'].'/'.$row['objecturi']; return $row['calendaruri'].'/'.$row['objecturi'];
} }
} }
skipping to change at line 1289 skipping to change at line 1291
*/ */
public function deleteSchedulingObject($principalUri, $objectUri) public function deleteSchedulingObject($principalUri, $objectUri)
{ {
$stmt = $this->pdo->prepare('DELETE FROM '.$this->schedulingObjectTableN ame.' WHERE principaluri = ? AND uri = ?'); $stmt = $this->pdo->prepare('DELETE FROM '.$this->schedulingObjectTableN ame.' WHERE principaluri = ? AND uri = ?');
$stmt->execute([$principalUri, $objectUri]); $stmt->execute([$principalUri, $objectUri]);
} }
/** /**
* Creates a new scheduling object. This should land in a users' inbox. * Creates a new scheduling object. This should land in a users' inbox.
* *
* @param string $principalUri * @param string $principalUri
* @param string $objectUri * @param string $objectUri
* @param string $objectData * @param string|resource $objectData
*/ */
public function createSchedulingObject($principalUri, $objectUri, $objectDat a) public function createSchedulingObject($principalUri, $objectUri, $objectDat a)
{ {
$stmt = $this->pdo->prepare('INSERT INTO '.$this->schedulingObjectTableN ame.' (principaluri, calendardata, uri, lastmodified, etag, size) VALUES (?, ?, ?, ?, ?, ?)'); $stmt = $this->pdo->prepare('INSERT INTO '.$this->schedulingObjectTableN ame.' (principaluri, calendardata, uri, lastmodified, etag, size) VALUES (?, ?, ?, ?, ?, ?)');
if (is_resource($objectData)) {
$objectData = stream_get_contents($objectData);
}
$stmt->execute([$principalUri, $objectData, $objectUri, time(), md5($obj ectData), strlen($objectData)]); $stmt->execute([$principalUri, $objectData, $objectUri, time(), md5($obj ectData), strlen($objectData)]);
} }
/** /**
* Updates the list of shares. * Updates the list of shares.
* *
* @param mixed $calendarId * @param mixed $calendarId
* @param \Sabre\DAV\Xml\Element\Sharee[] $sharees * @param \Sabre\DAV\Xml\Element\Sharee[] $sharees
*/ */
public function updateInvites($calendarId, array $sharees) public function updateInvites($calendarId, array $sharees)
 End of changes. 3 change blocks. 
3 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)