Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/grade/report/singleview/classes/local/ui/exclude.php

    r136 r1331  
    3636 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
    3737 */
    38 class exclude extends grade_attribute_format implements be_checked {
     38class exclude extends grade_attribute_format implements be_checked, be_disabled {
    3939
    4040    /** @var string $name The name of the input */
    4141    public $name = 'exclude';
     42
     43    /** @var bool $disabled Is the checkbox disabled? */
     44    public $disabled = false;
    4245
    4346    /**
     
    5154
    5255    /**
     56     * Is it disabled?
     57     *
     58     * @return bool
     59     */
     60    public function is_disabled() {
     61        return $this->disabled;
     62    }
     63
     64    /**
    5365     * Generate the element used to render the UI
    5466     *
     
    5971            $this->get_name(),
    6072            $this->get_label(),
    61             $this->is_checked()
     73            $this->is_checked(),
     74            $this->is_disabled()
    6275        );
    6376    }
Note: See TracChangeset for help on using the changeset viewer.