$this->getHighestCollectionId()+1, 'principaluri' => $username, 'displayname' => NULL, 'uri' => $uri, 'description' => NULL, 'synctoken' => 1, ]; $collection = array_merge($collection, $properties); return $collection; } public function newObject ($collectionId, $uri, $data, $extraData = NULL) { $object = [ 'id' => $this->getHighestObjectId($collectionId)+1, 'uri' => $uri, 'etag' => md5($data), 'size' => strlen($data), 'lastmodified' => time(), ]; return $object; } public function newObjectUpdate ($collectionId, $uri, $data, $extraData = NULL) { $update = [ 'etag' => md5($data), 'size' => strlen($data), 'lastmodified' => time(), ]; return $update; } }