This may be called before login or accessing any specific workspace.
With this, you can get some information without being logged in.
Must return at least the constants defined in \PHPCR\RepositoryInterface
Doc about each constant is found there. Implementations may add their
own constants.
The transport has to make sure the correct boolean values are set for
optional features. Jackalope will rely on the interface implementation,
but client code could check the descriptors and be confused if you
announce invalid capabilities here.
public getRepositoryDescriptors ( ) : array | ||
return | array | with name => value/array of value for the descriptors |
/** * {@inheritDoc} */ public function getRepositoryDescriptors() { return $this->transport->getRepositoryDescriptors(); }
/** * Load the descriptors into $this->descriptors * * Most of them come from the transport to allow for non-feature complete * transports. * * @return array Hashmap of descriptor names to descriptor values */ protected function loadDescriptors() { $this->descriptors = array_merge($this->jackalopeNotImplemented, $this->transport->getRepositoryDescriptors()); }
/** * Load the descriptors from the transport and cache them */ protected function loadDescriptors() { $this->descriptors = $this->transport->getRepositoryDescriptors(); }