ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Calculation\Database Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Calculation\Database:

Static Public Member Functions

static DAVERAGE ($database, $field, $criteria)
 DAVERAGE. More...
 
static DCOUNT ($database, $field, $criteria)
 DCOUNT. More...
 
static DCOUNTA ($database, $field, $criteria)
 DCOUNTA. More...
 
static DGET ($database, $field, $criteria)
 DGET. More...
 
static DMAX ($database, $field, $criteria)
 DMAX. More...
 
static DMIN ($database, $field, $criteria)
 DMIN. More...
 
static DPRODUCT ($database, $field, $criteria)
 DPRODUCT. More...
 
static DSTDEV ($database, $field, $criteria)
 DSTDEV. More...
 
static DSTDEVP ($database, $field, $criteria)
 DSTDEVP. More...
 
static DSUM ($database, $field, $criteria)
 DSUM. More...
 
static DVAR ($database, $field, $criteria)
 DVAR. More...
 
static DVARP ($database, $field, $criteria)
 DVARP. More...
 

Detailed Description

Deprecated:
1.17.0

Definition at line 8 of file Database.php.

Member Function Documentation

◆ DAVERAGE()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DAVERAGE (   $database,
  $field,
  $criteria 
)
static

DAVERAGE.

Averages the values in a column of a list or database that match conditions you specify.

