public function addReport($report)
    {
        $report = (array) $report;

        foreach ($report as $r) {
            if (!preg_match('/^{([^}]*)}(.*)$/', $r)) {
                throw new DAV\Exception('Reportname must be in clark-notation');
            }
            $this->reports[] = $r;
        }
    }
public function addReport($report)
    {
        $report = (array) $report;

        foreach ($report as $r) {
            if (!preg_match('/^{([^}]*)}(.*)$/', $r)) {
                throw new DAV\Exception('Reportname must be in clark-notation');
            }
            $this->reports[] = $r;
        }
    }
public function addReport ( $ report ) { $ report = ( array ) $ report ; foreach ( $ report as $ r ) { if ( ! preg_match ( '/^{([^}]*)}(.*)$/' , $ r ) ) { throw new DAV \ Exception ( 'Reportname must be in clark-notation' ) ; } $ this -> reports [ ] = $ r ; } }
Adds a report to this property.

The report must be a string in clark-notation.
Multiple reports can be specified as an array.

@param mixed $report
Adds a report to this property .