URL); $BlockStart = '

Přehled dokumentů

'; $BlockEnd = ''; $Content = GetTextBetween($Content, $BlockStart, $BlockEnd); if ($Content == '') { $Output .= 'Main block not isolated.
'; return $Output; } $ItemStart = '
  • '; $ItemEnd = "
  • "; while (strpos($Content, $ItemStart) !== false) { $Item = GetTextBetween($Content, $ItemStart, $ItemEnd); $NewsItem = new NewsItem(); $NewsItem->Link = GetUrlBase($this->URL).html_entity_decode(GetTextBetween($Item, '')); $NewsItem->Title = html_entity_decode(GetTextBetween($Item, '', '')); $Date = GetTextBetween($Item, '(', ')'); $NewsItem->Date = HumanDateToTime($Date); $NewsItem->Category = $this->Category; if (strpos($Item, '
    ') !== false) { $NewsItem->Content = html_entity_decode(GetTextBetween($Item, '
    ', '
    ')); } $NewsItem->Author = 'Automat'; $NewsItem->Database = $this->Database; $this->NewsItems[] = $NewsItem; } return $Output; } }