mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
AdminAccountPage
: Cast $query
to LdapQuery
using inline @var
This commit is contained in:
parent
9e0c8ef76a
commit
baeba7c27a
@ -15,6 +15,7 @@ use Icinga\Data\ConfigObject;
|
|||||||
use Icinga\Data\ResourceFactory;
|
use Icinga\Data\ResourceFactory;
|
||||||
use Icinga\Data\Selectable;
|
use Icinga\Data\Selectable;
|
||||||
use Icinga\Exception\NotImplementedError;
|
use Icinga\Exception\NotImplementedError;
|
||||||
|
use Icinga\Protocol\Ldap\LdapQuery;
|
||||||
use Icinga\Web\Form;
|
use Icinga\Web\Form;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -297,7 +298,8 @@ class AdminAccountPage extends Form
|
|||||||
->select(array('user_name'))
|
->select(array('user_name'))
|
||||||
->order('user_name', 'asc', true);
|
->order('user_name', 'asc', true);
|
||||||
if (in_array($this->backendConfig['backend'], array('ldap', 'msldap'))) {
|
if (in_array($this->backendConfig['backend'], array('ldap', 'msldap'))) {
|
||||||
$query->getQuery()->setUsePagedResults();
|
/** @var LdapQuery $query */
|
||||||
|
$query->setUsePagedResults();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query->fetchColumn();
|
return $query->fetchColumn();
|
||||||
@ -355,7 +357,8 @@ class AdminAccountPage extends Form
|
|||||||
->createUserGroupBackend()
|
->createUserGroupBackend()
|
||||||
->select(array('group_name'));
|
->select(array('group_name'));
|
||||||
if (in_array($this->backendConfig['backend'], array('ldap', 'msldap'))) {
|
if (in_array($this->backendConfig['backend'], array('ldap', 'msldap'))) {
|
||||||
$query->getQuery()->setUsePagedResults();
|
/** @var LdapQuery $query */
|
||||||
|
$query->setUsePagedResults();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query->fetchColumn();
|
return $query->fetchColumn();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user