258. TypeRepository

Type repository for validation of user-defined types

258.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    258.2. Global Functions

    258.2.1. TypeRepository

    Constructor, defines the known types.

    Return value

    • void

    258.2.2. enum_validator

    Generic enumerated type validator.

    Function parameters

    • list values

    • string value

    Return value

    • boolean - true if successful

    258.2.3. is_a

    Validate, that the given value is of given type.

    Function parameters

    • any value

    • string type

    Return value

    • boolean - true, if the value can be considered to be of a given type

    258.2.4. regex_validator

    Generic regular expression validator.

    Function parameters

    • string regex

    • string value

    Return value

    • boolean - true if successful

    258.3. Global Variables

    258.4. Module Requirements

    258.4.1. Module Imports

    • Address
    • Hostname
    • IP
    • Netmask
    • URL

    258.4.2. Module Includes