BlockGUI class for Personal Desktop Mail block.
More...
|
| | __construct () |
| |
| | getBlockType () |
| |
| | executeCommand () |
| |
| | getHTML () |
| |
| | getNoItemFoundContent () |
| |
| | __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()
| ilPDMailBlockGUI::__construct |
( |
| ) |
|
Definition at line 44 of file class.ilPDMailBlockGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), getMails(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilBlockGUI\setData(), ilBlockGUI\setLimit(), ilBlockGUI\setPresentation(), ilBlockGUI\setTitle(), and ILIAS\Repository\user().
47 $this->
lng = $DIC->language();
48 $this->
user = $DIC->user();
49 $this->
ctrl = $DIC->ctrl();
50 $this->setting = $DIC->settings();
51 $this->rbacsystem = $DIC->rbac()->system();
52 $this->
http = $DIC->http();
62 if ($this->rbacsystem->checkAccess(
'internal_mail', $umail->getMailObjectReferenceId())) {
63 $this->has_access =
true;
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
setTitle(string $a_title)
setPresentation(int $type)
◆ executeCommand()
| ilPDMailBlockGUI::executeCommand |
( |
| ) |
|
◆ getBlockType()
| ilPDMailBlockGUI::getBlockType |
( |
| ) |
|
◆ getHTML()
| ilPDMailBlockGUI::getHTML |
( |
| ) |
|
◆ getListItemForData()
| ilPDMailBlockGUI::getListItemForData |
( |
array |
$data | ) |
|
|
protected |
Definition at line 141 of file class.ilPDMailBlockGUI.php.
References Vendor\Package\$f, ilBlockGUI\$user, ilMail\_getIliasMailerName(), ANONYMOUS_USER_ID, ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ilObjUser\getAvatar(), ilObject\getId(), ilUtil\getImagePath(), ilObjUser\getPublicName(), ilMailUserCache\getUserObjectById(), IL_CAL_DATETIME, ILIAS\Repository\lng(), and ILIAS\Repository\ui().
143 $f = $this->
ui->factory();
152 $avatar = $this->
ui->factory()
158 $public_name_long = trim((
$data[
'import_name'] ??
'') .
' (' . $this->
lng->txt(
'user_deleted') .
')');
161 $new_mail_subj = htmlentities(
$data[
'm_subject'], ENT_NOQUOTES,
'UTF-8');
162 $this->
ctrl->setParameterByClass(ilMailFolderGUI::class,
'mobj_id', $this->inbox);
163 $this->
ctrl->setParameterByClass(ilMailFolderGUI::class,
'mail_id',
$data[
'mail_id']);
164 $new_mail_link = $this->
ctrl->getLinkTargetByClass([ilMailGUI::class, ilMailFolderGUI::class],
'showMail');
165 $this->
ctrl->clearParametersByClass(ilMailFolderGUI::class);
167 $button =
$f->link()->standard($new_mail_subj, $new_mail_link);
169 $item =
$f->item()->standard($button);
170 if ($avatar !== null) {
171 $item = $item->withLeadAvatar($avatar);
174 $item = $item->withProperties([
175 $this->
lng->txt(
'from') => $public_name_long,
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ilObjUser $user=null,)
static getUserObjectById(int $usr_id)
static _getIliasMailerName()
getPublicName()
returns firstname lastname and login if profile is public, login otherwise
Common interface to all items.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
◆ getMails()
| ilPDMailBlockGUI::getMails |
( |
| ) |
|
|
protected |
◆ getNoItemFoundContent()
| ilPDMailBlockGUI::getNoItemFoundContent |
( |
| ) |
|
◆ getOverview()
| ilPDMailBlockGUI::getOverview |
( |
| ) |
|
|
protected |
◆ getScreenMode()
| static ilPDMailBlockGUI::getScreenMode |
( |
| ) |
|
|
static |
◆ isRepositoryObject()
| ilPDMailBlockGUI::isRepositoryObject |
( |
| ) |
|
|
protected |
◆ preloadData()
| ilPDMailBlockGUI::preloadData |
( |
array |
$data | ) |
|
|
protected |
◆ $block_type
| string ilPDMailBlockGUI::$block_type = 'pdmail' |
|
static |
◆ $has_access
| bool ilPDMailBlockGUI::$has_access = false |
|
private |
◆ $http
◆ $inbox
| int ilPDMailBlockGUI::$inbox |
|
protected |
◆ $mails
| array ilPDMailBlockGUI::$mails = [] |
|
protected |
◆ $rbacsystem
◆ $refinery
| readonly Refinery ilPDMailBlockGUI::$refinery |
|
private |
◆ $requestMailObjId
| int ilPDMailBlockGUI::$requestMailObjId = 0 |
|
private |
◆ $setting
The documentation for this class was generated from the following file: