public function add($setting) {
        if (!($setting instanceof admin_setting)) {
            debugging('error - not a setting instance');
            return false;
        }

        $name = $setting->name;
        if ($setting->plugin) {
            $name = $setting->plugin . $name;
        }
        $this->settings->{$name} = $setting;
        return true;
    }
public function add($setting) {
        if (!($setting instanceof admin_setting)) {
            debugging('error - not a setting instance');
            return false;
        }

        $name = $setting->name;
        if ($setting->plugin) {
            $name = $setting->plugin . $name;
        }
        $this->settings->{$name} = $setting;
        return true;
    }
public function add ( $ setting ) { if ( ! ( $ setting instanceof admin_setting ) ) { debugging ( 'error - not a setting instance' ) ; return false ; } $ name = $ setting -> name ; if ( $ setting -> plugin ) { $ name = $ setting -> plugin . $ name ; } $ this -> settings -> { $ name } = $ setting ; return true ; }
adds an admin_setting to this admin_settingpage

not the same as add for admin_category. adds an admin_setting to this admin_settingpage. settings appear (on the settingpage) in the order in which they're added
n.b. each admin_setting in an admin_settingpage must have a unique internal name

@param object $setting is the admin_setting object you want to add
@return bool true if successful, false if not
adds an admin_setting to this admin_settingpage