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

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

        $arrayQueries = $node->getQueries();
        $strQuery = $this->literals['LogicOperator'][$nodeName]['before'];

        foreach ($arrayQueries as $queryNode) {
            /* @var $queryNode AbstractQueryNode */
            $strQuery = $strQuery . $this->makeAbstractQueryOperator($queryNode)
                . $this->literals['LogicOperator'][$nodeName]['between'];
        }

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

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

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

        $arrayQueries = $node->getQueries();
        $strQuery = $this->literals['LogicOperator'][$nodeName]['before'];

        foreach ($arrayQueries as $queryNode) {
            /* @var $queryNode AbstractQueryNode */
            $strQuery = $strQuery . $this->makeAbstractQueryOperator($queryNode)
                . $this->literals['LogicOperator'][$nodeName]['between'];
        }

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

        return $strQuery;
    }
public function makeLogicOperator ( AbstractLogicOperatorNode $ node ) { $ nodeName = $ node -> getNodeName ( ) ; if ( ! isset ( $ this -> literals [ 'LogicOperator' ] [ $ nodeName ] ) ) { throw new DataStoreException ( 'The Logic Operator not supported: ' . $ nodeName ) ; } $ arrayQueries = $ node -> getQueries ( ) ; $ strQuery = $ this -> literals [ 'LogicOperator' ] [ $ nodeName ] [ 'before' ] ; foreach ( $ arrayQueries as $ queryNode ) { /* @var $queryNode AbstractQueryNode */ $ strQuery = $ strQuery . $ this -> makeAbstractQueryOperator ( $ queryNode ) . $ this -> literals [ 'LogicOperator' ] [ $ nodeName ] [ 'between' ] ; } $ strQuery = rtrim ( $ strQuery , $ this -> literals [ 'LogicOperator' ] [ $ nodeName ] [ 'between' ] ) ; $ strQuery = $ strQuery . $ this -> literals [ 'LogicOperator' ] [ $ nodeName ] [ 'after' ] ; return $ strQuery ; }
Make string with conditions for LogicOperatorNode

@param AbstractLogicOperatorNode $node
@return string
@throws DataStoreException
Make string with conditions for LogicOperatorNode