215. ProductFeatures

Product features

215.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    215.2. Global Functions

    215.2.1. Export

    Exports the current set of ProductFeatures

    Return value

    • map <string, map <string, any> > - features

    215.2.2. GetBooleanFeature

    Get value of a feature

    Function parameters

    • string section

    • string feature

    Return value

    • boolean - the feature value

    215.2.3. GetFeature

    Get value of a feature

    Function parameters

    • string section

    • string feature

    Return value

    • any - the feature value

    215.2.4. GetSection

    Get a complete section for evaluation

    Function parameters

    • string section_name

    Return value

    • map<string,any> - a map key->value, options in the section

    215.2.5. GetStringFeature

    Get value of a feature

    Function parameters

    • string section

    • string feature

    Return value

    • string - the feature value

    215.2.6. Import

    Imports product features

    Function parameters

    • map <string, map <string, any> > import_settings

    Return value

    • void

    215.2.7. InitIfNeeded

    Initialize the features structure if needed Either read from /etc/YaST2/ProductFeatures or set default values

    Return value

    • void

    215.2.8. Restore

    Restore product features in running system

    Return value

    • void

    215.2.9. Save

    Save product features

    Return value

    • void

    215.2.10. SetBooleanFeature

    Set value of a feature

    Function parameters

    • string section

    • string feature

    • boolean value

    Return value

    • void

    215.2.11. SetFeature

    Set value of a feature

    Function parameters

    • string section

    • string feature

    • any value

    Return value

    • void

    215.2.12. SetSection

    Set a feature section Default values will be used where value not defined

    Function parameters

    • string section_name

    • map<string,any> section_map

    Return value

    • void

    215.2.13. SetStringFeature

    Set value of a feature

    Function parameters

    • string section

    • string feature

    • string value

    Return value

    • void

    215.3. Global Variables

    215.4. Module Requirements

    215.4.1. Module Imports

    • Misc
    • Mode
    • Stage

    215.4.2. Module Includes