Classes/Utility/DatabaseUtility.php
public static function addCondition($condition)
    {
        $ret = ' ';

        if (!empty($condition)) {
            if (is_array($condition)) {
                $ret .= ' AND (( ' . implode(" )\nAND (", $condition) . ' ))';
            } else {
                $ret .= ' AND ( ' . $condition . ' )';
            }
        }

        return $ret;
    }
public static function addCondition($condition)
    {
        $ret = ' ';

        if (!empty($condition)) {
            if (is_array($condition)) {
                $ret .= ' AND (( ' . implode(" )\nAND (", $condition) . ' ))';
            } else {
                $ret .= ' AND ( ' . $condition . ' )';
            }
        }

        return $ret;
    }
public static function addCondition ( $ condition ) { $ ret = ' ' ; if ( ! empty ( $ condition ) ) { if ( is_array ( $ condition ) ) { $ ret .= ' AND (( ' . implode ( " )\nAND (" , $ condition ) . ' ))' ; } else { $ ret .= ' AND ( ' . $ condition . ' )' ; } } return $ ret ; }
Add condition to query

@param  array|string $condition Condition

@return string
Add condition to query