eZPublishCommunityProject  2013.9
eZ\Bundle\EzPublishCoreBundle\ApiLoader\IOFactory Class Reference

Public Member Functions

 __construct (ConfigResolverInterface $configResolver, MimeTypeDetector $mimeTypeDetector)
 Constructs a new IOServiceFactory. More...
 
 getHandler ($handlerClass, $storageDirectorySetting)
 Returns an IOHandler instance. More...
 
 getService (IOHandlerInterface $IOHandler, $prefixSetting=false)
 Returns a new IOService instance with the config string in $prefixSetting as a prefix. More...
 

Protected Attributes

 $configResolver
 
 $IOServiceClass = 'eZ\\Publish\\Core\\IO\\IOService'
 
 $mimeTypeDetector
 

Constructor & Destructor Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\IOFactory::__construct ( ConfigResolverInterface  $configResolver,
MimeTypeDetector  $mimeTypeDetector 
)

Constructs a new IOServiceFactory.

Parameters
ConfigResolverInterface$configResolver
\eZ\Publish\SPI\IO\MimeTypeDetector$mimeTypeDetector

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\IOFactory::getHandler (   $handlerClass,
  $storageDirectorySetting 
)

Returns an IOHandler instance.

Parameters
$handlerClassThe IOHandler class to instanciate
string | array$storageDirectorySettingSetting(s) that build-up the storage directory
Returns
mixed
eZ\Bundle\EzPublishCoreBundle\ApiLoader\IOFactory::getService ( IOHandlerInterface  $IOHandler,
  $prefixSetting = false 
)

Returns a new IOService instance with the config string in $prefixSetting as a prefix.

Parameters
IOHandlerInterface$IOHandler
bool | string$prefixSetting
Returns

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\IOFactory::$configResolver
protected
eZ\Bundle\EzPublishCoreBundle\ApiLoader\IOFactory::$IOServiceClass = 'eZ\\Publish\\Core\\IO\\IOService'
protected
eZ\Bundle\EzPublishCoreBundle\ApiLoader\IOFactory::$mimeTypeDetector
protected

The documentation for this class was generated from the following file: