public function determine_format() {
        if (!$this->grade->grade_item->is_overridable_item()) {
            return new empty_element();
        }
        return new checkbox_attribute(
            $this->get_name(),
            $this->get_label(),
            $this->is_checked(),
            $this->is_disabled()
        );
    }
public function determine_format() {
        if (!$this->grade->grade_item->is_overridable_item()) {
            return new empty_element();
        }
        return new checkbox_attribute(
            $this->get_name(),
            $this->get_label(),
            $this->is_checked(),
            $this->is_disabled()
        );
    }
public function determine_format ( ) { if ( ! $ this -> grade -> grade_item -> is_overridable_item ( ) ) { return new empty_element ( ) ; } return new checkbox_attribute ( $ this -> get_name ( ) , $ this -> get_label ( ) , $ this -> is_checked ( ) , $ this -> is_disabled ( ) ) ; }
Generate the element for this form input.

@return element
Generate the element for this form input .