PHP Класс ZF\Apigility\TableGatewayAbstractFactory

Наследование: implements Zend\ServiceManager\AbstractFactoryInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : Zend\Db\TableGateway\TableGateway Create and return the requested table gateway instance.
canCreate ( Interop\Container\ContainerInterface $container, string $requestedName ) : boolean Can this factory create the requested table gateway?
canCreateServiceWithName ( Zend\ServiceManager\ServiceLocatorInterface $container, string $name, string $requestedName ) : boolean Can this factory create the requested table gateway? (v2)
createServiceWithName ( Zend\ServiceManager\ServiceLocatorInterface $container, string $name, string $requestedName ) : Zend\Db\TableGateway\TableGateway Create and return the requested table gateway instance (v2).

Защищенные методы

Метод Описание
getAdapterFromConfig ( array $config, Interop\Container\ContainerInterface $container ) : Zend\Db\Adapter\AdapterInterface Retrieve a zend-db adapter via provided configuration.
getEntityFromConfig ( array $config, string $requestedName ) : string Retrieve the configured entity.
getHydratorFromConfig ( array $config, Interop\Container\ContainerInterface $container ) : Zend\Hydrator\HydratorInterface Retrieve the configured hydrator.
isValidConfig ( array $config, Interop\Container\ContainerInterface $container ) : boolean Is the configuration valid?

Описание методов

__invoke() публичный Метод

Create and return the requested table gateway instance.
public __invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : Zend\Db\TableGateway\TableGateway
$container Interop\Container\ContainerInterface
$requestedName string
$options array
Результат Zend\Db\TableGateway\TableGateway

canCreate() публичный Метод

Can this factory create the requested table gateway?
public canCreate ( Interop\Container\ContainerInterface $container, string $requestedName ) : boolean
$container Interop\Container\ContainerInterface
$requestedName string
Результат boolean

canCreateServiceWithName() публичный Метод

Provided for backwards compatibility; proxies to canCreate().
public canCreateServiceWithName ( Zend\ServiceManager\ServiceLocatorInterface $container, string $name, string $requestedName ) : boolean
$container Zend\ServiceManager\ServiceLocatorInterface
$name string
$requestedName string
Результат boolean

createServiceWithName() публичный Метод

Provided for backwards compatibility; proxies to __invoke().
public createServiceWithName ( Zend\ServiceManager\ServiceLocatorInterface $container, string $name, string $requestedName ) : Zend\Db\TableGateway\TableGateway
$container Zend\ServiceManager\ServiceLocatorInterface
$name string
$requestedName string
Результат Zend\Db\TableGateway\TableGateway

getAdapterFromConfig() защищенный Метод

If the configuration defines an adapter_name and a matching service is discovered, that will be returned. If the Adapter service is present, that will be returned (zend-mvc v2). Otherwise, the AdapterInterface service is returned.
protected getAdapterFromConfig ( array $config, Interop\Container\ContainerInterface $container ) : Zend\Db\Adapter\AdapterInterface
$config array
$container Interop\Container\ContainerInterface
Результат Zend\Db\Adapter\AdapterInterface

getEntityFromConfig() защищенный Метод

If configuration defines an entity_class, and the class exists, that value is returned; if no configuration is provided, stdClass is returned.
protected getEntityFromConfig ( array $config, string $requestedName ) : string
$config array
$requestedName string
Результат string Class name of entity

getHydratorFromConfig() защищенный Метод

If configuration defines a hydrator_name, that service will be retrieved from the HydratorManager; otherwise ArraySerializable will be retrieved.
protected getHydratorFromConfig ( array $config, Interop\Container\ContainerInterface $container ) : Zend\Hydrator\HydratorInterface
$config array
$container Interop\Container\ContainerInterface
Результат Zend\Hydrator\HydratorInterface

isValidConfig() защищенный Метод

Is the configuration valid?
protected isValidConfig ( array $config, Interop\Container\ContainerInterface $container ) : boolean
$config array
$container Interop\Container\ContainerInterface
Результат boolean