reportType = "delivery-status"; } /** * Sets the property $name to $value. * * @throws ezcBasePropertyNotFoundException * if the property does not exist * @param string $name * @param mixed $value * @ignore */ public function __set( $name, $value ) { switch ( $name ) { case 'reportType': $this->properties[$name] = $value; $this->setHeader( 'Content-Type', 'multipart/' . $this->multipartType() . '; ' . 'report-type=' . $this->reportType . '; ' . 'boundary="' . $this->boundary . '"' ); break; default: return parent::__set( $name, $value ); break; } } /** * Returns the property $name. * * @throws ezcBasePropertyNotFoundException * if the property does not exist * @param string $name * @return mixed * @ignore */ public function __get( $name ) { switch ( $name ) { case 'reportType': return $this->properties[$name]; break; default: return parent::__get( $name ); break; } } /** * Returns true if the property $name is set, otherwise false. * * @param string $name * @return bool * @ignore */ public function __isset( $name ) { switch ( $name ) { case 'reportType': return isset( $this->properties[$name] ); default: return parent::__isset( $name ); } } /** * Appends a part to the list of parts. * * @param ezcMailPart $part */ public function appendPart( ezcMailPart $part ) { $this->parts[] = $part; } /** * Returns the mail parts associated with this multipart. * * @return array(ezcMailPart) */ public function getParts() { return $this->parts; } /** * Sets the readable $part of this report multipart. * * @param ezcMailPart $part */ public function setReadablePart( ezcMailPart $part ) { $this->parts[0] = $part; } /** * Returns the readable part of this multipart or null if there is no such part. * * @return ezcMailPart */ public function getReadablePart() { if ( isset( $this->parts[0] ) ) { return $this->parts[0]; } return null; } /** * Sets the machine $part of this report multipart. * * @param ezcMailPart $part */ public function setMachinePart( ezcMailPart $part ) { $this->parts[1] = $part; } /** * Returns the machine part of this multipart or null if there is no such part. * * @return ezcMailPart */ public function getMachinePart() { if ( isset( $this->parts[1] ) ) { return $this->parts[1]; } return null; } /** * Sets the original content $part of this report multipart. * * @param ezcMailPart $part */ public function setOriginalPart( ezcMailPart $part ) { $this->parts[2] = $part; } /** * Returns the original content part of this multipart or null if there is no such part. * * @return ezcMailPart */ public function getOriginalPart() { if ( isset( $this->parts[2] ) ) { return $this->parts[2]; } return null; } /** * Returns "report". * * @return string */ public function multipartType() { return "report"; } } ?>