Open Journal Systems  3.3.0
EmailTemplate.inc.php
1 <?php
2 
17 class EmailTemplate extends DataObject {
18 
19  //
20  // Get/set methods
21  //
22 
28  function getAssocId() {
29  return $this->getData('contextId');
30  }
31 
37  function setAssocId($assocId) {
38  $this->setData('contextId', $assocId);
39  }
40 
47  function isCustomTemplate() {
48  return false;
49  }
50 
55  function getFromRoleId() {
56  return $this->getData('fromRoleId');
57  }
58 
64  function setFromRoleId($fromRoleId) {
65  $this->setData('fromRoleId', $fromRoleId);
66  }
67 
72  function getToRoleId() {
73  return $this->getData('toRoleId');
74  }
75 
81  function setToRoleId($toRoleId) {
82  $this->setData('toRoleId', $toRoleId);
83  }
84 
90  function getEmailId() {
91  return $this->getData('id');
92  }
93 
99  function setEmailId($emailId) {
100  $this->setData('id', $emailId);
101  }
102 
108  function getEmailKey() {
109  return $this->getData('key');
110  }
111 
117  function setEmailKey($key) {
118  $this->setData('key', $key);
119  }
120 
126  function getEnabled() {
127  return $this->getData('enabled');
128  }
129 
135  function setEnabled($enabled) {
136  $this->setData('enabled', $enabled);
137  }
138 
144  function getCanDisable() {
145  return $this->getData('canDisable');
146  }
147 
153  function setCanDisable($canDisable) {
154  $this->setData('canDisable', $canDisable);
155  }
156 
162  function getSubject() {
163  return $this->getData('subject');
164  }
165 
171  function setSubject($subject) {
172  $this->setData('subject', $subject);
173  }
174 
180  function getBody() {
181  return $this->getData('body');
182  }
183 
189  function setBody($body) {
190  $this->setData('body', $body);
191  }
192 }
193 
194 
DataObject\getData
& getData($key, $locale=null)
Definition: DataObject.inc.php:100
EmailTemplate\getCanDisable
getCanDisable()
Definition: EmailTemplate.inc.php:144
EmailTemplate\setCanDisable
setCanDisable($canDisable)
Definition: EmailTemplate.inc.php:153
EmailTemplate\setFromRoleId
setFromRoleId($fromRoleId)
Definition: EmailTemplate.inc.php:64
DataObject
Any class with an associated DAO should extend this class.
Definition: DataObject.inc.php:18
EmailTemplate\setEnabled
setEnabled($enabled)
Definition: EmailTemplate.inc.php:135
EmailTemplate\getEnabled
getEnabled()
Definition: EmailTemplate.inc.php:126
EmailTemplate\setSubject
setSubject($subject)
Definition: EmailTemplate.inc.php:171
EmailTemplate\getToRoleId
getToRoleId()
Definition: EmailTemplate.inc.php:72
EmailTemplate\getEmailKey
getEmailKey()
Definition: EmailTemplate.inc.php:108
EmailTemplate\setEmailKey
setEmailKey($key)
Definition: EmailTemplate.inc.php:117
EmailTemplate\getFromRoleId
getFromRoleId()
Definition: EmailTemplate.inc.php:55
EmailTemplate\setToRoleId
setToRoleId($toRoleId)
Definition: EmailTemplate.inc.php:81
EmailTemplate
Describes basic email template properties.
Definition: EmailTemplate.inc.php:17
EmailTemplate\setBody
setBody($body)
Definition: EmailTemplate.inc.php:189
EmailTemplate\isCustomTemplate
isCustomTemplate()
Definition: EmailTemplate.inc.php:47
EmailTemplate\getEmailId
getEmailId()
Definition: EmailTemplate.inc.php:90
EmailTemplate\setAssocId
setAssocId($assocId)
Definition: EmailTemplate.inc.php:37
EmailTemplate\getBody
getBody()
Definition: EmailTemplate.inc.php:180
EmailTemplate\getSubject
getSubject()
Definition: EmailTemplate.inc.php:162
EmailTemplate\setEmailId
setEmailId($emailId)
Definition: EmailTemplate.inc.php:99
DataObject\setData
setData($key, $value, $locale=null)
Definition: DataObject.inc.php:132
EmailTemplate\getAssocId
getAssocId()
Definition: EmailTemplate.inc.php:28