Changeset 65 for trunk/Modules/Meet/Import/MajkluvSvet.php
- Timestamp:
- Apr 19, 2022, 10:25:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/MajkluvSvet.php
r63 r65 24 24 $MeetItem = new MeetItem(); 25 25 26 $ MeetItem->Gender = trim(GetTextBetween($Item, "<td class='bunka_seznamka linel' width='45' ><img src='/pages/images/", '.gif'));27 if ($ MeetItem->Gender == 'zena') $MeetItem->Gender = Gender::Male;28 else $ MeetItem->Gender = Gender::Female;26 $Gender = trim(GetTextBetween($Item, "<td class='bunka_seznamka linel' width='45' ><img src='/pages/images/", '.gif')); 27 if ($Gender == 'zena') $MeetItem->Gender = Gender::Male; 28 else $Gender = Gender::Female; 29 29 $MeetItem->Name = trim(GetTextBetween($Item, "<span class='seznamka_nadpis'><b>", '</b>')); 30 30 $MeetItem->Height = trim(GetTextBetween($Item, "výška:", 'cm')); … … 42 42 $MeetItem->Email = trim(substr($MeetItem->Email, strpos($MeetItem->Email, '|') + 1)); 43 43 } else $MeetItem->Phone = ''; 44 $ MeetItem->Time = trim(GetTextBetween($Item, "<span id='datum1", '</span>'));45 $ MeetItem->Time = substr($MeetItem->Time, strpos($MeetItem->Time, '>') + 1);46 $MeetItem->Time = HumanDateTimeToTime($ MeetItem->Time);44 $Time = trim(GetTextBetween($Item, "<span id='datum1", '</span>')); 45 $Time = substr($Time, strpos($Time, '>') + 1); 46 $MeetItem->Time = HumanDateTimeToTime($Time); 47 47 $MeetItem->Link = 'http://www.majkluvsvet.cz'.trim(GetTextBetween($Item, "<span class='linkk pravo'><a href='", "'>odkaz")); 48 48 $MeetItem->Database = $this->Database;
Note:
See TracChangeset
for help on using the changeset viewer.