281. TypeRepository

Type repository for validation of user-defined types

281.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    281.2. Global Functions

    281.2.1. TypeRepository

    Constructor, defines the known types.

    Return value

    • void

    281.2.2. enum_validator

    Generic enumerated type validator.

    Function parameters

    • list values

    • string value

    Return value

    • boolean - true if successful

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

    281.2.4. regex_validator

    Generic regular expression validator.

    Function parameters

    • string regex

    • string value

    Return value

    • boolean - true if successful

    281.3. Global Variables

    281.4. Module Requirements

    281.4.1. Module Imports

    • Address
    • Hostname
    • IP
    • Netmask
    • URL

    281.4.2. Module Includes