URL); $BlockStart = '

Aktuální inzeráty

'; $BlockEnd = '
'; $Content = GetTextBetween($Content, $BlockStart, $BlockEnd); if ($Content == '') { $Output .= 'Main block not isolated.
'; return $Output; } $ItemStart = '
'; $ItemEnd = "
\n". '
'; while (strpos($Content, $ItemStart) !== false) { $Item = GetTextBetween($Content, $ItemStart, $ItemEnd); $MeetItem = new MeetItem(); $Gender = GetTextBetween($Item, '
Gender = Gender::Male; else if ($Gender == 'zena') $MeetItem->Gender = Gender::Female; else $Gender = Gender::Undefined; $MeetItem->Name = GetTextBetween($Item, '>', '<'); $MeetItem->Email = GetTextBetween($Item, '

', '

'); $MeetItem->Time = HumanDateToTime(trim(GetTextBetween($Item, '

Přidáno:', '

'))); $MeetItem->Message = trim(GetTextBetween($Item, '

', '

')); $MeetItem->Phone = ''; $MeetItem->Height = GetHeightFromText($MeetItem->Message); $MeetItem->Weight = GetWeightFromText($MeetItem->Message); $MeetItem->Age = GetAgeFromText($MeetItem->Message); $MeetItem->Location = 'Praha'; $MeetItem->Database = $this->Database; $MeetItem->Source = $this->Id; if ($MeetItem->Name == 'Nový Design Inzerátů') continue; $this->MeetItems[] = $MeetItem; } return $Output; } }