Skip to content

Commit

Permalink
Read SSL, PHP, Local Mail and suspended settings
Browse files Browse the repository at this point in the history
Read the SSL, PHP, local mail and suspended settings for each domain into the cache.
  • Loading branch information
mvdgeijn authored Mar 29, 2024
1 parent 6144b57 commit a0a4d78
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/DirectAdmin/Objects/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ class Domain extends BaseObject
/** @var float */
private $diskUsage;

/** @var string */
private $ssl;

/** @var string */
private $php;

/** @var string */
private $suspended;

/** @var string */
private $localMail;

/**
* Construct the object.
*
Expand Down Expand Up @@ -270,6 +282,38 @@ public function getDomainName()
return $this->domainName;
}

/**
* @return string SSL ON or OFF
*/
public function getSsl()
{
return $this->ssl;
}

/**
* @return string PHP ON or OFF
*/
public function getPhp()
{
return $this->php;
}

/**
* @return string Local mail yes or no
*/
public function getLocalMail()
{
return $this->localMail;
}

/**
* @return string Suspended yer or no
*/
public function getSuspended()
{
return $this->suspended;
}

/**
* Returns unified sorted list of main domain name, aliases and pointers.
*
Expand Down Expand Up @@ -403,6 +447,11 @@ private function setConfig(UserContext $context, array $config)
$this->bandwidthLimit = !isset($bandwidths[1]) || ctype_alpha($bandwidths[1]) ? null : floatval($bandwidths[1]);
$this->diskUsage = floatval($config['quota']);

$this->ssl = $config['ssl'];
$this->php = $config['php'];
$this->suspended = $config['suspended'];
$this->localMail = $config['local_mail'];

$this->aliases = array_filter(explode('|', $config['alias_pointers']));
$this->pointers = array_filter(explode('|', $config['pointers']));
}
Expand Down

0 comments on commit a0a4d78

Please sign in to comment.