Lines Matching defs:value

66             $value = $trans->getLangPart(getID());
67 if ($value) return $value;
107 * @param string $value
111 public function cleanData($value, $type)
113 $value = trim((string) $value);
114 if (!$value && $value !== '0') {
118 if (isset($type['enum']) && !preg_match('/(^|,\s*)' . preg_quote_cb($value) . '($|\s*,)/', $type['enum'])) {
125 if (preg_match('/^(\d\d\d\d)-(\d\d?)-(\d\d?)$/', $value, $m)) {
128 if ($value === '%now%') {
129 return $value;
133 if (!preg_match('!^[a-z]+://!i', $value)) {
134 $value = 'http://' . $value;
136 return $value;
140 $parts = preg_split('/\s+/', $value);
153 return cleanID($value);
155 return $value;
160 * Add pre and postfixs to the given value
186 * Resolve a value according to its column settings
190 * @param string $value
194 public function resolveData($value, $colname)
198 $value = $this->addPrePostFixes($column['type'], $value);
206 $id = $value;
208 [$id, ] = explode('|', $value, 2);
211 $value .= ' ' . p_get_first_heading($id);
213 return $value;
228 * @param string $value
232 public function formatData($column, $value, Doku_Renderer_xhtml $R)
235 $vals = explode("\n", $value);
238 //multivalued line from db result for pageid and wiki has only in first value the ID
264 //use ID from first value of the multivalued line
323 //use ID from first value of the multivalued line
524 'value' => $val,
621 * @param string|array $array value or key-value pairs
652 //combine key and value
704 * @param string $value
707 private function replacePlaceholders($value)
709 return $this->makeTranslationReplacement($value);