PHP Class Bravo3\Orm\Drivers\Common\StandardIdValidator

Datei anzeigen Open project: bravo3/orm

Protected Properties

Property Type Description
$allowed_id_chars string[]

Public Methods

Method 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 method

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

validateId() public method

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

Property Details

$allowed_id_chars protected_oe property

protected string[] $allowed_id_chars
return string[]