@@ 363-366 (lines=4) @@ | ||
360 | throw new JSONTextException($msg); |
|
361 | } |
|
362 | ||
363 | if ($isEx && !$this->isValidExpression($operator)) { |
|
364 | $msg = 'JSON expression: ' . $operator . ' is invalid.'; |
|
365 | throw new JSONTextException($msg); |
|
366 | } |
|
367 | ||
368 | $validType = ($isEx ? self::JSONTEXT_QUERY_JSONPATH : self::JSONTEXT_QUERY_OPERATOR); |
|
369 | if ($marshalled = $this->marshallQuery(func_get_args(), $validType)) { |
|
@@ 432-435 (lines=4) @@ | ||
429 | if (!$expr) { |
|
430 | $this->value = $value; |
|
431 | } else { |
|
432 | if (!$this->isValidExpression($expr)) { |
|
433 | $msg = 'Invalid JSONPath expression: ' . $expr . ' passed to ' . __FUNCTION__; |
|
434 | throw new JSONTextException($msg); |
|
435 | } |
|
436 | ||
437 | if (!$this->jsonStore->set($expr, $value)) { |
|
438 | $msg = 'Failed to properly set custom data to the JSONStore in ' . __FUNCTION__; |