/** * Parse the iCal and output into the browser. * * @param bool $headers Should the headers be set? (Use false if you're debugging). */ public function parse($headers = true) { // set headers if ((bool) $headers) { \SpoonHTTP::setHeaders('Content-Disposition: inline; filename=' . CommonUri::getUrl($this->getTitle()) . '.ics'); } // call the parent parent::parse($headers); }
/** * This property defines the status code returned for a scheduling request * * @return void * @param string $code The requestStatus code * @param string[optional] $description A short Description. */ public function setRequestStatus($code, $description = null) { if ($this->rstatus == null) { $this->rstatus = array(); } $status = array('code' => $code); if ($description !== null) { $status['description'] = SpoonICal::formatString($description); } $this->rstatus[] = $status; }