Lines Matching refs:value
15 * A wiki path value where the separator is a {@link WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT}
46 protected WikiPath $value;
49 * @param WikiPath|string|null $value
52 public function setValue($value): Metadata
54 if ($value === null) {
58 if ($value instanceof WikiPath) {
59 $this->value = $value;
63 if ($value === "" || $value === ":") {
68 $value = WikiPath::toValidAbsolutePath($value);
69 $this->value = WikiPath::createWikiPath($value, $this->getDrive());
96 LogUtility::internalError("The value ($defaultValue) is not a wiki path");
106 public function setFromStoreValueWithoutException($value): Metadata
108 if ($value === null || trim($value) === "") {
112 if ($value instanceof WikiPath) {
113 $this->value = $value;
117 $value = WikiPath::toValidAbsolutePath($value);
126 $this->value = WikiPath::createMarkupPathFromPath($value);
129 $this->value = WikiPath::createFromPath($value, $drive);
132 $this->value = WikiPath::createFromPath($value, $drive);
146 if (isset($this->value)) {
147 return $this->value;
149 throw new ExceptionNotFound("No value found");
154 return isset($this->value);
160 throw new ExceptionNotFound("No default value");