TwistPHP Documentation

notifications

File path: dist/twist/Core/Models/User/SessionHandler.model.php
Namespace: Twist\Core\Models\User
Extends:

notificationsGet and set the device notifications status, if set a new device being used to login will send an email notification to the user.

Parameters

Name Type Description
$intUserIDintegern/a
[$blNotificationStatus = null]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intUserID 124;
$blNotificationStatus null;

//Call the function notifications with the example vars
$resSessionHandler = new \Twist\Core\Models\User\SessionHandler();
$resSessionHandler -> notifications($intUserID$blNotificationStatus);