Lines Matching refs:value

223 			foreach ( $row as $column => $value ) {
231 $value = $this->valueFromDB ( $column, $value, $def );
233 $cell = $this->renderValue ( $column, $value, $def, false, false );
328 protected function valueFromDB($column, $value, $def) { argument
333 if (is_null ( $value ))
336 if ($value === '||')
340 $a = strpos ( $value, '|' );
343 return (strlen ( $value ) > 0);
345 $b = strpos ( $value, '|', $a + 1 );
351 'mime' => substr ( $value, 0, $a ),
352 'name' => substr ( $value, $a + 1, $b - $a - 1 ),
353 'file' => substr ( $value, $b + 1 )
368 return $value;
370 if ((trim ( $value ) === '') || ($value == '0000-00-00'))
373 return self::parseDBDateTime ( $value, true );
376 return $value;
380 return $value;
382 $value = substr ( $value, 0, 19 );
383 …if ((trim ( $value ) === '') || ($value == '0000-00-00T00:00:00') || ($value == '0000-00-00 00:00:…
386 return self::parseDBDateTime ( $value, false );
389 $value = trim ( $value );
393 return (intval ( $value ) != 0);
396 return (strtolower ( $value [0] ) == 'x');
400 return (strtolower ( $value [0] ) == 'y');
404 $value = trim ( $value );
405 $value = array_search ( $value, $def ['options'] ['selectables'] );
406 if ($value === false)
407 $value = null;
409 $value = intval ( $value );
414 if (is_numeric ( $value ))
415 $value = intval ( $value );
435 return $value;
468 protected function renderValue($column, $value, $def, $mayBeSkipped = false, $inEditor = false) { argument
469 if (is_null ( $value ) && ($def ['type'] != 'data'))
475 return trim ( $value );
479 if ($value === true)
481 else if ($value === false)
485 $temp = is_array ( $value ) ? trim ( implode ( '', $value ) ) : '';
491 …\"$url\" alt=\"" . sprintf ( $this->getLang ( 'fileimagealt' ), $column, $value ['mime'] ) . "\" /…
498 if ((trim ( $value ) === '') && $mayBeSkipped)
501 return DokuWiki_Plugin::email ( $value, $email );
504 if ((trim ( $value ) === '') && $mayBeSkipped)
507 return DokuWiki_Plugin::external_link ( $value );
511 if ((trim ( $value ) === ''))
514 return $value;
517 if (! $value)
519 return $value ? '✗' : '–';
522 if (! $value)
525 return strftime ( strtok ( trim ( $this->getConf ( 'dformat' ) ), ' ' ), $value );
528 if (! $value)
531 return strftime ( $this->getConf ( 'dformat' ), $value );
534 if ($value && (substr ( $value, - 3 ) == ':00') && (strlen ( $value ) > 5))
535 $value = substr ( $value, 0, - 3 );
537 return $value;
542 if (! $value && $mayBeSkipped)
545 return $value;
549 if (is_integer ( $value ))
550 $value = $def ['options'] ['selectables'] [$value];
552 return $value;
555 return $value;