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

Public Member Functions

 __construct (protected InternalDomainService $domain, protected InternalGUIService $gui, protected \ilTaxonomyTree $tree, protected int $parent_node_id, protected \ilObjTaxonomy $taxonomy, 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...
 
 getOrderingCommand ()
 
 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 28 of file TableBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Taxonomy\Nodes\TableBuilder::__construct ( protected InternalDomainService  $domain,
protected InternalGUIService  $gui,
protected \ilTaxonomyTree  $tree,
protected int  $parent_node_id,
protected \ilObjTaxonomy  $taxonomy,
object  $parent_gui,
string  $parent_cmd 
)

Definition at line 30 of file TableBuilder.php.

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

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ build()

ILIAS\Taxonomy\Nodes\TableBuilder::build ( TableAdapterGUI  $table)
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 85 of file TableBuilder.php.

85 : TableAdapterGUI
86 {
87 $lng = $this->domain->lng();
88
89 return $table
90 ->linkColumn("title", $lng->txt("title"))
91 ->singleAction("editTaxNodeTitle", $lng->txt("edit"), true)
92 ->singleAction("confirmDeleteTaxNode", $lng->txt("delete"), true)
93 ->standardAction("moveTaxNode", $lng->txt("move"));
94 }
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:

◆ getId()

ILIAS\Taxonomy\Nodes\TableBuilder::getId ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 42 of file TableBuilder.php.

42 : string
43 {
44 return "taxonomy_nodes";
45 }

◆ getOrderingCommand()

ILIAS\Taxonomy\Nodes\TableBuilder::getOrderingCommand ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 78 of file TableBuilder.php.

78 : string
79 {
80 return $this->taxonomy->getSortingMode() === \ilObjTaxonomy::SORT_MANUAL
81 ? "saveSorting"
82 : "";
83 }

References ilObjTaxonomy\SORT_MANUAL.

◆ getRetrieval()

ILIAS\Taxonomy\Nodes\TableBuilder::getRetrieval ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 52 of file TableBuilder.php.

52 : RetrievalInterface
53 {
54 return new Retrieval(
55 $this->tree,
56 $this->parent_node_id,
57 $this->taxonomy->getSortingMode() === \ilObjTaxonomy::SORT_MANUAL
58 );
59 }

References ilObjTaxonomy\SORT_MANUAL.

◆ getTitle()

ILIAS\Taxonomy\Nodes\TableBuilder::getTitle ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 47 of file TableBuilder.php.

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

◆ transformRow()

ILIAS\Taxonomy\Nodes\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 $node_id = (int) $data_row["child"];
64 $ctrl = $this->gui->ctrl();
65 $ctrl->setParameter($this->parent_gui, "tax_node", $node_id);
66 $url = $ctrl->getLinkTarget($this->parent_gui, $this->parent_cmd);
67 $ctrl->setParameter($this->parent_gui, "tax_node", $this->parent_node_id);
68
69 return [
70 "id" => $node_id,
71 "title" => $this->gui->ui()->factory()->link()->standard(
72 (string) $data_row["title"],
73 $url
74 )
75 ];
76 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

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