From ab94d788e7926b0bb98fc447b28d74ba94d5f813 Mon Sep 17 00:00:00 2001 From: bHosted Date: Fri, 15 Apr 2022 12:30:33 +0200 Subject: [PATCH] Added getDomainOwner and getDomainOwners to ResellerContext --- src/DirectAdmin/Context/ResellerContext.php | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/DirectAdmin/Context/ResellerContext.php b/src/DirectAdmin/Context/ResellerContext.php index bd806ff..546c14c 100644 --- a/src/DirectAdmin/Context/ResellerContext.php +++ b/src/DirectAdmin/Context/ResellerContext.php @@ -166,6 +166,29 @@ public function getUsers() return BaseObject::toObjectArray($this->invokeApiGet('SHOW_USERS'), User::class, $this); } + + /** + * Get the user that belongs to the domain + * + * @param $domain + * @return array + */ + public function getDomainOwner( $domain ) + { + return $this->invokeApiGet('DOMAIN_OWNERS', ['domain' => $domain ] ); + } + + /** + * Get the user that belongs to the domain + * + * @param $domain + * @return array + */ + public function getDomainOwners( ) + { + return $this->invokeApiGet('DOMAIN_OWNERS' ); + } + /** * get reseller statistics / active package settings *