ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilMailPearRfc822WrapperAddressParser.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8
class
ilMailPearRfc822WrapperAddressParser
extends
\ilBaseMailRfc822AddressParser
9
{
13
public
function
parseAddressString
(
string
$a_addresses) : array
14
{
15
if
(strlen($a_addresses) == 0) {
16
return
[];
17
}
18
19
$parser
= new \Mail_RFC822();
20
$parsed_addresses =
$parser
->parseAddressList($a_addresses, $this->installationHost,
false
,
true
);
21
22
return
array_map(
function
($address) {
23
return
new \ilMailAddress($address->mailbox, $address->host);
24
}, $parsed_addresses);
25
}
26
}
ilMailPearRfc822WrapperAddressParser
Class ilMailPearRfc822WrapperAddressParser.
Definition:
class.ilMailPearRfc822WrapperAddressParser.php:8
ilBaseMailRfc822AddressParser
Class ilBaseMailRfc822AddressParser.
Definition:
class.ilBaseMailRfc822AddressParser.php:8
$parser
$parser
Definition:
BPMN2Parser.php:23
php
ilMailPearRfc822WrapperAddressParser\parseAddressString
parseAddressString(string $a_addresses)
Definition:
class.ilMailPearRfc822WrapperAddressParser.php:13
Services
Mail
classes
Address
Parser
class.ilMailPearRfc822WrapperAddressParser.php
Generated on Thu Jan 16 2025 19:02:24 for ILIAS by
1.8.13 (using
Doxyfile
)