@@ 189-196 (lines=8) @@ | ||
186 | * @param string $message_type the message type slug |
|
187 | * @return boolean |
|
188 | */ |
|
189 | public function message_sent_for_attendee( $attendee, $message_type ) { |
|
190 | $attendee_ID = EEM_Attendee::instance()->ensure_is_ID( $attendee ); |
|
191 | return $this->exists( array( array( |
|
192 | 'Attendee.ATT_ID' => $attendee_ID, |
|
193 | 'MSG_message_type' => $message_type, |
|
194 | 'STS_ID' => array( 'IN', $this->stati_indicating_sent() ) |
|
195 | ) ) ); |
|
196 | } |
|
197 | ||
198 | ||
199 | ||
@@ 207-214 (lines=8) @@ | ||
204 | * @param string $message_type the message type slug |
|
205 | * @return boolean |
|
206 | */ |
|
207 | public function message_sent_for_registration( $registration, $message_type ) { |
|
208 | $registrationID = EEM_Registration::instance()->ensure_is_ID( $registration ); |
|
209 | return $this->exists( array( array( |
|
210 | 'Registration.REG_ID' => $registrationID, |
|
211 | 'MSG_message_type' => $message_type, |
|
212 | 'STS_ID' => array( 'IN', $this->stati_indicating_sent() ) |
|
213 | ) ) ); |
|
214 | } |
|
215 | ||
216 | ||
217 |