@ilCtrl_IsCalledBy ilTutorialSupportBlockGUI: ilColumnGUI
More...
|
| | __construct () |
| |
| | getData () |
| |
| | getBlockType () |
| |
| | __construct () |
| |
| | getBlockType () |
| |
| | setData (array $a_data) |
| |
| | getData () |
| |
| | setPresentation (int $type) |
| |
| | getPresentation () |
| |
| | setBlockId (string $a_block_id="0") |
| |
| | getBlockId () |
| |
| | setGuiObject (object $a_gui_object) |
| | Set GuiObject. More...
|
| |
| | getGuiObject () |
| |
| | setTitle (string $a_title) |
| |
| | getTitle () |
| |
| | setOffset (int $a_offset) |
| |
| | getOffset () |
| |
| | checkOffset (int $offset) |
| |
| | setLimit (int $a_limit) |
| |
| | getLimit () |
| |
| | setEnableEdit (bool $a_enableedit) |
| |
| | getEnableEdit () |
| |
| | setRepositoryMode (bool $a_repositorymode) |
| |
| | getRepositoryMode () |
| |
| | setSubtitle (string $a_subtitle) |
| |
| | getSubtitle () |
| |
| | setRefId (int $a_refid) |
| | Set Ref Id (only used if isRepositoryObject() is true). More...
|
| |
| | getRefId () |
| |
| | setAdminCommands (bool $a_admincommands) |
| |
| | getAdminCommands () |
| |
| | setEnableNumInfo (bool $a_enablenuminfo) |
| |
| | getEnableNumInfo () |
| |
| | setProperties (array $a_properties) |
| | This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More...
|
| |
| | getProperty (string $a_property) |
| |
| | setProperty (string $a_property, string $a_value) |
| |
| | setRowTemplate (string $a_rowtemplatename, string $a_rowtemplatedir="") |
| | Set Row Template Name. More...
|
| |
| | getNavParameter () |
| |
| | getConfigParameter () |
| |
| | getMoveParameter () |
| |
| | getRowTemplateName () |
| |
| | getRowTemplateDir () |
| |
| | addBlockCommand (string $a_href, string $a_text, string $a_onclick="", ?RoundTrip $modal=null) |
| |
| | getBlockCommands () |
| |
| | getHTML () |
| |
| | getAsynch () |
| | Use this for final get before sending asynchronous output (ajax) per echo to output. More...
|
| |
| | getPaginationViewControl () |
| | Fill previous/next row. More...
|
| |
| | getViewControlsForPanel () |
| |
| | sortObject () |
| |
| | addSortOption (string $option, string $label, bool $active) |
| |
| | setSortTarget (string $target) |
| |
| | addPresentation (string $label, string $target, bool $active) |
| |
| | getNoItemFoundContent () |
| |
◆ __construct()
| ilTutorialSupportBlockGUI::__construct |
( |
| ) |
|
Reimplemented from ilBlockGUI.
Definition at line 47 of file class.ilTutorialSupportBlockGUI.php.
48 {
51 $this->
http = $DIC->http();
53 $this->ilias_settings =
$DIC[
'ilSetting'];
54 $this->rbac_system =
$DIC[
'rbacsystem'];
57 $this->
setTitle($this->
lng->txt(
'tutorial_support_block_title'));
59 }
setTitle(string $a_title)
setPresentation(int $type)
setBlockId(string $a_block_id="0")
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilBlockGUI\setBlockId(), ilBlockGUI\setLimit(), ilBlockGUI\setPresentation(), and ilBlockGUI\setTitle().
◆ areILIASGlobalProfilesEnabled()
| ilTutorialSupportBlockGUI::areILIASGlobalProfilesEnabled |
( |
| ) |
|
|
protected |
◆ createMailShyButton()
| ilTutorialSupportBlockGUI::createMailShyButton |
( |
string |
$mail_url | ) |
|
|
protected |
◆ createTutorItem()
| ilTutorialSupportBlockGUI::createTutorItem |
( |
string |
$mail_url, |
|
|
string |
$name, |
|
|
int |
$tutor_id |
|
) |
| |
|
protected |
Definition at line 72 of file class.ilTutorialSupportBlockGUI.php.
77 $properties = [];
78 if ($mail_url !== self::EMPTY_MAIL_URL_STRING) {
80 $property_name = $this->
lng->txt(
'tutorial_support_block_contact');
81 $properties[$property_name] = $mail_button;
82 }
84 $tutor_item = $this->
ui->factory()->item()->standard($name)
85 ->withLeadAvatar($avatar)
86 ->withProperties($properties);
87 if (
89 $this->
user->isAnonymous() ||
90 !$this->hasContactEnabled($tutor_id)
91 ) {
92 return $tutor_item;
93 }
94 $dropdown_actions[] = $this->
ui->factory()->legacy()->content(
96 );
97 $dropdown = $this->
ui->factory()->dropdown()->standard($dropdown_actions);
98 return $tutor_item->withActions(
$dropdown);
99 }
static _getPersonalPicturePath(int $usr_id, string $size='small', bool $force_pic=false)
isTutorCurrentUser(int $tutor_id)
createMailShyButton(string $mail_url)
Common interface to all items.
References createMailShyButton(), and ILIAS\Repository\lng().
◆ getBlockType()
| ilTutorialSupportBlockGUI::getBlockType |
( |
| ) |
|
◆ getData()
| ilTutorialSupportBlockGUI::getData |
( |
| ) |
|
Reimplemented from ilBlockGUI.
Definition at line 194 of file class.ilTutorialSupportBlockGUI.php.
194 : array
195 {
197 return [];
198 }
201 foreach ($tutor_ids as $tutor_id) {
203 if (
205 $this->
user->isAnonymous()
206 ) {
207 continue;
208 }
210 }
212 }
isUserValid(ilObjUser $tutor)
getTutorData(ilObjUser $tutor)
isCurrentUserAllowedToSeeTutorBlock()
References $data, and ILIAS\Repository\user().
◆ getListItemForData()
| ilTutorialSupportBlockGUI::getListItemForData |
( |
array |
$data | ) |
|
|
protected |
Get list item for data array.
- Parameters
-
- Returns
- null|\ILIAS\UI\Component\Item\Item
Reimplemented from ilBlockGUI.
Definition at line 214 of file class.ilTutorialSupportBlockGUI.php.
215 {
217 (
string)
$data[self::DATA_MAIL_URL],
218 (
string)
$data[self::DATA_NAME],
219 (
int)
$data[self::DATA_TUTOR_ID]
220 );
221 }
createTutorItem(string $mail_url, string $name, int $tutor_id,)
References $data.
◆ getMailUrlOfUser()
| ilTutorialSupportBlockGUI::getMailUrlOfUser |
( |
ilObjUser |
$tutor | ) |
|
|
protected |
◆ getTutorData()
| ilTutorialSupportBlockGUI::getTutorData |
( |
ilObjUser |
$tutor | ) |
|
|
protected |
◆ getTutorIds()
| ilTutorialSupportBlockGUI::getTutorIds |
( |
| ) |
|
|
protected |
◆ hasContactEnabled()
| ilTutorialSupportBlockGUI::hasContactEnabled |
( |
int |
$tutor_id | ) |
|
|
protected |
◆ hasPublicProfile()
| ilTutorialSupportBlockGUI::hasPublicProfile |
( |
ilObjUser |
$tutor | ) |
|
|
protected |
◆ initRefIdFromQuery()
| ilTutorialSupportBlockGUI::initRefIdFromQuery |
( |
| ) |
|
|
protected |
◆ isCurrentUserAllowedToSeeTutorBlock()
| ilTutorialSupportBlockGUI::isCurrentUserAllowedToSeeTutorBlock |
( |
| ) |
|
|
protected |
◆ isIliasInternalMailEnabled()
| ilTutorialSupportBlockGUI::isIliasInternalMailEnabled |
( |
| ) |
|
|
protected |
◆ isRepositoryObject()
| ilTutorialSupportBlockGUI::isRepositoryObject |
( |
| ) |
|
|
protected |
◆ isTutorCurrentUser()
| ilTutorialSupportBlockGUI::isTutorCurrentUser |
( |
int |
$tutor_id | ) |
|
|
protected |
◆ isUserValid()
| ilTutorialSupportBlockGUI::isUserValid |
( |
ilObjUser |
$tutor | ) |
|
|
protected |
◆ $http
| HttpServices ilTutorialSupportBlockGUI::$http |
|
protected |
◆ $ilias_settings
| ilSetting ilTutorialSupportBlockGUI::$ilias_settings |
|
protected |
◆ $rbac_system
◆ $refinery
| RefineryFactory ilTutorialSupportBlockGUI::$refinery |
|
protected |
◆ BLOCK_TYPE
| const ilTutorialSupportBlockGUI::BLOCK_TYPE = 'tusu' |
|
protected |
◆ DATA_MAIL_URL
| const ilTutorialSupportBlockGUI::DATA_MAIL_URL = 'mail_url' |
|
protected |
◆ DATA_NAME
| const ilTutorialSupportBlockGUI::DATA_NAME = 'name' |
|
protected |
◆ DATA_TUTOR_ID
| const ilTutorialSupportBlockGUI::DATA_TUTOR_ID = 'tutor_id' |
|
protected |
◆ EMPTY_MAIL_URL_STRING
| const ilTutorialSupportBlockGUI::EMPTY_MAIL_URL_STRING = '' |
|
protected |
◆ ITEM_LIMIT
| const ilTutorialSupportBlockGUI::ITEM_LIMIT = 5 |
|
protected |
The documentation for this class was generated from the following file: