Changeset 11 for trunk/Import/Amblar.php
- Timestamp:
- Aug 26, 2018, 8:53:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Import/Amblar.php
r10 r11 28 28 function Import() 29 29 { 30 echo('Parsing '.$this->Name.'...</br>');30 parent::Import(); 31 31 $Content = file_get_contents($this->URL); 32 32 … … 53 53 else $MeetItem->Gender = Gender::Male; 54 54 $MeetItem->Name = trim(GetTextBetween($Item, '<span class="dwqa-author">', '</span>')); 55 $MeetItem->Date = HumanDateToTime(trim(GetTextBetween($Item, '<span class="dwqa-date">', '</span>'))); 55 $MeetItem->Date = trim(GetTextBetween($Item, '<span class="dwqa-date">', '</span>')); 56 if ($MeetItem->Date == 'před 1 dní') $MeetItem->Date = strtotime("-1 days"); 57 else $MeetItem->Date = HumanDateToTime($MeetItem->Date); 56 58 $MeetItem->Email = ''; 57 59 $MeetItem->Message = ''; … … 64 66 $MeetItem->Source = $this->Id; 65 67 $this->ImportItem($MeetItem); 66 $ MeetItem->AddIfNotExist();68 $this->AddedCount += $MeetItem->AddIfNotExist(); 67 69 } 68 70 }
Note:
See TracChangeset
for help on using the changeset viewer.