@@ 237-245 (lines=9) @@ | ||
234 | /** |
|
235 | * @return Forwarder[] Associative array of forwarders |
|
236 | */ |
|
237 | public function getForwarders() |
|
238 | { |
|
239 | return $this->getCache(self::CACHE_FORWARDERS, function () { |
|
240 | $forwarders = $this->getContext()->invokeApiGet('EMAIL_FORWARDERS', [ |
|
241 | 'domain' => $this->getDomainName(), |
|
242 | ]); |
|
243 | return DomainObject::toDomainObjectArray($forwarders, Forwarder::class, $this); |
|
244 | }); |
|
245 | } |
|
246 | ||
247 | /** |
|
248 | * @return Mailbox[] Associative array of mailboxes |
|
@@ 250-259 (lines=10) @@ | ||
247 | /** |
|
248 | * @return Mailbox[] Associative array of mailboxes |
|
249 | */ |
|
250 | public function getMailboxes() |
|
251 | { |
|
252 | return $this->getCache(self::CACHE_MAILBOXES, function () { |
|
253 | $boxes = $this->getContext()->invokeApiGet('POP', [ |
|
254 | 'domain' => $this->getDomainName(), |
|
255 | 'action' => 'full_list', |
|
256 | ]); |
|
257 | return DomainObject::toDomainObjectArray($boxes, Mailbox::class, $this); |
|
258 | }); |
|
259 | } |
|
260 | ||
261 | /** |
|
262 | * @return User |