<?php
namespace App\Model\Searching;
final class AccountSearch extends AbstractSearch
{
public const FILTERS = [
self::FILTERS__ALL,
self::FILTERS__ACTIVE,
self::FILTERS__INACTIVE,
self::FILTERS__SUPER_USER,
self::FILTERS__NON_SUPER_USER,
self::FILTERS__ONE_ROSTER,
self::FILTERS__NON_ONE_ROSTER,
];
public const FILTERS__DEFAULT = self::FILTERS__ACTIVE;
public const FILTERS__ALL = 'all';
public const FILTERS__ACTIVE = 'active';
public const FILTERS__INACTIVE = 'inactive';
public const FILTERS__SUPER_USER = 'super_user';
public const FILTERS__NON_SUPER_USER = 'non_super_user';
public const FILTERS__ONE_ROSTER = 'one_roster';
public const FILTERS__NON_ONE_ROSTER = 'non_one_roster';
public const DIRECTIONS = [
self::SORTS__NAME => 'ASC',
self::SORTS__EMAIL => 'ASC',
self::SORTS__ACTIVE => 'ASC',
self::SORTS__ONEROSTER => 'ASC',
self::SORTS__LAST_LOGIN => 'DESC',
self::SORTS__TIMESTAMP => 'DESC',
];
public const SORTS__DEFAULT = self::SORTS__NAME;
public const SORTS__NAME = 'name';
public const SORTS__EMAIL = 'email';
public const SORTS__ACTIVE = 'active';
public const SORTS__ONEROSTER = 'oneroster';
public const SORTS__LAST_LOGIN = 'last_login';
public const SORTS__TIMESTAMP = 'timestamp';
/**
* @var string|null
*/
private ?string $lookup = null;
/**
* @return string|null
*/
public function getLookup(): ?string
{
return $this->lookup;
}
/**
* @param string|null $lookup
* @return $this
*/
public function setLookup(?string $lookup): self
{
$this->lookup = $lookup ?: null;
return $this;
}
}