Lines Matching defs:value

153      * Store value may returns null as they may be stored
160 $value = $this->toStoreValue();
161 if ($value !== null) {
162 return $value;
192 * @return bool - true if single value, false if an array
242 * @param mixed $value
247 abstract function setValue($value): Metadata;
252 * If the value is null, the {@link Metadata::buildFromReadStore()} will be performed
254 * Why ? because the value may have been set before building.
293 * This function sends the object value to the memory {@link Metadata::getWriteStore() store}
301 * @throws ExceptionBadArgument - if the value cannot be persisted
310 * @return string - the name to lookup the value
311 * This is the column name in a database or the property name in a key value store
328 $value = $metadataStore->get($this);
329 $this->setFromStoreValueWithoutException($value);
409 * @return null|string|array the value to be persisted to the {@link self::setWriteStore()}
413 * as this is a possible storage value
432 * The store default value is used to
433 * see if the value set is the same than the default one
534 foreach ($metadataArray as $key => $value) {
537 $cleanedMetadata[$key] = $value;
562 $value = $meta[$uniqueAttribute];
563 if ($value === $attributes[$uniqueAttribute]) {
590 * @return bool can the user change the value
601 * If you deprecate a metadata, you should set this value to false
602 * and set the replacement to true (where the replacement takes the value of the deprecated metadata)
629 * @throws ExceptionBadArgument - if the value can not be persisted
646 * Build the object from the store value
651 * to build the value from the {@link MetadataStore::get()}
659 * when it sets a known value and therefore does not expect a quality error
661 * @param $value
664 public abstract function setFromStoreValueWithoutException($value): Metadata;
667 * Set a value from the {@link self::getReadStore()}
672 * @param $value
675 public function setFromStoreValue($value): Metadata
677 return $this->setFromStoreValueWithoutException($value);
684 * One id value = one row = one entity
691 LogUtility::msg("An entity metadata should define a metadata that store the unique value");
714 * @return mixed - the memory value
715 * @throws ExceptionNotFound - if the value is null
726 * @return mixed - set the memory value from the store and return ut
751 $value = $this->getValue();
752 if ($value === "") {
755 return $value;