@@ 218-225 (lines=8) @@ | ||
215 | * @param string $message_type the message type slug |
|
216 | * @return boolean |
|
217 | */ |
|
218 | public function message_sent_for_attendee($attendee, $message_type) |
|
219 | { |
|
220 | $attendee_ID = EEM_Attendee::instance()->ensure_is_ID($attendee); |
|
221 | return $this->exists(array( |
|
222 | array( |
|
223 | 'Attendee.ATT_ID' => $attendee_ID, |
|
224 | 'MSG_message_type' => $message_type, |
|
225 | 'STS_ID' => array('IN', $this->stati_indicating_sent()), |
|
226 | ), |
|
227 | )); |
|
228 | } |
|
@@ 238-245 (lines=8) @@ | ||
235 | * @param string $message_type the message type slug |
|
236 | * @return boolean |
|
237 | */ |
|
238 | public function message_sent_for_registration($registration, $message_type) |
|
239 | { |
|
240 | $registrationID = EEM_Registration::instance()->ensure_is_ID($registration); |
|
241 | return $this->exists(array( |
|
242 | array( |
|
243 | 'Registration.REG_ID' => $registrationID, |
|
244 | 'MSG_message_type' => $message_type, |
|
245 | 'STS_ID' => array('IN', $this->stati_indicating_sent()), |
|
246 | ), |
|
247 | )); |
|
248 | } |