PHP Interface Doctrine\OXM\Storage\Storage

Author: Richard Fullmer ([email protected])
Show file Open project: doctrine/oxm Interface Usage Examples

Public Methods

Method Description
delete ( ClassMetadataInfo $classMetadata, $id ) : boolean
exists ( ClassMetadataInfo $classMetadata, $id ) : boolean
insert ( ClassMetadataInfo $classMetadata, string $id, string $xmlContent ) : void Insert the XML into the storage system with a specific identifier
load ( ClassMetadataInfo $classMetadata, $id ) : string Load XML from storage
update ( ClassMetadataInfo $classMetadata, string $id, string $xmlContent ) : void Update the XML in the storage system with a specific identifier

Method Details

delete() public method

public delete ( ClassMetadataInfo $classMetadata, $id ) : boolean
$classMetadata Doctrine\OXM\Mapping\ClassMetadataInfo
$id
return boolean

exists() public method

public exists ( ClassMetadataInfo $classMetadata, $id ) : boolean
$classMetadata Doctrine\OXM\Mapping\ClassMetadataInfo
$id
return boolean

insert() public method

Insert the XML into the storage system with a specific identifier
public insert ( ClassMetadataInfo $classMetadata, string $id, string $xmlContent ) : void
$classMetadata Doctrine\OXM\Mapping\ClassMetadataInfo
$id string
$xmlContent string
return void

load() public method

Load XML from storage
public load ( ClassMetadataInfo $classMetadata, $id ) : string
$classMetadata Doctrine\OXM\Mapping\ClassMetadataInfo
$id
return string

update() public method

Update the XML in the storage system with a specific identifier
public update ( ClassMetadataInfo $classMetadata, string $id, string $xmlContent ) : void
$classMetadata Doctrine\OXM\Mapping\ClassMetadataInfo
$id string
$xmlContent string
return void