ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
This is the lowest common denominator of all popular browsers. More...
Public Member Functions | |
__construct (PushProviderInterface $provider) | |
notify (ilNotificationObject $notification) | |
getLastQueueResult () | |
![]() | |
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, ILIAS\Repository\logger(), and ILIAS\UI\examples\Menu\Sub\sub().
|
private |
Definition at line 151 of file ilNotificationPushHandler.php.
References $data.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
|
protected |
Definition at line 188 of file ilNotificationPushHandler.php.
References ilUtil\getImagePath().
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
ILIAS\Notifications\ilNotificationPushHandler::getLastQueueResult | ( | ) |
Definition at line 260 of file ilNotificationPushHandler.php.
References ILIAS\Notifications\ilNotificationPushHandler\$last_queue_result.
|
protected |
Definition at line 209 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(), and ILIAS\Notifications\Model\Push\SUCCEEDED.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
|
private |
string | $preffix | If a info preffix is set it is required by the endpoint to be padded |
Definition at line 167 of file ilNotificationPushHandler.php.
References $data.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
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, $post, $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().
|
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 179 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
|
private |
Definition at line 156 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
|
protected |
Definition at line 239 of file ilNotificationPushHandler.php.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
|
protected |
Definition at line 244 of file ilNotificationPushHandler.php.
References ILIAS\Export\ImportStatus\FAILED, and ILIAS\Notifications\Model\Push\SUCCEEDED.
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
|
protected |
Definition at line 255 of file ilNotificationPushHandler.php.
References $id, and ilObjUser\getPref().
Referenced by ILIAS\Notifications\ilNotificationPushHandler\notify().
|
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.