249. SquidACL

249.1. Authors

    249.2. 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

      249.3. Global Functions

      249.3.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>

      249.3.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>

      249.3.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

      249.3.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

      249.3.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>

      249.3.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

      249.4. Global Variables

      249.5. Module Requirements

      249.5.1. Module Imports

        249.5.2. Module Includes

        • squid/SquidACL_local_functions.ycp