PHP Class Jackalope\Repository

Inheritance: implements PHPCR\RepositoryInterface
Show file Open project: jackalope/jackalope Class Usage Examples

Protected Properties

Property Type Description
$binaryStreamWrapperRegistered flag to call stream_wrapper_register only once
$descriptors array Cached array of repository descriptors. Each is either a string or an array of strings.
$factory jackalope\FactoryInterface The factory to instantiate objects
$jackalopeNotImplemented
$options array List of supported options
$transport Jackalope\Transport\TransportInterface The transport to use

Public Methods

Method Description
__construct ( jackalope\FactoryInterface $factory = null, Jackalope\Transport\TransportInterface $transport, array $options = null ) Create repository with the option to overwrite the factory and bound to a transport.
getDescriptor ( $key ) {@inheritDoc}
getDescriptorKeys ( ) {@inheritDoc}
isStandardDescriptor ( $key ) {@inheritDoc}
login ( PHPCR\CredentialsInterface $credentials = null, $workspaceName = null ) {@inheritDoc}

Protected Methods

Method Description
loadDescriptors ( ) : array Load the descriptors into $this->descriptors

Method Details

__construct() public method

Use RepositoryFactoryDoctrineDBAL or RepositoryFactoryJackrabbit to instantiate this class.
public __construct ( jackalope\FactoryInterface $factory = null, Jackalope\Transport\TransportInterface $transport, array $options = null )
$factory jackalope\FactoryInterface the object factory to use. If this is null, the \Jackalope\Factory is instantiated. Note that the repository is the only class accepting null as factory.
$transport Jackalope\Transport\TransportInterface transport implementation
$options array defines optional features to enable/disable (see $options property)

getDescriptor() public method

{@inheritDoc}
public getDescriptor ( $key )

getDescriptorKeys() public method

{@inheritDoc}
public getDescriptorKeys ( )

isStandardDescriptor() public method

{@inheritDoc}
public isStandardDescriptor ( $key )

loadDescriptors() protected method

Most of them come from the transport to allow for non-feature complete transports.
protected loadDescriptors ( ) : array
return array Hashmap of descriptor names to descriptor values

login() public method

{@inheritDoc}
public login ( PHPCR\CredentialsInterface $credentials = null, $workspaceName = null )
$credentials PHPCR\CredentialsInterface

Property Details

$binaryStreamWrapperRegistered protected static property

flag to call stream_wrapper_register only once
protected static $binaryStreamWrapperRegistered

$descriptors protected property

Cached array of repository descriptors. Each is either a string or an array of strings.
protected array $descriptors
return array

$factory protected property

The factory to instantiate objects
protected FactoryInterface,jackalope $factory
return jackalope\FactoryInterface

$jackalopeNotImplemented protected property

protected $jackalopeNotImplemented

$options protected property

List of supported options
protected array $options
return array

$transport protected property

The transport to use
protected TransportInterface,Jackalope\Transport $transport
return Jackalope\Transport\TransportInterface