phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
BaseEnum Class Reference

Base class for enums see at http://stackoverflow.com/questions/254514/php-and-enumerations. More...

+ Inheritance diagram for BaseEnum:

Static Public Member Functions

static getConstants ()
 
static getConstantValues ($postFix="", $prefixBefore=false)
 
static isValidName ($name, $strict=false)
 
static isValidValue ($value)
 
static getRandomValue (bool $unique=false)
 

Static Private Attributes

static $constCacheArray = NULL
 
static $picked = []
 

Detailed Description

Base class for enums see at http://stackoverflow.com/questions/254514/php-and-enumerations.

Author
jc

Definition at line 11 of file BaseEnum.php.

Member Function Documentation

◆ getConstants()

static getConstants ( )
static

Definition at line 17 of file BaseEnum.php.

◆ getConstantValues()

static getConstantValues (   $postFix = "",
  $prefixBefore = false 
)
static

Definition at line 29 of file BaseEnum.php.

◆ getRandomValue()

static getRandomValue ( bool  $unique = false)
static

Definition at line 61 of file BaseEnum.php.

◆ isValidName()

static isValidName (   $name,
  $strict = false 
)
static

Definition at line 45 of file BaseEnum.php.

◆ isValidValue()

static isValidValue (   $value)
static

Definition at line 56 of file BaseEnum.php.

Field Documentation

◆ $constCacheArray

$constCacheArray = NULL
staticprivate

Definition at line 13 of file BaseEnum.php.

◆ $picked

$picked = []
staticprivate

Definition at line 15 of file BaseEnum.php.


The documentation for this class was generated from the following file: