You are here

public static function Enum::isValid 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::isValid()

Check if is valid enum value

Parameters

$value:

Return value

bool

1 call to Enum::isValid()
Enum::__construct in sqlsrv/enum.inc
Creates a new value of some type

File

sqlsrv/enum.inc, line 101

Class

Enum
Base Enum class

Code

public static function isValid($value) {
  return in_array($value, self::toArray(), true);
}