Пример #1
0
 /**
  * Retrieve all Objects stored in this storage.
  *
  * @return array<\TYPO3\Flow\Resource\Storage\Object>
  * @api
  */
 public function getObjects()
 {
     $objects = array();
     foreach ($this->resourceManager->getCollectionsByStorage($this) as $collection) {
         $objects = array_merge($objects, $this->getObjectsByCollection($collection));
     }
     return $objects;
 }
 /**
  * Retrieve all Objects stored in this storage.
  *
  * @param callable $callback Function called after each iteration
  * @return \Generator<Object>
  */
 public function getObjects(callable $callback = null)
 {
     foreach ($this->resourceManager->getCollectionsByStorage($this) as $collection) {
         (yield $this->getObjectsByCollection($collection, $callback));
     }
 }
 /**
  * Retrieve all Objects stored in this storage.
  *
  * @return array<\TYPO3\Flow\Resource\Storage\Object>
  * @api
  */
 public function getObjects()
 {
     if ($this->debug) {
         $this->systemLogger->log('storage ' . $this->name . ': getObjects');
     }
     $objects = array();
     foreach ($this->resourceManager->getCollectionsByStorage($this) as $collection) {
         $objects = array_merge($objects, $this->getObjectsByCollection($collection));
     }
     return $objects;
 }