public function getSchedulingObject($principalUri, $objectUri)
    {
        $stmt = $this->pdo->prepare('SELECT uri, calendardata, lastmodified, etag, size FROM '.$this->schedulingObjectTableName.' WHERE principaluri = ? AND uri = ?');
        $stmt->execute([$principalUri, $objectUri]);
        $row = $stmt->fetch(\PDO::FETCH_ASSOC);

        if (!$row) {
            return null;
        }

        return [
            'uri' => $row['uri'],
            'calendardata' => $row['calendardata'],
            'lastmodified' => $row['lastmodified'],
            'etag' => '"'.$row['etag'].'"',
            'size' => (int) $row['size'],
         ];
    }
public function getSchedulingObject($principalUri, $objectUri)
    {
        $stmt = $this->pdo->prepare('SELECT uri, calendardata, lastmodified, etag, size FROM '.$this->schedulingObjectTableName.' WHERE principaluri = ? AND uri = ?');
        $stmt->execute([$principalUri, $objectUri]);
        $row = $stmt->fetch(\PDO::FETCH_ASSOC);

        if (!$row) {
            return null;
        }

        return [
            'uri' => $row['uri'],
            'calendardata' => $row['calendardata'],
            'lastmodified' => $row['lastmodified'],
            'etag' => '"'.$row['etag'].'"',
            'size' => (int) $row['size'],
         ];
    }
public function getSchedulingObject ( $ principalUri , $ objectUri ) { $ stmt = $ this -> pdo -> prepare ( 'SELECT uri, calendardata, lastmodified, etag, size FROM ' . $ this -> schedulingObjectTableName . ' WHERE principaluri = ? AND uri = ?' ) ; $ stmt -> execute ( [ $ principalUri , $ objectUri ] ) ; $ row = $ stmt -> fetch ( \ PDO :: FETCH_ASSOC ) ; if ( ! $ row ) { return null ; } return [ 'uri' => $ row [ 'uri' ] , 'calendardata' => $ row [ 'calendardata' ] , 'lastmodified' => $ row [ 'lastmodified' ] , 'etag' => '"' . $ row [ 'etag' ] . '"' , 'size' => ( int ) $ row [ 'size' ] , ] ; }
Returns a single scheduling object.

The returned array should contain the following elements:
* uri - A unique basename for the object. This will be used to
construct a full uri.
* calendardata - The iCalendar object
* lastmodified - The last modification date. Can be an int for a unix
timestamp, or a PHP DateTime object.
* etag - A unique token that must change if the object changed.
* size - The size of the object, in bytes.

@param string $principalUri
@param string $objectUri

@return array
Returns a single scheduling object .