ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\COPage\PC\Grid\GridCellRetrieval Class Reference
+ Inheritance diagram for ILIAS\COPage\PC\Grid\GridCellRetrieval:
+ Collaboration diagram for ILIAS\COPage\PC\Grid\GridCellRetrieval:

Public Member Functions

 __construct (protected \ilPCGrid $grid)
 
 getData (array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
 
 count (array $filter, array $parameters)
 
 isFieldNumeric (string $field)
 
 getData (array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
 
 count (array $filter, array $parameters)
 
 isFieldNumeric (string $field)
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 17 of file GridCellRetrieval.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\COPage\PC\Grid\GridCellRetrieval::__construct ( protected \ilPCGrid  $grid)

Definition at line 21 of file GridCellRetrieval.php.

23 {
24 }

Member Function Documentation

◆ count()

ILIAS\COPage\PC\Grid\GridCellRetrieval::count ( array  $filter,
array  $parameters 
)

Implements ILIAS\Repository\RetrievalInterface.

Definition at line 43 of file GridCellRetrieval.php.

46 : int {
47 return count($this->grid->getCellData());
48 }
count(array $filter, array $parameters)

◆ getData()

ILIAS\COPage\PC\Grid\GridCellRetrieval::getData ( array  $fields,
?Range  $range = null,
?Order  $order = null,
array  $filter = [],
array  $parameters = [] 
)

Implements ILIAS\Repository\RetrievalInterface.

Definition at line 26 of file GridCellRetrieval.php.

32 : \Generator {
33 $data = $this->grid->getCellData();
34
35 foreach ($data as $v) {
36 $row = $v;
37 // Add mandatory 'id' field for TableAdapterGUI
38 $row["id"] = $v["hier_id"] . ":" . $v["pc_id"];
39 yield $row;
40 }
41 }

◆ isFieldNumeric()

ILIAS\COPage\PC\Grid\GridCellRetrieval::isFieldNumeric ( string  $field)

Implements ILIAS\Repository\RetrievalInterface.

Definition at line 50 of file GridCellRetrieval.php.

52 : bool {
53 return false;
54 }

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