src/wcmf/lib/config/impl/PersistenceActionKeyProvider.php
protected function getAllKeyValues() {
    $keys = [];
    // add temporary permission to allow to read entitys
    $this->isLoadingKeys = true;
    $permissionManager = ObjectFactory::getInstance('permissionManager');
    $tmpPerm = $permissionManager->addTempPermission($this->entityType, '', PersistenceAction::READ);
    $persistenceFacade = ObjectFactory::getInstance('persistenceFacade');
    $objects = $persistenceFacade->loadObjects($this->entityType, BuildDepth::SINGLE);
    $permissionManager->removeTempPermission($tmpPerm);
    $this->isLoadingKeys = false;
    foreach ($objects as $object) {
      $key = ActionKey::createKey(
              $object->getValue($this->valueMap['resource']),
              $object->getValue($this->valueMap['context']),
              $object->getValue($this->valueMap['action'])
            );
      $keys[$key] = $object->getValue($this->valueMap['value']);
    }
    return $keys;
  }
protected function getAllKeyValues() {
    $keys = [];
    // add temporary permission to allow to read entitys
    $this->isLoadingKeys = true;
    $permissionManager = ObjectFactory::getInstance('permissionManager');
    $tmpPerm = $permissionManager->addTempPermission($this->entityType, '', PersistenceAction::READ);
    $persistenceFacade = ObjectFactory::getInstance('persistenceFacade');
    $objects = $persistenceFacade->loadObjects($this->entityType, BuildDepth::SINGLE);
    $permissionManager->removeTempPermission($tmpPerm);
    $this->isLoadingKeys = false;
    foreach ($objects as $object) {
      $key = ActionKey::createKey(
              $object->getValue($this->valueMap['resource']),
              $object->getValue($this->valueMap['context']),
              $object->getValue($this->valueMap['action'])
            );
      $keys[$key] = $object->getValue($this->valueMap['value']);
    }
    return $keys;
  }
protected function getAllKeyValues ( ) { $ keys = [ ] ; // add temporary permission to allow to read entitys $ this -> isLoadingKeys = true ; $ permissionManager = ObjectFactory :: getInstance ( 'permissionManager' ) ; $ tmpPerm = $ permissionManager -> addTempPermission ( $ this -> entityType , '' , PersistenceAction :: READ ) ; $ persistenceFacade = ObjectFactory :: getInstance ( 'persistenceFacade' ) ; $ objects = $ persistenceFacade -> loadObjects ( $ this -> entityType , BuildDepth :: SINGLE ) ; $ permissionManager -> removeTempPermission ( $ tmpPerm ) ; $ this -> isLoadingKeys = false ; foreach ( $ objects as $ object ) { $ key = ActionKey :: createKey ( $ object -> getValue ( $ this -> valueMap [ 'resource' ] ) , $ object -> getValue ( $ this -> valueMap [ 'context' ] ) , $ object -> getValue ( $ this -> valueMap [ 'action' ] ) ) ; $ keys [ $ key ] = $ object -> getValue ( $ this -> valueMap [ 'value' ] ) ; } return $ keys ; }
Get all key values from the storage
@return Associative array with action keys as keys
Get all key values from the storage