251. SquidACL

251.1. Summary of Module Globals

List of Global Functions

  • GetOptions - Returns values from widget as list of options in correct form to store them into Squid module.

  • GetTypesToComboBox - Returns list of terms in form: [ `item(`id(key), acl_map[key]["name"]:""), `item(... ) ] Returned list is preferably to place in UI::ComboBox as list of all available types of ACLs.

  • InitWidget - Initialize widget of acl identified by id_acl_type. If id_item is not nil, function initialize widgets by default values from module Squid.

  • Replace - Replace widget with id widget_id by widget acl_map[id_acl_type]["widget"].

  • SupportedACLs - Returns list of supported ACLs. It's necessary to have saved unsupported ACLs but do not handle with them.

  • Verify - This function call verification function joined with acl type identified by id_acl_type. Returns return value of verification function.

List of Global Variables

    251.2. Global Functions

    251.2.1. GetOptions

    Returns values from widget as list of options in correct form to store them into Squid module.

    Function parameters

    • string id_acl_type

    Return value

    • list<string>

    251.2.2. GetTypesToComboBox

    Returns list of terms in form: [ `item(`id(key), acl_map[key]["name"]:""), `item(... ) ] Returned list is preferably to place in UI::ComboBox as list of all available types of ACLs.

    Return value

    • list<term>

    251.2.3. InitWidget

    Initialize widget of acl identified by id_acl_type. If id_item is not nil, function initialize widgets by default values from module Squid.

    Function parameters

    • string id_acl_type

    • integer id_item

    • any help_widget_id

    Return value

    • void

    251.2.4. Replace

    Replace widget with id widget_id by widget acl_map[id_acl_type]["widget"].

    Function parameters

    • any widget_id

    • string id_acl_type

    Return value

    • void

    251.2.5. SupportedACLs

    Returns list of supported ACLs. It's necessary to have saved unsupported ACLs but do not handle with them.

    Return value

    • list<string>

    251.2.6. Verify

    This function call verification function joined with acl type identified by id_acl_type. Returns return value of verification function.

    Function parameters

    • string id_acl_type

    Return value

    • boolean

    251.3. Global Variables

    251.4. Module Requirements

    251.4.1. Module Imports

      251.4.2. Module Includes

      • squid/SquidACL_local_functions.ycp