public static function Enum::search in Drupal driver for SQL Server and SQL Azure 7.2
Same name and namespace in other branches
- 7.3 sqlsrv/enum.inc \Enum::search()
Return key for value
Parameters
$value:
Return value
mixed
1 call to Enum::search()
- Enum::getKey in sqlsrv/
enum.inc - Returns the enum key (i.e. the constant name).
File
- sqlsrv/
enum.inc, line 124
Class
- Enum
- Base Enum class
Code
public static function search($value) {
return array_search($value, self::toArray(), true);
}