ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Catgory\AssignRoleTableBuilder Class Reference
+ Inheritance diagram for ILIAS\Catgory\AssignRoleTableBuilder:
+ Collaboration diagram for ILIAS\Catgory\AssignRoleTableBuilder:

Public Member Functions

 __construct (protected InternalDomainService $domain, protected InternalGUIService $gui, protected int $ref_id, protected int $managed_user_id, protected int $managing_user_id, object $parent_gui, string $parent_cmd)
 
- Public Member Functions inherited from ILIAS\Repository\Table\CommonTableBuilder
 __construct (protected object $parent_gui, protected string $parent_cmd, bool $numeric_ids=true)
 
 getTable ()
 

Protected Member Functions

 getId ()
 
 getTitle ()
 
 getRetrieval ()
 
 transformRow (array $data_row)
 transform raw data array to table row data array More...
 
 build (TableAdapterGUI $table)
 
- Protected Member Functions inherited from ILIAS\Repository\Table\CommonTableBuilder
 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)
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Repository\Table\CommonTableBuilder
TableAdapterGUI $table
 

Detailed Description

Definition at line 30 of file AssignRoleTableBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Catgory\AssignRoleTableBuilder::__construct ( protected InternalDomainService  $domain,
protected InternalGUIService  $gui,
protected int  $ref_id,
protected int  $managed_user_id,
protected int  $managing_user_id,
object  $parent_gui,
string  $parent_cmd 
)

Definition at line 32 of file AssignRoleTableBuilder.php.

40 {
41 parent::__construct($parent_gui, $parent_cmd);
42 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ build()

ILIAS\Catgory\AssignRoleTableBuilder::build ( TableAdapterGUI  $table)
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 83 of file AssignRoleTableBuilder.php.

84 {
85 $lng = $this->domain->lng();
87 ->textColumn('title', $lng->txt('title'), true)
88 ->textColumn('desc', $lng->txt('description'))
89 ->textColumn('type', $lng->txt('type'))
90 ->iconColumn('icon', $lng->txt('info_assigned'), false);
91
93 'assignSave',
94 $lng->txt("change_assignment")
95 );
96
97 return $table;
98 }
textColumn(string $key, string $title, bool $sortable=false)
multiAction(string $action, string $title)
global $lng
Definition: privfeed.php:31

References $lng, ILIAS\Repository\Table\CommonTableBuilder\$table, ILIAS\Repository\Table\TableAdapterGUI\multiAction(), and ILIAS\Repository\Table\TableAdapterGUI\textColumn().

+ Here is the call graph for this function:

◆ getId()

ILIAS\Catgory\AssignRoleTableBuilder::getId ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 44 of file AssignRoleTableBuilder.php.

44 : string
45 {
46 return 'ilcatluaar';
47 }

◆ getRetrieval()

ILIAS\Catgory\AssignRoleTableBuilder::getRetrieval ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 56 of file AssignRoleTableBuilder.php.

56 : RetrievalInterface
57 {
58 return $this->domain->assignedRoledRetrieval(
59 $this->ref_id,
60 $this->managed_user_id,
61 $this->managing_user_id
62 );
63 }

◆ getTitle()

ILIAS\Catgory\AssignRoleTableBuilder::getTitle ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 49 of file AssignRoleTableBuilder.php.

49 : string
50 {
51 $lng = $this->domain->lng();
52 return $lng->txt('role_assignment') . ' (' .
53 $this->domain->profile()->getNamePresentation($this->managed_user_id, true) . ')';
54 }

References $lng.

◆ transformRow()

ILIAS\Catgory\AssignRoleTableBuilder::transformRow ( array  $data_row)
protected

transform raw data array to table row data array

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 65 of file AssignRoleTableBuilder.php.

65 : array
66 {
67 $f = $this->gui->ui()->factory();
68
69 $icon = $data_row["assigned"] ?? false
70 ? $f->symbol()->icon()->custom('assets/images/standard/icon_checked.svg', '', 'small')
71 : $f->symbol()->icon()->custom('assets/images/standard/icon_unchecked.svg', '', 'small');
72
73 return [
74 'id' => $data_row['id'],
75 'title' => $data_row['title'],
76 'desc' => $data_row['desc'],
77 'type' => $data_row['type'],
78 'icon' => $icon
79 ];
80 }

References Vendor\Package\$f.


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