[STATIC] Converts a boolean into a formatted TRUE or FALSE value of choice
public static SQLBooleanValue ( mixed $value, mixed $trueValue, mixed $falseValue, string $datatype = self::SQLVALUE_TEXT ) : string | ||
$value | mixed | value to analyze for TRUE or FALSE |
$trueValue | mixed | value to use if TRUE |
$falseValue | mixed | value to use if FALSE |
$datatype | string | Use SQLVALUE constants or the strings: string, text, varchar, char, boolean, bool, Y-N, T-F, bit, date, datetime, time, integer, int, number, double, float |
return | string | SQL formatted value of the specified data type |