%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/lib/Db/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/lib/Db/SessionMapper.php |
<?php /** * This file is part of the Passwords App * created by Marius David Wieschollek * and licensed under the AGPL. */ namespace OCA\Passwords\Db; use OCP\DB\QueryBuilder\IQueryBuilder; /** * Class SessionMapper * * @package OCA\Passwords\Db */ class SessionMapper extends AbstractMapper { const TABLE_NAME = 'passwords_session'; /** * @param int $updated * * @return Session[] */ public function findAllOlderThan(int $updated): array { $sql = $this->getStatement(); $sql->andWhere( $sql->expr()->lte('updated', $sql->createNamedParameter($updated, IQueryBuilder::PARAM_INT)) ); return $this->findEntities($sql); } }