12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- defined('GNUSOCIAL') || die();
- class InboxAction extends MailboxAction
- {
-
- function title() : string
- {
- if ($this->page > 1) {
-
-
- return sprintf(_m('Inbox for %1$s - page %2$d'), $this->user->getNickname(),
- $this->page);
- } else {
-
-
- return sprintf(_m('Inbox for %s'), $this->user->getNickname());
- }
- }
-
- function getMessages()
- {
- return MessageModel::inboxMessages($this->user, $this->page);
- }
-
- function getMessageList($message)
- {
- return new InboxMessageList($this, $message);
- }
-
- function getInstructions() : string
- {
-
- return _m('This is your inbox, which lists your incoming private messages.');
- }
- }
|