PHP Class Tools\Model\Entity\Entity

Inheritance: extends Cake\ORM\Entity
Afficher le fichier Open project: dereuromark/cakephp-tools Class Usage Examples

Méthodes publiques

Méthode Description
enum ( string | array | null $value, array $options, string | null $default = null ) : string | array The main method for any enumeration, should be called statically Now also supports reordering/filtering

Method Details

enum() public static méthode

The main method for any enumeration, should be called statically Now also supports reordering/filtering
public static enum ( string | array | null $value, array $options, string | null $default = null ) : string | array
$value string | array | null Integer or array of keys or NULL for complete array result
$options array Options
$default string | null Default value
Résultat string | array