src/Common/Traits/GetCountCommon.php
protected function getCountCommonCompileFiltersString($sColumn, $mValue, $bIsQuery)
    {
        if (is_object($mValue) && ($mValue instanceof \Closure)) {
            $mValue = $mValue();
        }

        $oDb = Factory::service('Database');
        if ($bIsQuery) {
            $aBits = [$mValue];
        } elseif (!is_array($mValue)) {
            $aBits = [
                strpos($sColumn, '`') === false ? $oDb->escape_str($sColumn, false) : $sColumn,
                '=',
                $oDb->escape($mValue),
            ];
        } else {
            $sOperator = ArrayHelper::getFromArray(0, $mValue);
            $sValue    = ArrayHelper::getFromArray(1, $mValue);
            $bEscape   = (bool) ArrayHelper::getFromArray(2, $mValue, true);
            $aBits     = [
                $oDb->escape_str($sColumn, false),
                $sOperator,
                $bEscape ? $oDb->escape($sValue) : $sValue,
            ];
        }

        return trim(implode(' ', $aBits));
    }
protected function getCountCommonCompileFiltersString($sColumn, $mValue, $bIsQuery)
    {
        if (is_object($mValue) && ($mValue instanceof \Closure)) {
            $mValue = $mValue();
        }

        $oDb = Factory::service('Database');
        if ($bIsQuery) {
            $aBits = [$mValue];
        } elseif (!is_array($mValue)) {
            $aBits = [
                strpos($sColumn, '`') === false ? $oDb->escape_str($sColumn, false) : $sColumn,
                '=',
                $oDb->escape($mValue),
            ];
        } else {
            $sOperator = ArrayHelper::getFromArray(0, $mValue);
            $sValue    = ArrayHelper::getFromArray(1, $mValue);
            $bEscape   = (bool) ArrayHelper::getFromArray(2, $mValue, true);
            $aBits     = [
                $oDb->escape_str($sColumn, false),
                $sOperator,
                $bEscape ? $oDb->escape($sValue) : $sValue,
            ];
        }

        return trim(implode(' ', $aBits));
    }
protected function getCountCommonCompileFiltersString ( $ sColumn , $ mValue , $ bIsQuery ) { if ( is_object ( $ mValue ) && ( $ mValue instanceof \ Closure ) ) { $ mValue = $ mValue ( ) ; } $ oDb = Factory :: service ( 'Database' ) ; if ( $ bIsQuery ) { $ aBits = [ $ mValue ] ; } elseif ( ! is_array ( $ mValue ) ) { $ aBits = [ strpos ( $ sColumn , '`' ) === false ? $ oDb -> escape_str ( $ sColumn , false ) : $ sColumn , '=' , $ oDb -> escape ( $ mValue ) , ] ; } else { $ sOperator = ArrayHelper :: getFromArray ( 0 , $ mValue ) ; $ sValue = ArrayHelper :: getFromArray ( 1 , $ mValue ) ; $ bEscape = ( bool ) ArrayHelper :: getFromArray ( 2 , $ mValue , true ) ; $ aBits = [ $ oDb -> escape_str ( $ sColumn , false ) , $ sOperator , $ bEscape ? $ oDb -> escape ( $ sValue ) : $ sValue , ] ; } return trim ( implode ( ' ' , $ aBits ) ) ; }
Compile the filter string

@param string  $sColumn  The column
@param mixed   $mValue   The value
@param boolean $bIsQuery Whether the value is an SQL wuery or not

@return string
Compile the filter string