50 public function parse()
52 if (!strlen($this->
getXml())) {
56 $hits =
new SimpleXMLElement($this->
getXml());
57 foreach ($hits->children() as $user) {
58 foreach ($user->children() as $item) {
63 foreach ($item->children() as $field) {
67 $name = (string) $field[
'name'];
68 $content = (string) $field;
73 $this->
getResult()->addItem((
int) $item[
'id'], $fields);
An exception for terminatinating execution or to throw for unit testing.
__construct(ilMailSearchResult $result, $xml)