-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move filter and pagination to backend
- Loading branch information
michnhokn
committed
Nov 12, 2021
1 parent
c71f75d
commit 8e3b35c
Showing
7 changed files
with
458 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
table{width:100%;border-collapse:collapse}table td,table th{padding:6px 12px;text-align:left;border:1px solid var(--color-border)} | ||
table{width:100%;border-collapse:collapse}table td,table th{padding:6px 12px;text-align:left;border:1px solid var(--color-border)}.selected{font-weight:bold} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
<?php | ||
|
||
class Log | ||
{ | ||
private ?string $type; | ||
private ?string $action; | ||
private ?string $user; | ||
private ?string $slug; | ||
private ?string $language; | ||
private $oldData; | ||
private $newData; | ||
|
||
public function __construct(array $parameter = null) | ||
{ | ||
$this->type = $parameter['type'] ?? null; | ||
$this->action = $parameter['action'] ?? null; | ||
$this->user = $parameter['user'] ?? null; | ||
$this->slug = $parameter['slug'] ?? null; | ||
$this->language = $parameter['language'] ?? null; | ||
} | ||
|
||
public function toArray(): array | ||
{ | ||
return [ | ||
'type' => $this->type, | ||
'action' => $this->action, | ||
'user' => $this->user, | ||
'slug' => $this->slug, | ||
'language' => $this->language, | ||
'oldData' => $this->oldData, | ||
'newData' => $this->newData, | ||
]; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getType(): string | ||
{ | ||
return $this->type; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getAction(): string | ||
{ | ||
return $this->action; | ||
} | ||
|
||
/** | ||
* @param string $action | ||
*/ | ||
public function setAction(string $action): void | ||
{ | ||
$this->action = $action; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getUser(): string | ||
{ | ||
return $this->user; | ||
} | ||
|
||
/** | ||
* @param string $user | ||
*/ | ||
public function setUser(string $user): void | ||
{ | ||
$this->user = $user; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSlug(): string | ||
{ | ||
return $this->slug; | ||
} | ||
|
||
/** | ||
* @param string $slug | ||
*/ | ||
public function setSlug(string $slug): void | ||
{ | ||
$this->slug = $slug; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getLanguage(): string | ||
{ | ||
return $this->language; | ||
} | ||
|
||
/** | ||
* @param string $language | ||
*/ | ||
public function setLanguage(string $language): void | ||
{ | ||
$this->language = $language; | ||
} | ||
|
||
/** | ||
* @return | ||
*/ | ||
public function getOldData() | ||
{ | ||
return $this->oldData; | ||
} | ||
|
||
/** | ||
* @param $oldData | ||
*/ | ||
public function setOldData($oldData = null) | ||
{ | ||
$this->oldData = $oldData; | ||
} | ||
|
||
/** | ||
* @return | ||
*/ | ||
public function getNewData() | ||
{ | ||
return $this->newData; | ||
} | ||
|
||
/** | ||
* @param $newData | ||
*/ | ||
public function setNewData($newData): void | ||
{ | ||
$this->newData = $newData; | ||
} | ||
|
||
/** | ||
* @param string $type | ||
*/ | ||
public function setType(string $type): void | ||
{ | ||
$this->type = $type; | ||
} | ||
} |
Oops, something went wrong.