PHP Class ZF\Apigility\Admin\Model\DoctrineAdapterModel

显示文件 Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Property Type Description
$globalConfig ZF\Configuration\ConfigResource
$localConfig ZF\Configuration\ConfigResource

Public Methods

Method 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

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

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

create() public method

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

fetch() public method

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

fetchAll() public method

Retrieve all named adapters
public fetchAll ( ) : array | boolean
return array | boolean

remove() public method

Remove a named adapter
public remove ( $name ) : boolean
$name
return boolean

update() public method

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

Property Details

$globalConfig protected_oe property

protected ConfigResource,ZF\Configuration $globalConfig
return ZF\Configuration\ConfigResource

$localConfig protected_oe property

protected ConfigResource,ZF\Configuration $localConfig
return ZF\Configuration\ConfigResource