Changeset 57 for trunk/Modules/Meet/Import/Eso.php
- Timestamp:
- May 27, 2020, 8:04:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/Eso.php
r37 r57 29 29 if (strpos($MeetItem->Gender, 'partnerku') !== false) $MeetItem->Gender = Gender::Male; 30 30 else if (strpos($MeetItem->Gender, 'partnera') !== false) $MeetItem->Gender = Gender::Female; 31 else $MeetItem->Gender = Gender::Undefined; 31 else $MeetItem->Gender = Gender::Undefined; 32 32 $Small = GetTextBetween($Item, '<small>', '</small>'); 33 if (strpos($Small, '/') != false){ 34 $MeetItem->Location = substr(trim(substr($Small, 0, strpos($Small, '/') - 1)), 1, -1); 35 $Small = substr($Small, strpos($Small, '/') + 1); 36 } 33 if (strpos($Small, '/') != false) 34 { 35 $MeetItem->Location = substr(trim(substr($Small, 0, strpos($Small, '/') - 1)), 1, -1); 36 $Small = substr($Small, strpos($Small, '/') + 1); 37 } 37 38 $MeetItem->Time = trim($Small); 38 39 $MeetItem->Time = HumanDateToTime($MeetItem->Time); 39 40 $MeetItem->Message = trim(GetTextBetween($Item, '<p class="lead">', '</p>')); 40 $MeetItem->Age = GetAgeFromText($MeetItem->Message); 41 $MeetItem->Age = GetAgeFromText($MeetItem->Message); 41 42 $MeetItem->Height = GetHeightFromText($MeetItem->Message); 42 43 $MeetItem->Weight = GetWeightFromText($MeetItem->Message); … … 49 50 $MeetItem->Database = $this->Database; 50 51 $MeetItem->Source = $this->Id; 51 $this-> AddedCount += $MeetItem->AddIfNotExist();52 $this->MeetItems[] = $MeetItem; 52 53 } 53 54 return $Output;
Note:
See TracChangeset
for help on using the changeset viewer.