# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/lib/grade/grade_item.php --- moodle/lib/grade/grade_item.php Base (1.130.2.34) +++ moodle/lib/grade/grade_item.php Locally Modified (Based On 1.130.2.34) @@ -215,12 +215,6 @@ var $decimals = null; /** - * 0 if visible, 1 always hidden or date not visible until - * @var int $hidden - */ - var $hidden = 0; - - /** * Grade item lock flag. Empty if not locked, locked if any value present, usually date when item was locked. Locking prevents updating. * @var int $locked */ @@ -559,38 +553,13 @@ } /** - * Returns the hidden state of this grade_item - * @return boolean hidden state - */ - function is_hidden() { - return ($this->hidden == 1 or ($this->hidden != 0 and $this->hidden > time())); - } - - /** - * Check grade hidden status. Uses data from both grade item and grade. - * @return boolean true if hiddenuntil, false if not - */ - function is_hiddenuntil() { - return $this->hidden > 1; - } - - /** - * Check grade item hidden status. - * @return int 0 means visible, 1 hidden always, timestamp hidden until - */ - function get_hidden() { - return $this->hidden; - } - - /** * Set the hidden status of grade_item and all grades, 0 mean visible, 1 always hidden, number means date to hide until. * @param int $hidden new hidden status * @param boolean $cascade apply to child objects too * @return void */ function set_hidden($hidden, $cascade=false) { - $this->hidden = $hidden; - $this->update(); + parent::set_hidden($hidden, $cascade); if ($cascade) { if ($grades = grade_grade::fetch_all(array('itemid'=>$this->id))) {