uawdijnntqw1x1x1
IP : 3.135.236.62
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
bitrix
/
modules
/
main
/
lib
/
userauthaction.php
/
/
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2016 Bitrix */ namespace Bitrix\Main; use Bitrix\Main\Entity; class UserAuthActionTable extends Entity\DataManager { const PRIORITY_HIGH = 100; const PRIORITY_LOW = 200; const ACTION_LOGOUT = 'logout'; const ACTION_UPDATE = 'update'; public static function getTableName() { return 'b_user_auth_action'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, ), 'USER_ID' => array( 'data_type' => 'integer' ), 'PRIORITY' => array( 'data_type' => 'integer' ), 'ACTION' => array( 'data_type' => 'string' ), 'ACTION_DATE' => array( 'data_type' => 'datetime' ), 'APPLICATION_ID' => array( 'data_type' => 'string' ), ); } /** * @param array $filter */ public static function deleteByFilter(array $filter) { $entity = static::getEntity(); $conn = $entity->getConnection(); $where = Entity\Query::buildFilterSql($entity, $filter); if($where <> '') { $where = " WHERE ".$where; } $conn->queryExecute("delete from b_user_auth_action".$where); $entity->cleanCache(); } /** * @param int $userId * @param string|null $applicationId AppPassword application id * @return ORM\Data\AddResult * @throws ObjectException */ public static function addLogoutAction($userId, $applicationId = null) { return static::add(array( 'USER_ID' => $userId, 'PRIORITY' => self::PRIORITY_HIGH, 'ACTION' => self::ACTION_LOGOUT, 'ACTION_DATE' => new Type\DateTime(), 'APPLICATION_ID' => $applicationId, )); } /** * @param int $userId * @param Type\DateTime|null $date * @return ORM\Data\AddResult */ public static function addUpdateAction($userId, Type\DateTime $date = null) { if($date === null) { $date = new Type\DateTime(); } return static::add(array( 'USER_ID' => $userId, 'PRIORITY' => self::PRIORITY_LOW, 'ACTION' => self::ACTION_UPDATE, 'ACTION_DATE' => $date, )); } }
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/main/lib/userauthaction.php