45 $this->
_init(
'admin_user_session',
'id');
60 [
'updated_at < ?' => $this->dateTime->formatDate($timestamp)]
81 array $withStatuses = [],
82 array $excludedSessionIds = [],
83 $updateOlderThen =
null 86 'updated_at > ?' => $this->dateTime->formatDate($updateOlderThen),
87 'user_id = ?' => (int) $userId,
89 if (!empty($excludedSessionIds)) {
90 $whereStatement[
'session_id NOT IN (?)'] = $excludedSessionIds;
92 if (!empty($withStatuses)) {
93 $whereStatement[
'status IN (?)'] = $withStatuses;
_init($mainTable, $idFieldName)
deleteSessionsOlderThen($timestamp)
updateStatusByUserId( $status, $userId, array $withStatuses=[], array $excludedSessionIds=[], $updateOlderThen=null)
__construct(\Magento\Framework\Model\ResourceModel\Db\Context $context, \Magento\Framework\Stdlib\DateTime $dateTime, $connectionName=null)