Lines Matching defs:value
43 * Sets the value and validates it
45 * @param mixed $value
46 * @return bool value was set successfully validated
48 protected function setVal($value)
51 $value = '';
53 } elseif ($this->replace($value) == $value) {
55 $this->error = !$validator->validateValue($this->column, $value);
63 if ($value === [] || $value === '') {
75 $this->opt['value'] = $value;
100 $value = $this->createValue();
101 $field = $this->makeField($value, $params['name']);
112 $value = $this->getParam('value');
114 if (is_array($value)) {
118 if (!empty($value) && $this->column->getType() instanceof User) {
119 return userlink($value, true);
133 $value = $this->opt['value'];
135 //default value
136 if (is_null($value) || $value === false) {
143 if (!empty($value) && $this->column->getType() instanceof User) {
144 $value = array_map(static fn($user) => userlink($user, true), $value);
150 return implode($delimiter, $value);
161 // input value or appropriately initialized empty value
162 $preparedValue = $this->opt['value'] ?? ($this->column->isMulti() ? [] : '');
179 $value = new Value($this->column, $preparedValue);
181 // no way to pass $israw parameter to constructor, so re-set the Lookup value
183 $value->setValue($preparedValue, true);
186 return $value;