PHP Class ZF\Apigility\Admin\Model\ContentNegotiationModel

Mostra file Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Property Type Description
$globalConfig ZF\Configuration\ConfigResource

Public Methods

Method Description
__construct ( ZF\Configuration\ConfigResource $globalConfig )
create ( mixed $name, array $contentConfig ) : ZF\Apigility\Admin\Model\ContentNegotiationEntity Create Content Negotiation configuration
fetch ( string $name ) : ZF\Apigility\Admin\Model\ContentNegotiationEntity | false Fetch configuration details for a named adapter
fetchAll ( ) : array Retrieve all content negotiations
remove ( string $name ) : true Remove a Content Negotiation
update ( string $name, array $contentConfig ) : ZF\Apigility\Admin\Model\ContentNegotiationEntity Update an existing Content Negotiation

Method Details

__construct() public method

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

create() public method

Create Content Negotiation configuration
public create ( mixed $name, array $contentConfig ) : ZF\Apigility\Admin\Model\ContentNegotiationEntity
$name mixed
$contentConfig array
return ZF\Apigility\Admin\Model\ContentNegotiationEntity

fetch() public method

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

fetchAll() public method

Retrieve all content negotiations
public fetchAll ( ) : array
return array

remove() public method

Remove a Content Negotiation
public remove ( string $name ) : true
$name string
return true

update() public method

Update an existing Content Negotiation
public update ( string $name, array $contentConfig ) : ZF\Apigility\Admin\Model\ContentNegotiationEntity
$name string
$contentConfig array
return ZF\Apigility\Admin\Model\ContentNegotiationEntity

Property Details

$globalConfig protected_oe property

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