PHP Class ZF\Apigility\Admin\Model\DoctrineAdapterModel

Afficher le fichier Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Свойство Type Description
$globalConfig ZF\Configuration\ConfigResource
$localConfig ZF\Configuration\ConfigResource

Méthodes publiques

Méthode Description
__construct ( ZF\Configuration\ConfigResource $globalConfig, ZF\Configuration\ConfigResource $localConfig )
create ( $name, array $adapterConfig ) : ZF\Apigility\Admin\Model\DoctrineAdapterEntity Create Doctrine adapter configuration
fetch ( $name ) : boolean | ZF\Apigility\Admin\Model\DoctrineAdapterEntity Fetch configuration details for a named adapter
fetchAll ( ) : array | boolean Retrieve all named adapters
remove ( $name ) : boolean Remove a named adapter
update ( $name, array $adapterConfig ) : ZF\Apigility\Admin\Model\DoctrineAdapterEntity Update an existing Doctrine adapter

Private Methods

Méthode Description
isOdmAdapter ( array $connection ) : boolean Does the connection represent an ODM adapter?
isOrmAdapter ( array $connection ) : boolean Does the connection represent an ORM adapter?

Method Details

__construct() public méthode

public __construct ( ZF\Configuration\ConfigResource $globalConfig, ZF\Configuration\ConfigResource $localConfig )
$globalConfig ZF\Configuration\ConfigResource
$localConfig ZF\Configuration\ConfigResource

create() public méthode

Create Doctrine adapter configuration
public create ( $name, array $adapterConfig ) : ZF\Apigility\Admin\Model\DoctrineAdapterEntity
$name
$adapterConfig array
Résultat ZF\Apigility\Admin\Model\DoctrineAdapterEntity

fetch() public méthode

Fetch configuration details for a named adapter
public fetch ( $name ) : boolean | ZF\Apigility\Admin\Model\DoctrineAdapterEntity
$name
Résultat boolean | ZF\Apigility\Admin\Model\DoctrineAdapterEntity

fetchAll() public méthode

Retrieve all named adapters
public fetchAll ( ) : array | boolean
Résultat array | boolean

remove() public méthode

Remove a named adapter
public remove ( $name ) : boolean
$name
Résultat boolean

update() public méthode

Update an existing Doctrine adapter
public update ( $name, array $adapterConfig ) : ZF\Apigility\Admin\Model\DoctrineAdapterEntity
$name
$adapterConfig array
Résultat ZF\Apigility\Admin\Model\DoctrineAdapterEntity

Property Details

$globalConfig protected_oe property

protected ConfigResource,ZF\Configuration $globalConfig
Résultat ZF\Configuration\ConfigResource

$localConfig protected_oe property

protected ConfigResource,ZF\Configuration $localConfig
Résultat ZF\Configuration\ConfigResource