TwistPHP Documentation

editDevice

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

editDeviceEdit the name of a given device

Parameters

Name Type Description
$intUserIDintegern/a
$mxdDevicemixedn/a
$strDeviceNamestringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$intUserID 124;
$mxdDevice 'foo-123';
$strDeviceName 'foo';

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