public function get_active_controller() {
        if ($gradingmethod = $this->get_active_method()) {
            $controller = $this->get_controller($gradingmethod);
            if ($controller->is_form_available()) {
                return $controller;
            }
        }
        return null;
    }
public function get_active_controller() {
        if ($gradingmethod = $this->get_active_method()) {
            $controller = $this->get_controller($gradingmethod);
            if ($controller->is_form_available()) {
                return $controller;
            }
        }
        return null;
    }
public function get_active_controller ( ) { if ( $ gradingmethod = $ this -> get_active_method ( ) ) { $ controller = $ this -> get_controller ( $ gradingmethod ) ; if ( $ controller -> is_form_available ( ) ) { return $ controller ; } } return null ; }
Returns the controller for the active method if it is available

@return null|gradingform_controller
Returns the controller for the active method if it is available