Filter
Filtry dla tabel
Namespace
Klasa:
Nimblephp\table\Filter
Interfejs:
Nimblephp\table\Interfaces\FilterInterface
Zmienne
- protected array $condition = []: Warunki wyszukiwania
- protected array $baseCondition = []: Warunki wyszkiwania które nie są modyfikowane
- protected ?string $title = null: Nazwa filtra
- protected string $type = 'select': Rodzaj filtra
- protected string $key = '': Klucz do filtrowania
- protected mixed $content = null: Wartości filtra
- protected string $value: Wybrana wartość filtra
Metody statyczne
create
public static function create(string $key, ?string $type = null): self
Utworzenie filtra
Metody
render
public function render(Table $table): string
Wygenerowanie filtra
setTitle
public function setTitle(?string $title): self
Zdefiniowanie nazwy filtra
getTitle
public function getTitle(): ?string
Pobranie nazwy filtra
setCondition
public function setCondition(array $condition): self
Zdefiniowanie warunków wyszukiwania
getCondition
public function getCondition(): array
Pobranie warunków wyszukiwania
setType
public function setType(string $type): self
Zmiana typu filtra
getType
public function getType(): ?string
Pobranie typu filtra
setKey
public function setKey(string $key): self
Zdefiniowanie nazwy klucza
getKey
public function getKey(): string
Pobranie klucza
setContent
public function setContent(mixed $content): self
Zdefiniowanie zawartości filtra
getContent
public function getContent(): mixed
Pobranie zawartości filtra
setValue
public function setValue(string $value): self
Zdefiniowanie wartości filtra
getValue
public function getValue(): ?string
Pobranie wartości filtra