| @@ 80-98 (lines=19) @@ | ||
| 77 | return $this; |
|
| 78 | } |
|
| 79 | ||
| 80 | public function isOK(&$msg = null) |
|
| 81 | { |
|
| 82 | if (!$this->isTQualifiedNameValid($this->term)) { |
|
| 83 | $msg = "Term must be a valid TQualifiedName"; |
|
| 84 | return false; |
|
| 85 | } |
|
| 86 | if (null != $this->qualifier && !$this->isTSimpleIdentifierValid($this->qualifier)) { |
|
| 87 | $msg = "Qualifier must be a valid TSimpleIdentifier"; |
|
| 88 | return false; |
|
| 89 | } |
|
| 90 | if (!$this->isGInlineExpressionsValid($msg)) { |
|
| 91 | return false; |
|
| 92 | } |
|
| 93 | if (!$this->isGExpressionValid($msg)) { |
|
| 94 | return false; |
|
| 95 | } |
|
| 96 | ||
| 97 | return true; |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| @@ 79-94 (lines=16) @@ | ||
| 76 | return $this; |
|
| 77 | } |
|
| 78 | ||
| 79 | public function isOK(&$msg = null) |
|
| 80 | { |
|
| 81 | if (!$this->isTQualifiedNameValid($this->term)) { |
|
| 82 | $msg = "Term must be a valid TQualifiedName"; |
|
| 83 | return false; |
|
| 84 | } |
|
| 85 | if (null != $this->qualifier && !$this->isTSimpleIdentifierValid($this->qualifier)) { |
|
| 86 | $msg = "Qualifier must be a valid TSimpleIdentifier"; |
|
| 87 | return false; |
|
| 88 | } |
|
| 89 | if (!$this->isGExpressionValid($msg)) { |
|
| 90 | return false; |
|
| 91 | } |
|
| 92 | ||
| 93 | return true; |
|
| 94 | } |
|
| 95 | } |
|
| 96 | ||