OEModule\OphCoMessaging\components\MessageCreator::getEventType PHP Method

getEventType() protected method

protected getEventType ( ) : CActiveRecord
return CActiveRecord
    protected function getEventType()
    {
        $eventType = \EventType::model()->findByAttributes(array('class_name' => 'OphCoMessaging'));
        if (!$eventType) {
            throw new \CDbException('Event Type for messaging not found');
        }
        return $eventType;
    }