Lines Matching refs:value

103         foreach ($current as $key => $value) {
106 $this->mergeConfig($value, $config[$key]);
108 $config[$key] = $value;
238 * Split a single value into multiple values
240 * This function is called on saving data when only a single value instead of an array
243 * Types implementing their own @param string $value
248 public function splitValues($value)
250 return array_map('trim', explode(',', $value));
266 foreach ($rawvalues as $value) {
268 $html .= $this->valueEditor($name . '[]', $value, '');
282 * Return the editor to edit a single value
285 * @param string $rawvalue the current value
301 'value' => $rawvalue,
312 * @param string|int $value the value stored in the database
317 public function renderValue($value, \Doku_Renderer $R, $mode)
319 $value = $this->displayValue($value);
320 $R->cdata($value);
347 * @param string|int $value the value stored in the database
355 public function renderTagCloudLink($value, \Doku_Renderer $R, $mode, $page, $filter, $weight, $showCount = null)
357 $value = $this->displayValue($value);
359 $value .= " ($showCount)";
361 $R->internallink("$page?$filter", $value);
366 * for the given column matching the given value. A type should add at
370 * Important: $value might be an array. If so, the filter should check against
374 * @param string $tablealias The table the currently saved value(s) are stored in
377 * @param string|string[] $value this is the user supplied value to compare against. might be multiple
380 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op)
383 if (is_array($value)) {
387 foreach ((array)$value as $item) {
409 * @param string $tablealias The table the currently saved value(s) are stored in
425 * @param string $tablealias The table the currently saved value is stored in
443 * @param string|Value $value The string by which the types would usually be sorted
447 public function getSortString($value)
449 if (is_string($value)) {
450 return $value;
452 $display = $value->getDisplayValue();
460 * This allows types to apply a transformation to the value read by select()
462 * The returned value should always be a single, non-complex string. In general
465 * This value will be used wherever the raw saved data is needed for comparisons.
469 * @param string $value The value as returned by select()
470 * @return string The value as saved in the database
472 public function rawValue($value)
474 return $value;
479 * value as a single (non-HTML) string. Eg. in a dropdown or in autocompletion.
481 * @param string $value
484 public function displayValue($value)
486 return $this->rawValue($value);
490 * This is the value to be used as argument to a filter for another column.
492 * In a sense this is the counterpart to the @param string $value
498 public function compareValue($value)
500 return $this->rawValue($value);
504 * Validate and optionally clean a single value
509 * The function should return the value as it should be saved later on.
512 * @return int|string the cleaned value