src/DataStore/src/DataStore/ConditionBuilder/ConditionBuilderAbstract.php
public function makeArrayOperator(AbstractArrayOperatorNode $node)
    {
        $nodeName = $node->getNodeName();

        if (!isset($this->literals['ArrayOperator'][$nodeName])) {
            throw new DataStoreException(
                'The Array Operator not supported: ' . $nodeName
            );
        }

        $arrayValues = $node->getValues();
        $strQuery = $this->literals['ArrayOperator'][$nodeName]['before']
            . $this->prepareFieldName($node->getField())
            . $this->literals['ArrayOperator'][$nodeName]['between'];

        foreach ($arrayValues as $value) {
            $strQuery = $strQuery
                . $this->prepareFieldValue($value)
                . $this->literals['ArrayOperator'][$nodeName]['delimiter'];
        }

        $strQuery = rtrim($strQuery, $this->literals['ArrayOperator'][$nodeName]['delimiter']);
        $strQuery = $strQuery . $this->literals['ArrayOperator'][$nodeName]['after'];

        return $strQuery;
    }
public function makeArrayOperator(AbstractArrayOperatorNode $node)
    {
        $nodeName = $node->getNodeName();

        if (!isset($this->literals['ArrayOperator'][$nodeName])) {
            throw new DataStoreException(
                'The Array Operator not supported: ' . $nodeName
            );
        }

        $arrayValues = $node->getValues();
        $strQuery = $this->literals['ArrayOperator'][$nodeName]['before']
            . $this->prepareFieldName($node->getField())
            . $this->literals['ArrayOperator'][$nodeName]['between'];

        foreach ($arrayValues as $value) {
            $strQuery = $strQuery
                . $this->prepareFieldValue($value)
                . $this->literals['ArrayOperator'][$nodeName]['delimiter'];
        }

        $strQuery = rtrim($strQuery, $this->literals['ArrayOperator'][$nodeName]['delimiter']);
        $strQuery = $strQuery . $this->literals['ArrayOperator'][$nodeName]['after'];

        return $strQuery;
    }
public function makeArrayOperator ( AbstractArrayOperatorNode $ node ) { $ nodeName = $ node -> getNodeName ( ) ; if ( ! isset ( $ this -> literals [ 'ArrayOperator' ] [ $ nodeName ] ) ) { throw new DataStoreException ( 'The Array Operator not supported: ' . $ nodeName ) ; } $ arrayValues = $ node -> getValues ( ) ; $ strQuery = $ this -> literals [ 'ArrayOperator' ] [ $ nodeName ] [ 'before' ] . $ this -> prepareFieldName ( $ node -> getField ( ) ) . $ this -> literals [ 'ArrayOperator' ] [ $ nodeName ] [ 'between' ] ; foreach ( $ arrayValues as $ value ) { $ strQuery = $ strQuery . $ this -> prepareFieldValue ( $ value ) . $ this -> literals [ 'ArrayOperator' ] [ $ nodeName ] [ 'delimiter' ] ; } $ strQuery = rtrim ( $ strQuery , $ this -> literals [ 'ArrayOperator' ] [ $ nodeName ] [ 'delimiter' ] ) ; $ strQuery = $ strQuery . $ this -> literals [ 'ArrayOperator' ] [ $ nodeName ] [ 'after' ] ; return $ strQuery ; }
Make string with conditions for ArrayOperatorNode

@param AbstractArrayOperatorNode $node
@return string
@throws DataStoreException
Make string with conditions for ArrayOperatorNode