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

Public Member Functions

 __construct (protected DataRetrieval $data_retrieval, protected ilLanguage $lng, protected UIFactory $ui_factory, protected HTTP $http)
 
 get (URLBuilder $url_builder, URLBuilderToken $id_token, URLBuilderToken $action_token)
 
 get (URLBuilder $url_builder, URLBuilderToken $id_token, URLBuilderToken $action_token)
 

Data Fields

const string TYPE_COLUMN = 'type'
 
const string TITLE_COLUMN = 'title'
 
const string DESCRIPTION_COLUMN = 'description'
 
const string WRITABLE_COLUMN = 'writable'
 
const string DEASSIGN_ACTION = 'shareDeassign'
 

Detailed Description

Definition at line 31 of file TableBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Calendar\Shared\Outgoing\TableBuilder::__construct ( protected DataRetrieval  $data_retrieval,
protected ilLanguage  $lng,
protected UIFactory  $ui_factory,
protected HTTP  $http 
)

Definition at line 39 of file TableBuilder.php.

44 {
45 }

Member Function Documentation

◆ get()

ILIAS\Calendar\Shared\Outgoing\TableBuilder::get ( URLBuilder  $url_builder,
URLBuilderToken  $id_token,
URLBuilderToken  $action_token 
)

Implements ILIAS\Calendar\Shared\TableBuilderInterface.

Definition at line 47 of file TableBuilder.php.

51 : DataTable {
52 $columns = [];
53 $columns[self::TYPE_COLUMN] = $this->ui_factory->table()->column()->statusIcon(
54 $this->lng->txt('type')
55 )->withIsSortable(true);
56 $columns[self::TITLE_COLUMN] = $this->ui_factory->table()->column()->text(
57 $this->lng->txt('title')
58 )->withIsSortable(true);
59 $columns[self::DESCRIPTION_COLUMN] = $this->ui_factory->table()->column()->text(
60 $this->lng->txt('description')
61 )->withIsSortable(false);
62 $columns[self::WRITABLE_COLUMN] = $this->ui_factory->table()->column()->status(
63 $this->lng->txt('cal_shared_access_table_col')
64 )->withIsSortable(true);
65
66 $actions = [];
67 $actions[self::DEASSIGN_ACTION] = $this->ui_factory->table()->action()->standard(
68 $this->lng->txt('cal_unshare_cal'),
69 $url_builder->withParameter($action_token, self::DEASSIGN_ACTION),
70 $id_token
71 );
72
73 return $this->ui_factory->table()->data(
74 $this->data_retrieval,
75 $this->lng->txt('cal_cal_shared_with'),
76 $columns
77 )->withActions($actions)->withRequest($this->http->request());
78 }
static http()
Fetches the global http state from ILIAS.

References ILIAS\Calendar\Shared\Outgoing\TableBuilder\DEASSIGN_ACTION, ILIAS\Calendar\Shared\Outgoing\TableBuilder\DESCRIPTION_COLUMN, ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Calendar\Shared\Outgoing\TableBuilder\TITLE_COLUMN, ILIAS\Calendar\Shared\Outgoing\TableBuilder\TYPE_COLUMN, ILIAS\UI\URLBuilder\withParameter(), and ILIAS\Calendar\Shared\Outgoing\TableBuilder\WRITABLE_COLUMN.

+ Here is the call graph for this function:

Field Documentation

◆ DEASSIGN_ACTION

const string ILIAS\Calendar\Shared\Outgoing\TableBuilder::DEASSIGN_ACTION = 'shareDeassign'

Definition at line 37 of file TableBuilder.php.

Referenced by ILIAS\Calendar\Shared\Outgoing\TableBuilder\get().

◆ DESCRIPTION_COLUMN

const string ILIAS\Calendar\Shared\Outgoing\TableBuilder::DESCRIPTION_COLUMN = 'description'

◆ TITLE_COLUMN

const string ILIAS\Calendar\Shared\Outgoing\TableBuilder::TITLE_COLUMN = 'title'

◆ TYPE_COLUMN

const string ILIAS\Calendar\Shared\Outgoing\TableBuilder::TYPE_COLUMN = 'type'

◆ WRITABLE_COLUMN

const string ILIAS\Calendar\Shared\Outgoing\TableBuilder::WRITABLE_COLUMN = 'writable'

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