getRepositoryDescriptors() публичный Метод

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.
См. также: http://www.day.com/specs/jcr/2.0/24_Repository_Compliance.html#24.2%20Repository%20Descriptors
См. также: RepositoryInterface
public getRepositoryDescriptors ( ) : array
Результат array with name => value/array of value for the descriptors
 /**
  * {@inheritDoc}
  */
 public function getRepositoryDescriptors()
 {
     return $this->transport->getRepositoryDescriptors();
 }
Пример #2
0
 /**
  * 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());
 }
Пример #3
0
 /**
  * Load the descriptors from the transport and cache them
  */
 protected function loadDescriptors()
 {
     $this->descriptors = $this->transport->getRepositoryDescriptors();
 }