BlockGUI class for Personal Desktop Mail block.
More...
|
| | __construct () |
| |
| | getBlockType () |
| |
| | executeCommand () |
| |
| | getHTML () |
| |
| | deleteMail () |
| |
| | __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\MetaData\Repository\Validation\Data\__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.
setTitle(string $a_title)
setPresentation(int $type)
◆ deleteMail()
| ilPDMailBlockGUI::deleteMail |
( |
| ) |
|
Definition at line 169 of file class.ilPDMailBlockGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
171 $this->
lng->loadLanguageModule(
'mail');
177 if ($this->
http->wrapper()->query()->has(
'mail_id')) {
178 $mailId = $this->
http->wrapper()->query()->retrieve(
'mail_id', $this->
refinery->kindlyTo()->int());
181 if ($this->
http->wrapper()->query()->has(
'mobj_id')) {
182 $mobjId = $this->
http->wrapper()->query()->retrieve(
'mobj_id', $this->
refinery->kindlyTo()->int());
186 $this->requestMailObjId = $mbox->getInboxFolder();
189 if ($umail->moveMailsToFolder(
191 $mbox->getTrashFolder()
193 $this->main_tpl->setOnScreenMessage(
'info', $this->
lng->txt(
'mail_moved_to_trash'),
true);
195 $this->main_tpl->setOnScreenMessage(
'info', $this->
lng->txt(
'mail_move_error'),
true);
197 $this->
ctrl->redirectByClass(ilDashboardGUI::class,
'show');
static http()
Fetches the global http state from ILIAS.
Mail Box class Base class for creating and handling mail boxes.
◆ executeCommand()
| ilPDMailBlockGUI::executeCommand |
( |
| ) |
|
◆ getBlockType()
| ilPDMailBlockGUI::getBlockType |
( |
| ) |
|
◆ getHTML()
| ilPDMailBlockGUI::getHTML |
( |
| ) |
|
◆ getListItemForData()
| ilPDMailBlockGUI::getListItemForData |
( |
array |
$data | ) |
|
|
protected |
Definition at line 213 of file class.ilPDMailBlockGUI.php.
References Vendor\Package\$f, ilBlockGUI\$user, ilMail\_getIliasMailerName(), ANONYMOUS_USER_ID, ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ilObject\getId(), ilUtil\getImagePath(), ilObjUser\getPersonalPicturePath(), ilObjUser\getPublicName(), ilMailUserCache\getUserObjectById(), IL_CAL_DATE, ILIAS\Repository\lng(), and ILIAS\Repository\ui().
215 $f = $this->
ui->factory();
224 $public_name_long = trim((
$data[
'import_name'] ??
'') .
' (' . $this->
lng->txt(
'user_deleted') .
')');
234 $new_mail_subj = htmlentities(
$data[
'm_subject'], ENT_NOQUOTES,
'UTF-8');
235 $this->
ctrl->setParameter($this,
'mobj_id', $this->inbox);
236 $this->
ctrl->setParameter($this,
'mail_id',
$data[
'mail_id']);
237 $new_mail_link = $this->
ctrl->getLinkTarget($this,
'showMail');
238 $this->
ctrl->clearParameters($this);
241 $button =
$f->button()->shy($new_mail_subj, $new_mail_link);
243 $item =
$f->item()->standard($button)->withDescription($new_mail_date);
244 if ($img_sender !==
"") {
245 $item = $item->withLeadImage(
$f->image()->standard($img_sender, $alt_sender));
static getUserObjectById(int $usr_id)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
static _getIliasMailerName()
getPublicName()
returns firstname lastname and login if profile is public, login otherwise
Common interface to all items.
getPersonalPicturePath(string $a_size="small", bool $a_force_pic=false)
◆ getMails()
| ilPDMailBlockGUI::getMails |
( |
| ) |
|
|
protected |
◆ getOverview()
| ilPDMailBlockGUI::getOverview |
( |
| ) |
|
|
protected |
◆ getScreenMode()
| static ilPDMailBlockGUI::getScreenMode |
( |
| ) |
|
|
static |
◆ isRepositoryObject()
| ilPDMailBlockGUI::isRepositoryObject |
( |
| ) |
|
|
protected |
◆ preloadData()
| ilPDMailBlockGUI::preloadData |
( |
array |
$data | ) |
|
|
protected |
◆ showMail()
| ilPDMailBlockGUI::showMail |
( |
| ) |
|
|
protected |
Definition at line 128 of file class.ilPDMailBlockGUI.php.
References $requestMailObjId, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
134 if ($this->
http->wrapper()->query()->has(
'mail_id')) {
135 $mailId = $this->
http->wrapper()->query()->retrieve(
'mail_id', $this->
refinery->kindlyTo()->int());
138 if ($this->
http->wrapper()->query()->has(
'mobj_id')) {
139 $mobjId = $this->
http->wrapper()->query()->retrieve(
'mobj_id', $this->
refinery->kindlyTo()->int());
141 $content_block->setContent($mail_gui->getPDMailHTML(
145 $content_block->setTitle($this->
lng->txt(
"message"));
147 $content_block->addBlockCommand(
148 "ilias.php?baseClass=ilMailGUI&mail_id=" .
149 $mailId .
"&mobj_id=" 150 . $mobjId .
"&type=reply",
151 $this->
lng->txt(
"reply")
153 $content_block->addBlockCommand(
154 "ilias.php?baseClass=ilMailGUI&mail_id=" .
155 $mailId .
"&mobj_id=" 156 . $mobjId .
"&type=read",
157 $this->
lng->txt(
"inbox")
160 $this->
ctrl->setParameter($this,
'mail_id', $mailId);
161 $content_block->addBlockCommand(
162 $this->
ctrl->getLinkTarget($this,
'deleteMail'),
163 $this->
lng->txt(
'delete')
166 return $content_block->getHTML();
Mail User Interface class.
static http()
Fetches the global http state from ILIAS.
◆ $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: