public function is_own_form($userid = null) {
        global $USER;

        if (!$this->is_form_defined()) {
            return null;
        }
        if (is_null($userid)) {
            $userid = $USER->id;
        }
        return ($this->definition->usercreated == $userid);
    }
public function is_own_form($userid = null) {
        global $USER;

        if (!$this->is_form_defined()) {
            return null;
        }
        if (is_null($userid)) {
            $userid = $USER->id;
        }
        return ($this->definition->usercreated == $userid);
    }
public function is_own_form ( $ userid = null ) { global $ USER ; if ( ! $ this -> is_form_defined ( ) ) { return null ; } if ( is_null ( $ userid ) ) { $ userid = $ USER -> id ; } return ( $ this -> definition -> usercreated == $ userid ) ; }
Is the grading form owned by the given user?

The form owner is the user who created this instance of the form.

@param int $userid the user id to check, defaults to the current user
@return boolean|null null if the form not defined yet, boolean otherwise
Is the grading form owned by the given user?