You are here

public function Enum::getKey in Drupal driver for SQL Server and SQL Azure 7.2

Same name and namespace in other branches
  1. 7.3 sqlsrv/enum.inc \Enum::getKey()

Returns the enum key (i.e. the constant name).

Return value

mixed

File

sqlsrv/enum.inc, line 48

Class

Enum
Base Enum class

Code

public function getKey() {
  return self::search($this->value);
}