ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\MediaPool\PageUsage\TableBuilder Class Reference
+ Inheritance diagram for ILIAS\MediaPool\PageUsage\TableBuilder:
+ Collaboration diagram for ILIAS\MediaPool\PageUsage\TableBuilder:

Public Member Functions

 __construct (protected InternalDomainService $domain, protected InternalGUIService $gui, protected \ilMediaPoolPage $page, protected bool $include_hist, 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...
 
 buildObjectLink (array $data_row)
 
 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 TableBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MediaPool\PageUsage\TableBuilder::__construct ( protected InternalDomainService  $domain,
protected InternalGUIService  $gui,
protected \ilMediaPoolPage  $page,
protected bool  $include_hist,
object  $parent_gui,
string  $parent_cmd 
)

Definition at line 32 of file TableBuilder.php.

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

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ build()

ILIAS\MediaPool\PageUsage\TableBuilder::build ( TableAdapterGUI  $table)
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 83 of file TableBuilder.php.

84 {
85 $lng = $this->domain->lng();
86
87 return $table
88 ->linkColumn("object", $lng->txt("mob_object"))
89 ->textColumn("type", $lng->txt("type"))
90 ->textColumn("versions", $lng->txt("cont_versions"));
91 }
linkColumn(string $key, string $title, bool $sortable=false)
global $lng
Definition: privfeed.php:26

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

+ Here is the call graph for this function:

◆ buildObjectLink()

ILIAS\MediaPool\PageUsage\TableBuilder::buildObjectLink ( array  $data_row)
protected

Definition at line 71 of file TableBuilder.php.

71 : Link
72 {
73 $link = $this->gui->ui()->factory()->link()->standard(
74 $data_row["object"],
75 $data_row["object_link"]
76 );
77 if ($data_row["object_link"] === "") {
78 $link = $link->withDisabled();
79 }
80 return $link;
81 }

References ILIAS\UI\Component\Link\Link\withDisabled().

Referenced by ILIAS\MediaPool\PageUsage\TableBuilder\transformRow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getId()

ILIAS\MediaPool\PageUsage\TableBuilder::getId ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 43 of file TableBuilder.php.

43 : string
44 {
45 return "mep_page_usages";
46 }

◆ getRetrieval()

ILIAS\MediaPool\PageUsage\TableBuilder::getRetrieval ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 53 of file TableBuilder.php.

53 : RetrievalInterface
54 {
55 return $this->domain->mediaPoolPageUsagesRetrieval(
56 $this->page,
57 $this->include_hist
58 );
59 }

◆ getTitle()

ILIAS\MediaPool\PageUsage\TableBuilder::getTitle ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 48 of file TableBuilder.php.

48 : string
49 {
50 return $this->domain->lng()->txt("cont_mob_usages");
51 }

◆ transformRow()

ILIAS\MediaPool\PageUsage\TableBuilder::transformRow ( array  $data_row)
protected

transform raw data array to table row data array

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 61 of file TableBuilder.php.

61 : array
62 {
63 return [
64 "id" => $data_row["id"],
65 "object" => $this->buildObjectLink($data_row),
66 "type" => $data_row["type"],
67 "versions" => $data_row["versions"]
68 ];
69 }

References ILIAS\MediaPool\PageUsage\TableBuilder\buildObjectLink().

+ Here is the call graph for this function:

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