ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\Container\Skills\ContSkillRetrieval Class Reference
+ Inheritance diagram for ILIAS\Container\Skills\ContSkillRetrieval:
+ Collaboration diagram for ILIAS\Container\Skills\ContSkillRetrieval:

Public Member Functions

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

Detailed Description

Definition at line 28 of file ContSkillRetrieval.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Container\Skills\ContSkillRetrieval::__construct ( protected ContainerSkillManager  $cont_skill_manager)

Definition at line 32 of file ContSkillRetrieval.php.

34  {
35  }

Member Function Documentation

◆ count()

ILIAS\Container\Skills\ContSkillRetrieval::count ( array  $filter,
array  $parameters 
)

Implements ILIAS\Repository\RetrievalInterface.

Definition at line 56 of file ContSkillRetrieval.php.

59  : int {
60  $skills = $this->cont_skill_manager->getSkillsForTableGUI();
61  return count($skills);
62  }
count(array $filter, array $parameters)

◆ getData()

ILIAS\Container\Skills\ContSkillRetrieval::getData ( array  $fields,
?Range  $range = null,
?Order  $order = null,
array  $filter = [],
array  $parameters = [] 
)

Implements ILIAS\Repository\RetrievalInterface.

Definition at line 37 of file ContSkillRetrieval.php.

References ILIAS\UI\Implementation\Component\Table\$range.

43  : \Generator {
44  $skills = $this->cont_skill_manager->getSkillsForTableGUI();
45 
46  // Apply ordering and range
47  $skills = $this->applyOrder($skills, $order);
48  $skills = $this->applyRange($skills, $range);
49 
50  foreach ($skills as $skill) {
51  $skill["id"] = $skill["base_skill_id"] . ":" . $skill["tref_id"];
52  yield $skill;
53  }
54  }

◆ isFieldNumeric()

ILIAS\Container\Skills\ContSkillRetrieval::isFieldNumeric ( string  $field)

Implements ILIAS\Repository\RetrievalInterface.

Definition at line 64 of file ContSkillRetrieval.php.

64  : bool
65  {
66  return in_array($field, ["base_skill_id", "tref_id"]);
67  }

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