PHP code example of professionalweb / rusguard-yii2
1. Go to this page and download the library: Download professionalweb/rusguard-yii2 library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
professionalweb / rusguard-yii2 example snippets
return [
'components' => [
'skud' => [
'class' => 'professionalweb\rusguard\Skud',
'url' => 'http://skud/LNetworkServer/LNetworkService.svc?singleWsdl',
'login' => 'admin',
'password' => ''
],
]
];
$dataProvider = new \professionalweb\rusguard\DataProvider([
'component' => Yii::$app->skud,
'from' => date('c', strtotime($date.' 00:00:00')),
'to' => date('c', strtotime($date.' 23:59:59')),
'inout' => $inout
]);
return $this->render('index',
[
'dataProvider' => $dataProvider
]);
$personInfo = Yii::$app->skud->addEmployee('75f918bf-24fc-445f-8ff5-8fd11e1ad361', 'John', 'Johnov');
Yii::$app->skud->assignKey($personInfo->ID, '9874566321154');
Yii::$app->skud->setKeyIsLost('9874566321154', $personInfo->ID);
Yii::$app->skud->getGroups();
Yii::$app->skud->getEmployeeIdByKey('9874566321154');
Yii::$app->skud->removeEmployee($personInfo->ID);
Yii::$app->skud->removeEmployeeByCardNumber('9874566321154');
Yii::$app->skud->getVariable($name);
Yii::$app->skud->addEmployeePhoto($personInfo->ID, null, $base64Data);
$skud->getEmployee($$personInfo->ID)
Yii::$app->skud->getEvents($fromDate = null, $toDate = null, $inoutEventType = null, $page = 1, $pageSize = 20)
$result = Yii::$app->skud->getNotification();