ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder Class Reference
+ Inheritance diagram for ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder:
+ Collaboration diagram for ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder:

Public Member Functions

 __construct (protected InternalDomainService $domain, protected InternalGUIService $gui, protected bool $has_write_permission, 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 29 of file PortfolioRoleAssignmentTableBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder::__construct ( protected InternalDomainService  $domain,
protected InternalGUIService  $gui,
protected bool  $has_write_permission,
object  $parent_gui,
string  $parent_cmd 
)

Definition at line 31 of file PortfolioRoleAssignmentTableBuilder.php.

37 {
38 parent::__construct($parent_gui, $parent_cmd, false);
39 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ build()

ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder::build ( TableAdapterGUI  $table)
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 65 of file PortfolioRoleAssignmentTableBuilder.php.

66 {
67 $lng = $this->domain->lng();
68
70 ->textColumn("role_title", $lng->txt("prtf_role_title"))
71 ->textColumn("template_title", $lng->txt("prtf_template_title"));
72
73 if ($this->has_write_permission) {
75 "confirmAssignmentDeletion",
76 $lng->txt("prtf_delete_assignment"),
77 true
78 );
79 }
80
81 return $table;
82 }
textColumn(string $key, string $title, bool $sortable=false)
singleAction(string $action, string $title, bool $async=false)
global $lng
Definition: privfeed.php:26

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

+ Here is the call graph for this function:

◆ getId()

ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder::getId ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 41 of file PortfolioRoleAssignmentTableBuilder.php.

41 : string
42 {
43 return "portfolio_role_assignments";
44 }

◆ getRetrieval()

ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder::getRetrieval ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 51 of file PortfolioRoleAssignmentTableBuilder.php.

51 : RetrievalInterface
52 {
53 return $this->domain->portfolioRoleAssignmentRetrieval();
54 }

◆ getTitle()

ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder::getTitle ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 46 of file PortfolioRoleAssignmentTableBuilder.php.

46 : string
47 {
48 return $this->domain->lng()->txt("prtf_role_assignment");
49 }

◆ transformRow()

ILIAS\Portfolio\Administration\PortfolioRoleAssignmentTableBuilder::transformRow ( array  $data_row)
protected

transform raw data array to table row data array

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 56 of file PortfolioRoleAssignmentTableBuilder.php.

56 : array
57 {
58 return [
59 "id" => $data_row["id"],
60 "role_title" => $data_row["role_title"],
61 "template_title" => $data_row["template_title"]
62 ];
63 }

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