ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
DGet.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
7 class DGet extends DatabaseAbstract
8 {
35  public static function evaluate($database, $field, $criteria)
36  {
37  $field = self::fieldExtract($database, $field);
38  if ($field === null) {
39  return null;
40  }
41 
42  $columnData = self::getFilteredColumn($database, $field, $criteria);
43  if (count($columnData) > 1) {
44  return Functions::NAN();
45  }
46 
47  $row = array_pop($columnData);
48 
49  return array_pop($row);
50  }
51 }
static evaluate($database, $field, $criteria)
DGET.
Definition: DGet.php:35
$row