public function dispatchCriterion($criterionName, $criterionData, ParsingDispatcher $parsingDispatcher)
    {
        $mediaType = $this->getCriterionMediaType($criterionName);
        try {
            return $parsingDispatcher->parse(array($criterionName => $criterionData), $mediaType);
        } catch (Exceptions\Parser $e) {
            throw new Exceptions\Parser("Invalid Criterion id <$criterionName> in <AND>", 0, $e);
        }
    }
public function dispatchCriterion($criterionName, $criterionData, ParsingDispatcher $parsingDispatcher)
    {
        $mediaType = $this->getCriterionMediaType($criterionName);
        try {
            return $parsingDispatcher->parse(array($criterionName => $criterionData), $mediaType);
        } catch (Exceptions\Parser $e) {
            throw new Exceptions\Parser("Invalid Criterion id <$criterionName> in <AND>", 0, $e);
        }
    }
public function dispatchCriterion ( $ criterionName , $ criterionData , ParsingDispatcher $ parsingDispatcher ) { $ mediaType = $ this -> getCriterionMediaType ( $ criterionName ) ; try { return $ parsingDispatcher -> parse ( array ( $ criterionName => $ criterionData ) , $ mediaType ) ; } catch ( Exceptions \ Parser $ e ) { throw new Exceptions \ Parser ( "Invalid Criterion id <$criterionName> in <AND>" , 0 , $ e ) ; } }
Dispatches parsing of a criterion name + data to its own parser.

@param string $criterionName
@param mixed $criterionData
@param \eZ\Publish\Core\REST\Common\Input\ParsingDispatcher $parsingDispatcher

@throws \eZ\Publish\Core\REST\Common\Exceptions\Parser

@return \eZ\Publish\API\Repository\Values\Content\Query\Criterion
Dispatches parsing of a criterion name + data to its own parser .