Jackalope\Transport\DoctrineDBAL\Client::getNamespaces PHP Method

getNamespaces() public method

{@inheritDoc}
public getNamespaces ( )
    public function getNamespaces()
    {
        return (array) $this->getNamespacesObject();
    }

Usage Example

示例#1
0
 /**
  * {@inheritDoc}
  */
 public function getNamespaces()
 {
     if (empty($this->namespaces)) {
         $cacheKey = 'namespaces';
         $result = $this->caches['meta']->fetch($cacheKey);
         if ($result) {
             $this->namespaces = $result;
         } else {
             $this->namespaces = parent::getNamespaces();
             $this->caches['meta']->save($cacheKey, $this->namespaces);
         }
     }
     return $this->namespaces;
 }
All Usage Examples Of Jackalope\Transport\DoctrineDBAL\Client::getNamespaces