protected function buildCriteriaWithType($statements, $key, $type, $bindValues = true)
    {
        $criteria = '';
        $bindings = array();

        if (isset($statements[$key])) {
            // Get the generic/adapter agnostic criteria string from parent
            list($criteria, $bindings) = $this->buildCriteria($statements[$key], $bindValues);

            if ($criteria) {
                $criteria = $type . ' ' . $criteria;
            }
        }

        return array($criteria, $bindings);
    }
protected function buildCriteriaWithType($statements, $key, $type, $bindValues = true)
    {
        $criteria = '';
        $bindings = array();

        if (isset($statements[$key])) {
            // Get the generic/adapter agnostic criteria string from parent
            list($criteria, $bindings) = $this->buildCriteria($statements[$key], $bindValues);

            if ($criteria) {
                $criteria = $type . ' ' . $criteria;
            }
        }

        return array($criteria, $bindings);
    }
protected function buildCriteriaWithType ( $ statements , $ key , $ type , $ bindValues = true ) { $ criteria = '' ; $ bindings = array ( ) ; if ( isset ( $ statements [ $ key ] ) ) { // Get the generic/adapter agnostic criteria string from parent list ( $ criteria , $ bindings ) = $ this -> buildCriteria ( $ statements [ $ key ] , $ bindValues ) ; if ( $ criteria ) { $ criteria = $ type . ' ' . $ criteria ; } } return array ( $ criteria , $ bindings ) ; }
Build criteria string and binding with various types added, like WHERE and Having

@param      $statements
@param      $key
@param      $type
@param bool $bindValues

@return array
Build criteria string and binding with various types added like WHERE and Having