Skip to content

Commit

Permalink
Added getDomainOwner and getDomainOwners to ResellerContext
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdgeijn committed Apr 15, 2022
1 parent 3be10c4 commit ab94d78
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/DirectAdmin/Context/ResellerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit ab94d78

Please sign in to comment.