Changeset 37 for trunk/Modules/Meet/Import/MajkluvSvet.php
- Timestamp:
- May 5, 2019, 5:17:06 PM (6 years ago)
- Location:
- trunk/Modules
- Files:
-
- 2 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/MajkluvSvet.php
r31 r37 5 5 function Import() 6 6 { 7 parent::Import();7 $Output = parent::Import(); 8 8 $Content = file_get_contents($this->URL); 9 9 … … 13 13 if ($Content == '') 14 14 { 15 echo('Main block not isolated.</br>');16 return ;15 $Output .= 'Main block not isolated.</br>'; 16 return $Output; 17 17 } 18 18 … … 29 29 $MeetItem->Name = trim(GetTextBetween($Item, "<span class='seznamka_nadpis'><b>", '</b>')); 30 30 $MeetItem->Height = trim(GetTextBetween($Item, "výška:", 'cm')); 31 $MeetItem->Age = trim(GetTextBetween($Item, "věk:", 'let'));31 $MeetItem->Age = preg_replace("/[^0-9]/", "", trim(GetTextBetween($Item, "věk:", 'let'))); 32 32 $MeetItem->Message = trim(GetTextBetween($Item, "display:block;text-align:justify;'>", '</span>')); 33 33 $MeetItem->Weight = GetWeightFromText($MeetItem->Message); … … 50 50 $this->AddedCount += $MeetItem->AddIfNotExist(); 51 51 } 52 return $Output; 52 53 } 53 54 }
Note:
See TracChangeset
for help on using the changeset viewer.