mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
rename getter
This commit is contained in:
parent
c694efe786
commit
29f53112c0
2 changed files with 4 additions and 4 deletions
|
|
@ -97,7 +97,7 @@ class Auth
|
||||||
]->useName();
|
]->useName();
|
||||||
|
|
||||||
// Search database for auth records
|
// Search database for auth records
|
||||||
foreach ($this->page->container->browser->database->auth->match(
|
foreach ($this->page->container->browser->database->auth->like(
|
||||||
sprintf(
|
sprintf(
|
||||||
'%s%%',
|
'%s%%',
|
||||||
$this->page->navbar->request->getValue()
|
$this->page->navbar->request->getValue()
|
||||||
|
|
@ -137,7 +137,7 @@ class Auth
|
||||||
// Detect active identity
|
// Detect active identity
|
||||||
$option->gtk->set_active(
|
$option->gtk->set_active(
|
||||||
boolval(
|
boolval(
|
||||||
$this->page->container->browser->database->auth->match(
|
$this->page->container->browser->database->auth->like(
|
||||||
$this->page->navbar->request->getValue(), 1 // one
|
$this->page->navbar->request->getValue(), 1 // one
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ class Auth
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function match(
|
public function like(
|
||||||
string $request = '',
|
string $request = '',
|
||||||
int $limit = 1000,
|
int $limit = 1000,
|
||||||
int $start = 0
|
int $start = 0
|
||||||
|
|
@ -130,7 +130,7 @@ class Auth
|
||||||
{
|
{
|
||||||
$records = 0;
|
$records = 0;
|
||||||
|
|
||||||
foreach ($this->match($request) as $record)
|
foreach ($this->like($request) as $record)
|
||||||
{
|
{
|
||||||
$records += $this->delete(
|
$records += $this->delete(
|
||||||
$record->id
|
$record->id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue