Esempio n. 1
0
 /**
  * Constructor. Optionally (and by default) attempts to fetch corresponding row from the database
  *
  * @param array $params An array with required parameters for this grade object.
  * @param bool $fetch Whether to fetch corresponding row from the database or not,
  *        optional fields might not be defined if false used
  */
 public function __construct($params = null, $fetch = true)
 {
     global $CFG;
     // Set grademax from $CFG->gradepointdefault .
     self::set_properties($this, array('grademax' => $CFG->gradepointdefault));
     parent::__construct($params, $fetch);
 }