public function MappingDriverChain::getAllClassNames

Gets the names of all mapped classes known to this driver.

Return value

array The names of all mapped classes known to this driver.

Overrides MappingDriver::getAllClassNames

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php, line 122

Class

MappingDriverChain
The DriverChain allows you to add multiple other mapping drivers for certain namespaces

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function getAllClassNames() {
  $classNames = array();
  $driverClasses = array();

  /* @var $driver MappingDriver */
  foreach ($this->drivers as $namespace => $driver) {
    $oid = spl_object_hash($driver);
    if (!isset($driverClasses[$oid])) {
      $driverClasses[$oid] = $driver
        ->getAllClassNames();
    }
    foreach ($driverClasses[$oid] as $className) {
      if (strpos($className, $namespace) === 0) {
        $classNames[$className] = true;
      }
    }
  }
  return array_keys($classNames);
}