ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Repository\Table\CommonTableBuilder Class Reference
+ Inheritance diagram for ILIAS\Repository\Table\CommonTableBuilder:
+ Collaboration diagram for ILIAS\Repository\Table\CommonTableBuilder:

Public Member Functions

 __construct (protected object $parent_gui, protected string $parent_cmd, bool $numeric_ids=true)
 
 getTable ()
 

Protected Member Functions

 getId ()
 
 getTitle ()
 
 getRetrieval ()
 
 getNamespace ()
 
 getOrderingCommand ()
 
 activeAction (string $action, array $data_row)
 
 transformRow (array $data_row)
 transform raw data array to table row data array More...
 
 build (TableAdapterGUI $table)
 

Protected Attributes

TableAdapterGUI $table
 

Detailed Description

Definition at line 25 of file CommonTableBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\Table\CommonTableBuilder::__construct ( protected object  $parent_gui,
protected string  $parent_cmd,
bool  $numeric_ids = true 
)

Definition at line 29 of file CommonTableBuilder.php.

References ILIAS\Repository\Table\CommonTableBuilder\build(), ILIAS\Repository\Table\CommonTableBuilder\getId(), ILIAS\Repository\Table\CommonTableBuilder\getNamespace(), ILIAS\Repository\Table\CommonTableBuilder\getOrderingCommand(), ILIAS\Repository\Table\CommonTableBuilder\getRetrieval(), and ILIAS\Repository\Table\CommonTableBuilder\getTitle().

33  {
34  $this->table = new TableAdapterGUI(
35  $this->getId(),
36  $this->getTitle(),
37  $this->getRetrieval(),
38  $parent_gui,
39  $parent_cmd,
40  $this->getNamespace(),
41  $this->getOrderingCommand(),
42  \Closure::fromCallable([$this, 'activeAction']),
43  \Closure::fromCallable([$this, 'transformRow']),
44  $numeric_ids
45  );
46  $this->table = $this->build($this->table);
47  }
+ Here is the call graph for this function:

Member Function Documentation

◆ activeAction()

ILIAS\Repository\Table\CommonTableBuilder::activeAction ( string  $action,
array  $data_row 
)
protected

Definition at line 65 of file CommonTableBuilder.php.

65  : bool
66  {
67  return true;
68  }

◆ build()

ILIAS\Repository\Table\CommonTableBuilder::build ( TableAdapterGUI  $table)
abstractprotected

◆ getId()

ILIAS\Repository\Table\CommonTableBuilder::getId ( )
abstractprotected

Referenced by ILIAS\Repository\Table\CommonTableBuilder\__construct().

+ Here is the caller graph for this function:

◆ getNamespace()

ILIAS\Repository\Table\CommonTableBuilder::getNamespace ( )
protected

Definition at line 55 of file CommonTableBuilder.php.

Referenced by ILIAS\Repository\Table\CommonTableBuilder\__construct().

55  : string
56  {
57  return "";
58  }
+ Here is the caller graph for this function:

◆ getOrderingCommand()

ILIAS\Repository\Table\CommonTableBuilder::getOrderingCommand ( )
protected

Definition at line 60 of file CommonTableBuilder.php.

Referenced by ILIAS\Repository\Table\CommonTableBuilder\__construct().

60  : string
61  {
62  return "";
63  }
+ Here is the caller graph for this function:

◆ getRetrieval()

ILIAS\Repository\Table\CommonTableBuilder::getRetrieval ( )
abstractprotected

Referenced by ILIAS\Repository\Table\CommonTableBuilder\__construct().

+ Here is the caller graph for this function:

◆ getTable()

ILIAS\Repository\Table\CommonTableBuilder::getTable ( )
final

Definition at line 80 of file CommonTableBuilder.php.

References ILIAS\Repository\Table\CommonTableBuilder\$table.

81  : TableAdapterGUI {
82  return $this->table;
83  }

◆ getTitle()

ILIAS\Repository\Table\CommonTableBuilder::getTitle ( )
abstractprotected

Referenced by ILIAS\Repository\Table\CommonTableBuilder\__construct().

+ Here is the caller graph for this function:

◆ transformRow()

ILIAS\Repository\Table\CommonTableBuilder::transformRow ( array  $data_row)
protected

transform raw data array to table row data array

Definition at line 73 of file CommonTableBuilder.php.

References ILIAS\Repository\Table\CommonTableBuilder\build().

Referenced by ILIAS\Container\Skills\ContSkillMemberTableBuilder\getRetrieval().

73  : array
74  {
75  return $data_row;
76  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $table


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