public static function nonSQLError() { $args = func_get_args(); return call_user_func_array(array(DB::getMDB(), 'nonSQLError'), $args); }
function __construct($type) { $type = strtolower($type); if ($type !== 'or' && $type !== 'and') { DB::nonSQLError('you must use either WhereClause(and) or WhereClause(or)'); } $this->type = $type; }