public function getSchedulingObjects($principalUri)
    {
        $stmt = $this->pdo->prepare('SELECT id, calendardata, uri, lastmodified, etag, size FROM '.$this->schedulingObjectTableName.' WHERE principaluri = ?');
        $stmt->execute([$principalUri]);

        $result = [];
        foreach ($stmt->fetchAll(\PDO::FETCH_ASSOC) as $row) {
            $result[] = [
                'calendardata' => $row['calendardata'],
                'uri' => $row['uri'],
                'lastmodified' => $row['lastmodified'],
                'etag' => '"'.$row['etag'].'"',
                'size' => (int) $row['size'],
            ];
        }

        return $result;
    }
public function getSchedulingObjects($principalUri)
    {
        $stmt = $this->pdo->prepare('SELECT id, calendardata, uri, lastmodified, etag, size FROM '.$this->schedulingObjectTableName.' WHERE principaluri = ?');
        $stmt->execute([$principalUri]);

        $result = [];
        foreach ($stmt->fetchAll(\PDO::FETCH_ASSOC) as $row) {
            $result[] = [
                'calendardata' => $row['calendardata'],
                'uri' => $row['uri'],
                'lastmodified' => $row['lastmodified'],
                'etag' => '"'.$row['etag'].'"',
                'size' => (int) $row['size'],
            ];
        }

        return $result;
    }
public function getSchedulingObjects ( $ principalUri ) { $ stmt = $ this -> pdo -> prepare ( 'SELECT id, calendardata, uri, lastmodified, etag, size FROM ' . $ this -> schedulingObjectTableName . ' WHERE principaluri = ?' ) ; $ stmt -> execute ( [ $ principalUri ] ) ; $ result = [ ] ; foreach ( $ stmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) as $ row ) { $ result [ ] = [ 'calendardata' => $ row [ 'calendardata' ] , 'uri' => $ row [ 'uri' ] , 'lastmodified' => $ row [ 'lastmodified' ] , 'etag' => '"' . $ row [ 'etag' ] . '"' , 'size' => ( int ) $ row [ 'size' ] , ] ; } return $ result ; }
Returns all scheduling objects for the inbox collection.

These objects should be returned as an array. Every item in the array
should follow the same structure as returned from getSchedulingObject.

The main difference is that 'calendardata' is optional.

@param string $principalUri

@return array
Returns all scheduling objects for the inbox collection .