mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@7101 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
981f80a2dc
commit
3f3e9d9bcc
1 changed files with 3 additions and 2 deletions
|
@ -299,11 +299,12 @@ class dbal
|
||||||
/**
|
/**
|
||||||
* Build IN or NOT IN sql comparison string, uses <> or = on single element
|
* Build IN or NOT IN sql comparison string, uses <> or = on single element
|
||||||
* arrays to improve comparison speed
|
* arrays to improve comparison speed
|
||||||
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $field name of the sql column that shall be compared
|
* @param string $field name of the sql column that shall be compared
|
||||||
* @param array $array array of values that are allowed (IN) or not allowed (NOT IN)
|
* @param array $array array of values that are allowed (IN) or not allowed (NOT IN)
|
||||||
* @param bool $negate true for IN (), false for NOT IN ()
|
* @param bool $negate true for NOT IN (), false for IN () (default)
|
||||||
* @param bool $allow_empty_set Allow $array to be empty, this function will return 1=1 or 1=0 then
|
* @param bool $allow_empty_set If true, allow $array to be empty, this function will return 1=1 or 1=0 then. Default to false.
|
||||||
*/
|
*/
|
||||||
function sql_in_set($field, $array, $negate = false, $allow_empty_set = false)
|
function sql_in_set($field, $array, $negate = false, $allow_empty_set = false)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue