mirror of
https://github.com/envoyr/php-froxlor-client.git
synced 2026-05-10 23:29:06 +00:00
Compare commits
2 Commits
3.0.0-alph
...
3.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
793b91b187 | ||
|
563ecefe71
|
@@ -13,9 +13,9 @@ class Databases
|
||||
|
||||
public function create(
|
||||
string $password,
|
||||
string $description = null,
|
||||
?string $description = null,
|
||||
bool $mail = false,
|
||||
string $suffix = null
|
||||
?string $suffix = null
|
||||
): array {
|
||||
return $this->customer->server->request('Mysqls.add', [
|
||||
'customerid' => $this->customer->id,
|
||||
@@ -32,4 +32,4 @@ class Databases
|
||||
'customerid' => $this->customer->id,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,14 +11,21 @@ class Domains
|
||||
$this->customer = $customer;
|
||||
}
|
||||
|
||||
public function create(string $domain, bool $letsencrypt = false): array
|
||||
public function create(
|
||||
string $domain,
|
||||
bool $letsencrypt = false,
|
||||
?string $description = null,
|
||||
bool $isemaildomain = true,
|
||||
bool $caneditdomain = true
|
||||
): array
|
||||
{
|
||||
return $this->customer->server->request('Domains.add', [
|
||||
'customerid' => $this->customer->id,
|
||||
'domain' => $domain,
|
||||
'letsencrypt' => $letsencrypt,
|
||||
'isemaildomain' => true,
|
||||
'caneditdomain' => true,
|
||||
'isemaildomain' => $isemaildomain,
|
||||
'caneditdomain' => $caneditdomain,
|
||||
'description' => $description,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class Emails
|
||||
$this->customer = $customer;
|
||||
}
|
||||
|
||||
public function create(string $email_part, string $domain, string $description = null): array
|
||||
public function create(string $email_part, string $domain, ?string $description = null): array
|
||||
{
|
||||
return $this->customer->server->request('Emails.add', [
|
||||
'customerid' => $this->customer->id,
|
||||
@@ -27,4 +27,4 @@ class Emails
|
||||
'customerid' => $this->customer->id,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ class Ftps
|
||||
$this->customer = $customer;
|
||||
}
|
||||
|
||||
public function create(string $password, string $path = '/', string $description = null, bool $mail = false): array
|
||||
public function create(string $password, string $path = '/', ?string $description = null, bool $mail = false): array
|
||||
{
|
||||
return $this->customer->server->request('Ftps.add', [
|
||||
'customerid' => $this->customer->id,
|
||||
@@ -28,4 +28,4 @@ class Ftps
|
||||
'customerid' => $this->customer->id,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user