PHP Class Bravo3\Orm\Drivers\Common\StandardIdValidator

Afficher le fichier Open project: bravo3/orm

Protected Properties

Свойство Type Description
$allowed_id_chars string[]

Méthodes publiques

Méthode Description
__construct ( array $allowed_id_chars = ['-', '+', '@', '.', ',', '_', '~', '/', '\'] )
validateId ( string $id ) : string[] Checks if a given entity ID is safe for the driver and returns an array of violation messages

Method Details

__construct() public méthode

public __construct ( array $allowed_id_chars = ['-', '+', '@', '.', ',', '_', '~', '/', '\'] )
$allowed_id_chars array

validateId() public méthode

The ID should be considered valid if the returned array is empty.
public validateId ( string $id ) : string[]
$id string
Résultat string[]

Property Details

$allowed_id_chars protected_oe property

protected string[] $allowed_id_chars
Résultat string[]