Changeset 65 for trunk/Modules/Meet/Import/AstraPraha.php
- Timestamp:
- Apr 19, 2022, 10:25:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/AstraPraha.php
r63 r65 23 23 $Item = GetTextBetween($Content, $ItemStart, $ItemEnd); 24 24 $MeetItem = new MeetItem(); 25 $ MeetItem->Time = trim(GetTextBetween($Item, 'Vloženo:', '</p>'));26 $MeetItem->Time = HumanDateToTime($ MeetItem->Time);25 $Time = trim(GetTextBetween($Item, 'Vloženo:', '</p>')); 26 $MeetItem->Time = HumanDateToTime($Time); 27 27 28 $ MeetItem->Gender = trim(GetTextBetween($Item, '<h3 class=\'dating-heading\'>', '</h3>'));29 if ($ MeetItem->Gender == 'Hledám partnerku') $MeetItem->Gender = Gender::Male;28 $Gender = trim(GetTextBetween($Item, '<h3 class=\'dating-heading\'>', '</h3>')); 29 if ($Gender == 'Hledám partnerku') $MeetItem->Gender = Gender::Male; 30 30 else $MeetItem->Gender = Gender::Female; 31 31 $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, '<p class=\'last-element\'>', '</p>')));
Note:
See TracChangeset
for help on using the changeset viewer.