AddCompareTime = false;
$this->AddCompareRemoteId = true;
$Content = file_get_contents($this->URL);
$BlockStart = 'Aktuální pomáháme najít tyto taneční protějšky:';
$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();
$Name = trim(GetTextBetween($Item, '', '
'));
$MeetItem->Name = trim(substr($Name, 0, strpos($Name, '(')));
$MeetItem->Age = trim(GetTextBetween($Name, '(', 'let)'));
$MeetItem->Height = trim(GetTextBetween($Item, '', '
'));
$MeetItem->Height = substr($MeetItem->Height, 0, strpos($MeetItem->Height, 'cm'));
$MeetItem->Message = trim(GetTextBetween($Item, '', '
'));
$MeetItem->Weight = GetWeightFromText($MeetItem->Message);
$MeetItem->RemoteId = trim(GetTextBetween($Item, '