public static function Enum::isValidKey in Drupal driver for SQL Server and SQL Azure 7.2
Same name and namespace in other branches
- 7.3 sqlsrv/enum.inc \Enum::isValidKey()
Check if is valid enum key
Parameters
$key:
Return value
bool
File
- sqlsrv/
enum.inc, line 112
Class
- Enum
- Base Enum class
Code
public static function isValidKey($key) {
$array = self::toArray();
return isset($array[$key]);
}