248. TypeRepository

Type repository for validation of user-defined types

248.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    248.2. Global Functions

    248.2.1. TypeRepository

    Constructor, defines the known types.

    Return value

    • void

    248.2.2. enum_validator

    Generic enumerated type validator.

    Function parameters

    • list values

    • string value

    Return value

    • boolean - true if successful

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

    248.2.4. regex_validator

    Generic regular expression validator.

    Function parameters

    • string regex

    • string value

    Return value

    • boolean - true if successful

    248.3. Global Variables

    248.4. Module Requirements

    248.4.1. Module Imports

    • Address
    • Hostname
    • IP
    • Netmask
    • URL

    248.4.2. Module Includes