You are here

public function SystemTable::systemTableObjects in X Autoload 7.5

Parameters

string[]|null $fields:

string|null $type:

Return value

array

2 calls to SystemTable::systemTableObjects()
SystemTable::systemGetFilesDatabase in tests/src/VirtualDrupal/SystemTable.php
Retrieves the current status of an array of files in the system table.
SystemTable::systemUpdateFilesDatabase in tests/src/VirtualDrupal/SystemTable.php

File

tests/src/VirtualDrupal/SystemTable.php, line 180

Class

SystemTable
Virtual Drupal database / persistence layer.

Namespace

Drupal\xautoload\Tests\VirtualDrupal

Code

public function systemTableObjects(array $fields = NULL, $type = NULL) {
  $objects = array();
  foreach ($this->systemTableData as $name => $record) {
    if (NULL !== $type && $type !== $record['type']) {
      continue;
    }
    $objects[$name] = $this
      ->makeObject($record, $fields);
  }
  return $objects;
}