src/POData/UriProcessor/QueryProcessor/ExpressionParser/ExpressionParser2.php
/**
     *  Populate map table 
     *
     * @param AbstractExpression $nullCheckExpTree The expression to verfiy.
     * 
     * @return void
     * 
     * @throws ODataException
     */
Populate map table
@param AbstractExpression $nullCheckExpTree The expression to verfiy.

@return void


Populate map table @param AbstractExpression $nullCheckExpTree The expression to verfiy . @return void
private function _map($nullCheckExpTree)
    {
        if ($nullCheckExpTree instanceof LogicalExpression) {
            $this->_map($nullCheckExpTree->getLeft());
            $this->_map($nullCheckExpTree->getRight());
        } else if ($nullCheckExpTree instanceof UnaryExpression) {
            $this->_map($nullCheckExpTree->getChild());
        } else if ($nullCheckExpTree instanceof FunctionCallExpression) {
            $param = $nullCheckExpTree->getParamExpressions();
            $this->_map($param[0]);
        } else if ($nullCheckExpTree instanceof PropertyAccessExpression) {
            $parent = $nullCheckExpTree;
            $key = null;        
            do {
                $key = $parent->getResourceProperty()->getName() . '_' . $key;
                $parent = $parent->getParent();
            } while ($parent != null);
            $this->_mapTable[$key] = $nullCheckExpTree;
        } else {
            throw ODataException::createSyntaxError(
                Messages::expressionParser2UnexpectedExpression(get_class($nullCheckExpTree))
            );
        }
    }
private function _map ( $ nullCheckExpTree ) { if ( $ nullCheckExpTree instanceof LogicalExpression ) { $ this -> _map ( $ nullCheckExpTree -> getLeft ( ) ) ; $ this -> _map ( $ nullCheckExpTree -> getRight ( ) ) ; } else if ( $ nullCheckExpTree instanceof UnaryExpression ) { $ this -> _map ( $ nullCheckExpTree -> getChild ( ) ) ; } else if ( $ nullCheckExpTree instanceof FunctionCallExpression ) { $ param = $ nullCheckExpTree -> getParamExpressions ( ) ; $ this -> _map ( $ param [ 0 ] ) ; } else if ( $ nullCheckExpTree instanceof PropertyAccessExpression ) { $ parent = $ nullCheckExpTree ; $ key = null ; do { $ key = $ parent -> getResourceProperty ( ) -> getName ( ) . '_' . $ key ; $ parent = $ parent -> getParent ( ) ; } while ( $ parent != null ) ; $ this -> _mapTable [ $ key ] = $ nullCheckExpTree ; } else { throw ODataException :: createSyntaxError ( Messages :: expressionParser2UnexpectedExpression ( get_class ( $ nullCheckExpTree ) ) ) ; } }
Populate map table
 @param AbstractExpression $nullCheckExpTree The expression to verfiy.
Populate map table @param AbstractExpression $nullCheckExpTree The expression to verfiy .