Change query() to children() - expose hassuborinates

This commit is contained in:
Deon George
2020-09-14 21:08:55 +10:00
parent 1ebdffa358
commit c549d28340
4 changed files with 13 additions and 11 deletions

View File

@@ -78,16 +78,17 @@ class Server
* @param string $dn
* @return |null
*/
public function query(string $dn)
public function children(string $dn)
{
try {
return ($x=(new Entry)
->query()
->select(['dn','hassubordinates'])
->setDn($dn)
->listing()
->get()) ? $x : NULL;
// @todo Tidy up this exception
// @todo Tidy up this exception
} catch (\Exception $e) {
dd(['e'=>$e]);
}