Horde_Kolab_Storage_Object::createEnvelope PHP 메소드

createEnvelope() 보호된 메소드

Generates a new MIME messages that will wrap a Kolab groupware object.
protected createEnvelope ( ) : Horde_Mime_Part
리턴 Horde_Mime_Part The new MIME message.
    protected function createEnvelope()
    {
        $envelope = new Horde_Mime_Part();
        $envelope->setName('Kolab Groupware Data');
        $envelope->setType('multipart/mixed');
        $description = new Horde_Mime_Part();
        $description->setName('Kolab Groupware Information');
        $description->setType('text/plain');
        $description->setDisposition('inline');
        $description->setCharset('utf-8');
        $description->setContents(sprintf(Horde_Kolab_Storage_Translation::t("This is a Kolab Groupware object. To view this object you will need an email client that understands the Kolab Groupware format. For a list of such email clients please visit %s"), 'http://www.kolab.org/content/kolab-clients'), array('encoding' => 'quoted-printable'));
        $envelope->addPart($description);
        return $envelope;
    }