You are here

public static function Enum::values in Drupal driver for SQL Server and SQL Azure 8

Returns instances of the Enum class of all Enum constants

Return value

array Constant name in key, Enum instance in value

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Enum.php, line 75

Class

Enum
Base Enum class

Namespace

Drupal\Driver\Database\sqlsrv

Code

public static function values() {
  $values = array();
  foreach (self::toArray() as $key => $value) {
    $values[$key] = new static($value);
  }
  return $values;
}