ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
DGet.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Calculation\Database
;
4
5
use
PhpOffice\PhpSpreadsheet\Calculation\Functions
;
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
}
PhpOffice\PhpSpreadsheet\Calculation\Database\DGet\evaluate
static evaluate($database, $field, $criteria)
DGET.
Definition:
DGet.php:35
PhpOffice\PhpSpreadsheet\Calculation\Database
Definition:
DatabaseAbstract.php:3
PhpOffice\PhpSpreadsheet\Calculation\Database\DatabaseAbstract
Definition:
DatabaseAbstract.php:9
PhpOffice\PhpSpreadsheet\Calculation\Functions\NAN
static NAN()
NaN.
Definition:
Functions.php:181
PhpOffice\PhpSpreadsheet\Calculation\Database\DGet
Definition:
DGet.php:7
$row
$row
Definition:
migrateto20.php:360
Functions
php
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Calculation
Database
DGet.php
Generated on Thu Jan 16 2025 19:01:45 for ILIAS by
1.8.13 (using
Doxyfile
)