Lines Matching defs:value

76      * @param string|null $value
80 public function setValue($value): Metadata
82 return $this->setValueWithOrWithoutForce($value);
91 * @param $value
94 public function setFromStoreValueWithoutException($value): Metadata
97 if ($value !== null) {
98 return parent::setFromStoreValueWithoutException($value);
110 return parent::setFromStoreValueWithoutException($value);
122 $value = $metadataFileSystemStore->getFromName(self::getPersistentName());
123 if ($value !== null) {
124 return parent::setFromStoreValueWithoutException($value);
133 $value = $frontmatter->getFromName(self::getPersistentName());
134 if ($value !== null) {
135 return parent::setFromStoreValueWithoutException($value);
146 $value = $dbStore->getFromName(self::getPersistentName());
147 if ($value !== null && $value !== "") {
158 return parent::setFromStoreValueWithoutException($value);
168 return parent::setFromStoreValueWithoutException($value);
178 return parent::setFromStoreValueWithoutException($value);
225 * Therefore, the source of truth is the value in the {@link syntax_plugin_combo_frontmatter}
254 * Test if there is not yet a page with this value
270 public function setValueForce(?string $value): PageId
272 return $this->setValueWithOrWithoutForce($value, true);
281 private function setValueWithOrWithoutForce(?string $value, bool $force = false): PageId
283 if ($value === null) {
284 throw new ExceptionCompile("A page id can not be set with a null value (Page: {$this->getResource()})", $this->getCanonical());
286 if (!is_string($value) || !preg_match("/[" . self::PAGE_ID_ALPHABET . "]/", $value)) {
287 throw new ExceptionCompile("The page id value to set ($value) is not an alphanumeric string (Page: {$this->getResource()})", $this->getCanonical());
296 if ($actualId !== null && $actualId !== $value) {
297 throw new ExceptionCompile("The page id cannot be changed, the page ({$this->getResource()}) has already an id ($actualId}) that has not the same value ($value})", $this->getCanonical());
313 return parent::setValue($value);
329 $value = $this->getValue();
331 throw new ExceptionBadArgument("No value to store");
333 if ($actualStoreValue !== null && $actualStoreValue !== $value) {
334 throw new ExceptionBadArgument("The page id can not be modified once generated. The value in the store is $actualStoreValue while the new value is $value");