';
while (strpos($Content, $ItemStart) !== false)
{
$Item = GetTextBetween($Content, $ItemStart, $ItemEnd);
$MeetItem = new MeetItem();
$MeetItem->Link = trim(GetTextBetween($Item, '
', '
'));
$MeetItem->Location = trim(GetTextBetween($Item, '>Město: ', '';
$BlockEnd = 'Odpovědět na inzerát';
$Content = GetTextBetween($Content, $BlockStart, $BlockEnd);
if ($Content == '')
{
$Output .= 'Main block not isolated.';
return $Output;
}
$MeetItem->Title = trim(GetTextBetween($Content, '
', '
'));
$MeetItem->Name = trim(GetTextBetween($Content, '
Jméno:', '
'));
$MeetItem->Gender = GetGenderFromName($MeetItem->Name);
$MeetItem->Location = trim(GetTextBetween($Content, 'Město: ', '
'));
$MeetItem->Message = trim(GetTextBetween($Content, '', ''));
$MeetItem->Age = GetAgeFromText($MeetItem->Message);
$MeetItem->Height = GetHeightFromText($MeetItem->Message);
$MeetItem->Weight = GetWeightFromText($MeetItem->Message);
$MeetItem->Email = GetEmailFromText($MeetItem->Message);
return $Output;
}
}