public function rules()
{
return array(array('event_id, for_the_attention_of_user_id, message_type_id, urgent, message_text, marked_as_read', 'safe'), array('for_the_attention_of_user_id, message_type_id, message_text, ', 'required'), array('id, event_id, for_the_attention_of_user_id, message_type_id, urgent, message_text, marked_as_read', 'safe', 'on' => 'search'));
}