public function set_excluded($state) {
        if (empty($this->excluded) and $state) {
            $this->excluded = time();
            $this->update();
            return true;

        } else if (!empty($this->excluded) and !$state) {
            $this->excluded = 0;
            $this->update();
            return true;
        }
        return false;
    }
public function set_excluded($state) {
        if (empty($this->excluded) and $state) {
            $this->excluded = time();
            $this->update();
            return true;

        } else if (!empty($this->excluded) and !$state) {
            $this->excluded = 0;
            $this->update();
            return true;
        }
        return false;
    }
public function set_excluded ( $ state ) { if ( empty ( $ this -> excluded ) and $ state ) { $ this -> excluded = time ( ) ; $ this -> update ( ) ; return true ; } else if ( ! empty ( $ this -> excluded ) and ! $ state ) { $ this -> excluded = 0 ; $ this -> update ( ) ; return true ; } return false ; }
Set the excluded status of grade

@param bool $state requested excluded state
@return bool True is database state changed
Set the excluded status of grade