|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
This is the lowest common denominator of all popular browsers. More...
Inheritance diagram for ILIAS\Notifications\ilNotificationPushHandler:
Collaboration diagram for ILIAS\Notifications\ilNotificationPushHandler:Public Member Functions | |
| __construct (PushProviderInterface $provider) | |
| notify (ilNotificationObject $notification) | |
| getLastQueueResult () | |
Public Member Functions inherited from ILIAS\Notifications\ilNotificationHandler | |
| notify (ilNotificationObject $notification) | |
| showSettings (ilPropertyFormGUI $form) | |
| clear () | |
Protected Member Functions | |
| buildContent (ilNotificationObject $notification) | |
| handleResponse (int $http_code, string $response, string $auth) | |
| resetLastQueueResult () | |
| setLastQueueResult (PushQueueResult $result) | |
| validateForUser (ilObjUser $user, string $id) | |
Protected Attributes | |
| PushRepository | $subscription_repo |
| ilLogger | $logger |
| string | $public_key |
| string | $private_key |
| string | $sub |
| bool | $is_enabled |
| PushQueueResult | $last_queue_result |
Private Member Functions | |
| base64UrlDecode (string $data) | |
| publicVapidToPEM (string $key) | |
| hash (string $data, string $key, int $length=PHP_INT_MAX, ?string $preffix=null) | |
| padKey (string $key) | |
| The key needs to be preffixed for the request to fit the endpoints requirement. More... | |
Private Attributes | |
| PushProviderInterface | $provider |
This is the lowest common denominator of all popular browsers.
For more information see:
Definition at line 45 of file ilNotificationPushHandler.php.
| ILIAS\Notifications\ilNotificationPushHandler::__construct | ( | PushProviderInterface | $provider | ) |
Definition at line 56 of file ilNotificationPushHandler.php.
References $DIC, ILIAS\Notifications\ilNotificationPushHandler\$provider, $settings, ILIAS\Repository\logger(), and ILIAS\UI\examples\Menu\Sub\sub().
Here is the call graph for this function:
|
private |
Definition at line 150 of file ilNotificationPushHandler.php.
References $data.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the caller graph for this function:
|
protected |
Definition at line 187 of file ilNotificationPushHandler.php.
References ilUtil\getImagePath().
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Notifications\ilNotificationPushHandler::getLastQueueResult | ( | ) |
Definition at line 259 of file ilNotificationPushHandler.php.
References ILIAS\Notifications\ilNotificationPushHandler\$last_queue_result.
|
protected |
Definition at line 208 of file ilNotificationPushHandler.php.
References $response, ILIAS\Export\ImportStatus\FAILED, ILIAS\HTTP\StatusCode\HTTP_BAD_REQUEST, ILIAS\HTTP\StatusCode\HTTP_CREATED, ILIAS\HTTP\StatusCode\HTTP_FORBIDDEN, ILIAS\HTTP\StatusCode\HTTP_GONE, ILIAS\HTTP\StatusCode\HTTP_NOT_FOUND, ILIAS\HTTP\StatusCode\HTTP_OK, ILIAS\HTTP\StatusCode\HTTP_REQUEST_ENTITY_TOO_LARGE, ILIAS\HTTP\StatusCode\HTTP_TOO_MANY_REQUESTS, ILIAS\HTTP\StatusCode\HTTP_UNAUTHORIZED, ILIAS\Repository\logger(), ILIAS\Notifications\Model\Push\SUCCEEDED, and ILIAS\WebDAV\Objects\UNKNOWN.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| string | $preffix | If a info preffix is set it is required by the endpoint to be padded |
Definition at line 166 of file ilNotificationPushHandler.php.
References $data.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the caller graph for this function:| ILIAS\Notifications\ilNotificationPushHandler::notify | ( | ilNotificationObject | $notification | ) |
| bool | $force | The use of this parameter is explicitly not recommended! Forced notifications are distributed to a user without agknowledgement of their preferences and should therefore be used with care! |
Reimplemented from ILIAS\Notifications\ilNotificationHandler.
Definition at line 73 of file ilNotificationPushHandler.php.
References $data, $id, $response, ILIAS\Notifications\ilNotificationPushHandler\$sub, ILIAS\Notifications\ilNotificationPushHandler\base64UrlDecode(), ILIAS\Notifications\ilNotificationPushHandler\buildContent(), ILIAS\Export\ImportStatus\FAILED, ILIAS\Notifications\ilNotificationPushHandler\handleResponse(), ILIAS\Notifications\ilNotificationPushHandler\hash(), ILIAS\Repository\int(), ILIAS\Repository\logger(), ILIAS\Notifications\ilNotificationPushHandler\padKey(), ILIAS\Notifications\ilNotificationPushHandler\publicVapidToPEM(), ILIAS\Notifications\ilNotificationPushHandler\resetLastQueueResult(), ILIAS\Notifications\ilNotificationPushHandler\setLastQueueResult(), and ILIAS\Notifications\ilNotificationPushHandler\validateForUser().
Here is the call graph for this function:
|
private |
The key needs to be preffixed for the request to fit the endpoints requirement.
This might be due to the key conversion and url encoding.
Definition at line 178 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the caller graph for this function:
|
private |
Definition at line 155 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the caller graph for this function:
|
protected |
Definition at line 238 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the caller graph for this function:
|
protected |
Definition at line 243 of file ilNotificationPushHandler.php.
References ILIAS\Export\ImportStatus\FAILED, and ILIAS\Notifications\Model\Push\SUCCEEDED.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the caller graph for this function:
|
protected |
Definition at line 254 of file ilNotificationPushHandler.php.
References $id, and ilObjUser\getPref().
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 52 of file ilNotificationPushHandler.php.
|
protected |
Definition at line 53 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\getLastQueueResult().
|
protected |
Definition at line 48 of file ilNotificationPushHandler.php.
|
protected |
Definition at line 50 of file ilNotificationPushHandler.php.
|
private |
Definition at line 54 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\__construct().
|
protected |
Definition at line 49 of file ilNotificationPushHandler.php.
|
protected |
Definition at line 51 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
|
protected |
Definition at line 47 of file ilNotificationPushHandler.php.