URL); $BlockStart = ""; $BlockEnd = 'Celkem takových inzerátu:'; $Content = GetTextBetween($Content, $BlockStart, $BlockEnd); if ($Content == '') { $Output .= 'Main block not isolated.
'; return $Output; } $ItemStart = "Gender = Gender::Male; else $Gender = Gender::Female; $MeetItem->Name = trim(GetTextBetween($Item, "", '')); $MeetItem->Height = trim(GetTextBetween($Item, "výška:", 'cm')); $MeetItem->Age = preg_replace("/[^0-9]/", "", trim(GetTextBetween($Item, "věk:", 'let'))); $MeetItem->Message = trim(GetTextBetween($Item, "display:block;text-align:justify;'>", '')); $MeetItem->Weight = GetWeightFromText($MeetItem->Message); $MeetItem->Location = trim(GetTextBetween($Item, "Lokalita:", '')); $MeetItem->Phone = ''; $MeetItem->Email = trim(GetTextBetween($Item, "')); $MeetItem->Email = substr($MeetItem->Email, strpos($MeetItem->Email, '>') + 1); $MeetItem->Email = str_replace("", "@", $MeetItem->Email); if (strpos($MeetItem->Email, '|') !== false) { $MeetItem->Phone = trim(substr($MeetItem->Email, 0, strpos($MeetItem->Email, '|') - 1)); $MeetItem->Email = trim(substr($MeetItem->Email, strpos($MeetItem->Email, '|') + 1)); } else $MeetItem->Phone = ''; $Time = trim(GetTextBetween($Item, "')); $Time = substr($Time, strpos($Time, '>') + 1); $MeetItem->Time = HumanDateTimeToTime($Time); $MeetItem->Link = 'http://www.majkluvsvet.cz'.trim(GetTextBetween($Item, "odkaz")); $MeetItem->Database = $this->Database; $MeetItem->Source = $this->Id; $this->MeetItems[] = $MeetItem; } return $Output; } }