OEModule\OphCoMessaging\models\OphCoMessaging_Message_Comment::rules PHP Method

rules() public method

public rules ( ) : array
return array validation rules for model attributes.
    public function rules()
    {
        return array(array('comment_text', 'safe'), array('comment_text', 'required'), array('id, comment_text', 'safe', 'on' => 'search'));
    }