PHP Class ZF\Apigility\Admin\Model\ValidatorMetadataModel

Exibir arquivo Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Property Type Description
$defaults array Default validator options available to all validators
$metadataConfig array Unprocessed validator metadata configuration
$processedMetadata array Processed validator metadata configuration; merges values from $defaults into each validator.

Public Methods

Method Description
__construct ( array $metadata = [] )
fetch ( string $plugin ) : array Fetch metadata for a single validator
fetchAll ( ) : array Fetch all known validator plugins and their metadata

Protected Methods

Method Description
processMetadata ( ) : array Process metadata

Method Details

__construct() public method

public __construct ( array $metadata = [] )
$metadata array

fetch() public method

Returns $defaults if the plugin is unknown
public fetch ( string $plugin ) : array
$plugin string
return array

fetchAll() public method

Fetch all known validator plugins and their metadata
public fetchAll ( ) : array
return array

processMetadata() protected method

If $defaults is non-empty, the values are merged into the metadata for each validator prior to being returned.
protected processMetadata ( ) : array
return array

Property Details

$defaults protected_oe property

Default validator options available to all validators
protected array $defaults
return array

$metadataConfig protected_oe property

Unprocessed validator metadata configuration
protected array $metadataConfig
return array

$processedMetadata protected_oe property

Processed validator metadata configuration; merges values from $defaults into each validator.
protected array $processedMetadata
return array