Excel Function: DAVERAGE(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
null|float|string

Definition at line 40 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DAverage\evaluate().

41  {
42  return Database\DAverage::evaluate($database, $field, $criteria);
43  }
static evaluate($database, $field, $criteria)
DAVERAGE.
Definition: DAverage.php:34
+ Here is the call graph for this function:

◆ DCOUNT()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DCOUNT (   $database,
  $field,
  $criteria 
)
static

DCOUNT.

Counts the cells that contain numbers in a column of a list or database that match conditions that you specify.

Excel Function: DCOUNT(database,[field],criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
null | int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
int

The field argument is optional. If field is omitted, DCOUNT counts all records in the database that match the criteria.

Definition at line 79 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DCount\evaluate().

80  {
81  return Database\DCount::evaluate($database, $field, $criteria);
82  }
static evaluate($database, $field, $criteria)
DCOUNT.
Definition: DCount.php:35
+ Here is the call graph for this function:

◆ DCOUNTA()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DCOUNTA (   $database,
  $field,
  $criteria 
)
static

DCOUNTA.

Counts the nonblank cells in a column of a list or database that match conditions that you specify.

Excel Function: DCOUNTA(database,[field],criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
null | int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
int

Definition at line 114 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DCountA\evaluate().

115  {
116  return Database\DCountA::evaluate($database, $field, $criteria);
117  }
static evaluate($database, $field, $criteria)
DCOUNTA.
Definition: DCountA.php:34
+ Here is the call graph for this function:

◆ DGET()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DGET (   $database,
  $field,
  $criteria 
)
static

DGET.

Extracts a single value from a column of a list or database that matches conditions that you specify.

Excel Function: DGET(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
mixed

Definition at line 150 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DGet\evaluate().

151  {
152  return Database\DGet::evaluate($database, $field, $criteria);
153  }
static evaluate($database, $field, $criteria)
DGET.
Definition: DGet.php:35
+ Here is the call graph for this function:

◆ DMAX()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DMAX (   $database,
  $field,
  $criteria 
)
static

DMAX.

Returns the largest number in a column of a list or database that matches conditions you that specify.

Excel Function: DMAX(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
float

Definition at line 186 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DMax\evaluate().

187  {
188  return Database\DMax::evaluate($database, $field, $criteria);
189  }
static evaluate($database, $field, $criteria)
DMAX.
Definition: DMax.php:35
+ Here is the call graph for this function:

◆ DMIN()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DMIN (   $database,
  $field,
  $criteria 
)
static

DMIN.

Returns the smallest number in a column of a list or database that matches conditions you that specify.

Excel Function: DMIN(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
float

Definition at line 222 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DMin\evaluate().

223  {
224  return Database\DMin::evaluate($database, $field, $criteria);
225  }
static evaluate($database, $field, $criteria)
DMIN.
Definition: DMin.php:35
+ Here is the call graph for this function:

◆ DPRODUCT()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DPRODUCT (   $database,
  $field,
  $criteria 
)
static

DPRODUCT.

Multiplies the values in a column of a list or database that match conditions that you specify.

Excel Function: DPRODUCT(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
float|string

Definition at line 257 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DProduct\evaluate().

258  {
259  return Database\DProduct::evaluate($database, $field, $criteria);
260  }
static evaluate($database, $field, $criteria)
DPRODUCT.
Definition: DProduct.php:34
+ Here is the call graph for this function:

◆ DSTDEV()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DSTDEV (   $database,
  $field,
  $criteria 
)
static

DSTDEV.

Estimates the standard deviation of a population based on a sample by using the numbers in a column of a list or database that match conditions that you specify.

Excel Function: DSTDEV(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
float|string

Definition at line 293 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DStDev\evaluate().

294  {
295  return Database\DStDev::evaluate($database, $field, $criteria);
296  }
static evaluate($database, $field, $criteria)
DSTDEV.
Definition: DStDev.php:35
+ Here is the call graph for this function:

◆ DSTDEVP()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DSTDEVP (   $database,
  $field,
  $criteria 
)
static

DSTDEVP.

Calculates the standard deviation of a population based on the entire population by using the numbers in a column of a list or database that match conditions that you specify.

Excel Function: DSTDEVP(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
float|string

Definition at line 329 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DStDevP\evaluate().

330  {
331  return Database\DStDevP::evaluate($database, $field, $criteria);
332  }
static evaluate($database, $field, $criteria)
DSTDEVP.
Definition: DStDevP.php:35
+ Here is the call graph for this function:

◆ DSUM()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DSUM (   $database,
  $field,
  $criteria 
)
static

DSUM.

Adds the numbers in a column of a list or database that match conditions that you specify.

Excel Function: DSUM(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
float|string

Definition at line 364 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DSum\evaluate().

365  {
366  return Database\DSum::evaluate($database, $field, $criteria);
367  }
static evaluate($database, $field, $criteria)
DSUM.
Definition: DSum.php:34
+ Here is the call graph for this function:

◆ DVAR()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DVAR (   $database,
  $field,
  $criteria 
)
static

DVAR.

Estimates the variance of a population based on a sample by using the numbers in a column of a list or database that match conditions that you specify.

Excel Function: DVAR(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
float|string (string if result is an error)

Definition at line 400 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DVar\evaluate().

401  {
402  return Database\DVar::evaluate($database, $field, $criteria);
403  }
static evaluate($database, $field, $criteria)
DVAR.
Definition: DVar.php:35
+ Here is the call graph for this function:

◆ DVARP()

static PhpOffice\PhpSpreadsheet\Calculation\Database::DVARP (   $database,
  $field,
  $criteria 
)
static

DVARP.

Calculates the variance of a population based on the entire population by using the numbers in a column of a list or database that match conditions that you specify.

Excel Function: DVARP(database,field,criteria)

1.17.0

See also
Database::evaluate() Use the evaluate() method in the Database class instead
Parameters
mixed[]$database The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
int | string$fieldIndicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
mixed[]$criteria The range of cells that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one cell below the column label in which you specify a condition for the column.
Returns
float|string (string if result is an error)

Definition at line 436 of file Database.php.

References PhpOffice\PhpSpreadsheet\Calculation\Database\DVarP\evaluate().

437  {
438  return Database\DVarP::evaluate($database, $field, $criteria);
439  }
static evaluate($database, $field, $criteria)
DVARP.
Definition: DVarP.php:35
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: