public function config_read($name) {
        global $CFG;
        if (!empty($this->plugin)) {
            $value = get_config($this->plugin, $name);
            return $value === false ? NULL : $value;

        } else {
            if (isset($CFG->$name)) {
                return $CFG->$name;
            } else {
                return NULL;
            }
        }
    }
public function config_read($name) {
        global $CFG;
        if (!empty($this->plugin)) {
            $value = get_config($this->plugin, $name);
            return $value === false ? NULL : $value;

        } else {
            if (isset($CFG->$name)) {
                return $CFG->$name;
            } else {
                return NULL;
            }
        }
    }
public function config_read ( $ name ) { global $ CFG ; if ( ! empty ( $ this -> plugin ) ) { $ value = get_config ( $ this -> plugin , $ name ) ; return $ value === false ? NULL : $ value ; } else { if ( isset ( $ CFG -> $ name ) ) { return $ CFG -> $ name ; } else { return NULL ; } } }
Returns the config if possible

@return mixed returns config if successful else null
Returns the config if possible