dmBridge PHP API
DMEmailMessage.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 # Copyright © 2009, 2010 Board of Regents of the Nevada System of Higher
00005 # Education, on behalf of the University of Nevada, Las Vegas
00006 #
00007 
00012 class DMEmailMessage implements DMMailable {
00013 
00017    private $from_name, $from_email, $recipient_email, $subject, $body;
00018 
00023    public final function getEmailBody() {
00024       return $this->body;
00025    }
00026 
00031    public final function setEmailBody($text) {
00032       $this->body = $text;
00033    }
00034 
00039    public final function getEmailFromEmail() {
00040       return $this->from_email;
00041    }
00042 
00047    public final function setEmailFromEmail($email) {
00048       $this->from_email = $email;
00049    }
00050 
00055    public final function getEmailFromName() {
00056       return $this->from_name;
00057    }
00058 
00063    public final function setEmailFromName($str) {
00064       $this->from_name = $str;
00065    }
00066 
00071    public final function getEmailRecipientEmail() {
00072       return $this->recipient_email;
00073    }
00074 
00079    public final function setEmailRecipientEmail($email) {
00080       $this->recipient_email = $email;
00081    }
00082 
00087    public final function getEmailSenderName() {
00088       return $this->sender_name;
00089    }
00090 
00095    public final function setEmailSenderName($name) {
00096       if (!empty($name)) {
00097          $this->sender_name = DMString::websafe(substr($name, 0, 100));
00098       }
00099       else {
00100          $this->sender_name = "Anonymous";
00101       }
00102    }
00103 
00108    public final function getEmailSubject() {
00109       return $this->subject;
00110    }
00111 
00116    public final function setEmailSubject($str) {
00117       $this->subject = $str;
00118    }
00119 
00120 }
 All Data Structures Functions Variables