234. TypeRepository

Type repository for validation of user-defined types

234.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    234.2. Global Functions

    234.2.1. TypeRepository

    Constructor, defines the known types.

    Return value

    • void

    234.2.2. enum_validator

    Generic enumerated type validator.

    Function parameters

    • list values

    • string value

    Return value

    • boolean - true if successful

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

    234.2.4. regex_validator

    Generic regular expression validator.

    Function parameters

    • string regex

    • string value

    Return value

    • boolean - true if successful

    234.3. Global Variables

    234.4. Module Requirements

    234.4.1. Module Imports

    • Address
    • Hostname
    • IP
    • Netmask
    • URL

    234.4.2. Module Includes