protected function parseOperation()
    {
        $operation = 'select';

        $queryParts = explode('/', $this->query);
        array_shift($queryParts);

        if (!count($queryParts)) {
            $this->operation = $operation;

            return;
        }

        if (in_array($queryParts[0], $this->operations, true)) {
            $operation = array_shift($queryParts);
            if (count($queryParts) && is_numeric($queryParts[0])) {
                $this->params['limit'] = array_shift($queryParts);
            }
            $this->identifier = implode(',', $queryParts);
        } else {
            $this->identifier = implode(',', $queryParts);
        }

        if (!empty($this->identifier)) {
            $operation = 'namedselect';
        }

        $this->operation = $operation;
    }
protected function parseOperation()
    {
        $operation = 'select';

        $queryParts = explode('/', $this->query);
        array_shift($queryParts);

        if (!count($queryParts)) {
            $this->operation = $operation;

            return;
        }

        if (in_array($queryParts[0], $this->operations, true)) {
            $operation = array_shift($queryParts);
            if (count($queryParts) && is_numeric($queryParts[0])) {
                $this->params['limit'] = array_shift($queryParts);
            }
            $this->identifier = implode(',', $queryParts);
        } else {
            $this->identifier = implode(',', $queryParts);
        }

        if (!empty($this->identifier)) {
            $operation = 'namedselect';
        }

        $this->operation = $operation;
    }
protected function parseOperation ( ) { $ operation = 'select' ; $ queryParts = explode ( '/' , $ this -> query ) ; array_shift ( $ queryParts ) ; if ( ! count ( $ queryParts ) ) { $ this -> operation = $ operation ; return ; } if ( in_array ( $ queryParts [ 0 ] , $ this -> operations , true ) ) { $ operation = array_shift ( $ queryParts ) ; if ( count ( $ queryParts ) && is_numeric ( $ queryParts [ 0 ] ) ) { $ this -> params [ 'limit' ] = array_shift ( $ queryParts ) ; } $ this -> identifier = implode ( ',' , $ queryParts ) ; } else { $ this -> identifier = implode ( ',' , $ queryParts ) ; } if ( ! empty ( $ this -> identifier ) ) { $ operation = 'namedselect' ; } $ this -> operation = $ operation ; }
Internal method that takes the 'query' part of the input and
parses it into one of the various operations supported.

A simple select operation will just contain the ContentType eg 'pages'
but additional operations can be triggered using the '/' separator.

@internal
Internal method that takes the query part of the input and parses it into one of the various operations supported .