public static function view_submission_status($assignid) {

        $warnings = array();
        $params = array(
            'assignid' => $assignid,
        );
        $params = self::validate_parameters(self::view_submission_status_parameters(), $params);

        list($assign, $course, $cm, $context) = self::validate_assign($params['assignid']);

        \mod_assign\event\submission_status_viewed::create_from_assign($assign)->trigger();

        $result = array();
        $result['status'] = true;
        $result['warnings'] = $warnings;
        return $result;
    }
public static function view_submission_status($assignid) {

        $warnings = array();
        $params = array(
            'assignid' => $assignid,
        );
        $params = self::validate_parameters(self::view_submission_status_parameters(), $params);

        list($assign, $course, $cm, $context) = self::validate_assign($params['assignid']);

        \mod_assign\event\submission_status_viewed::create_from_assign($assign)->trigger();

        $result = array();
        $result['status'] = true;
        $result['warnings'] = $warnings;
        return $result;
    }
public static function view_submission_status ( $ assignid ) { $ warnings = array ( ) ; $ params = array ( 'assignid' => $ assignid , ) ; $ params = self :: validate_parameters ( self :: view_submission_status_parameters ( ) , $ params ) ; list ( $ assign , $ course , $ cm , $ context ) = self :: validate_assign ( $ params [ 'assignid' ] ) ; \ mod_assign \ event \ submission_status_viewed :: create_from_assign ( $ assign ) -> trigger ( ) ; $ result = array ( ) ; $ result [ 'status' ] = true ; $ result [ 'warnings' ] = $ warnings ; return $ result ; }
Trigger the submission status viewed event.

@param int $assignid assign instance id
@return array of warnings and status result
@since Moodle 3.1
Trigger the submission status viewed event .