@@ 692-697 (lines=6) @@ | ||
689 | $post->PostID = $record['ID']; |
|
690 | $post->Author = $record['post_author']; |
|
691 | ||
692 | if (!is_null($record['post_date'])) { |
|
693 | $dateTime = new DateTime($record['post_date']); |
|
694 | $post->Date = $dateTime->format('Y-m-d\TH:i:s'); |
|
695 | } else { |
|
696 | $post->Date = null; |
|
697 | } |
|
698 | ||
699 | if (!is_null($record['post_date_gmt'])) { |
|
700 | $dateTime = new DateTime($record['post_date_gmt']); |
|
@@ 699-704 (lines=6) @@ | ||
696 | $post->Date = null; |
|
697 | } |
|
698 | ||
699 | if (!is_null($record['post_date_gmt'])) { |
|
700 | $dateTime = new DateTime($record['post_date_gmt']); |
|
701 | $post->DateGmt = $dateTime->format('Y-m-d\TH:i:s'); |
|
702 | } else { |
|
703 | $post->DateGmt = null; |
|
704 | } |
|
705 | ||
706 | $post->Content = $record['post_content']; |
|
707 | $post->Title = $record['post_title']; |
|
@@ 717-722 (lines=6) @@ | ||
714 | $post->ToPing = $record['to_ping']; |
|
715 | $post->Pinged = $record['pinged']; |
|
716 | ||
717 | if (!is_null($record['post_modified'])) { |
|
718 | $dateTime = new DateTime($record['post_modified']); |
|
719 | $post->Modified = $dateTime->format('Y-m-d\TH:i:s'); |
|
720 | } else { |
|
721 | $post->Modified = null; |
|
722 | } |
|
723 | ||
724 | if (!is_null($record['post_modified_gmt'])) { |
|
725 | $dateTime = new DateTime($record['post_modified_gmt']); |
|
@@ 724-729 (lines=6) @@ | ||
721 | $post->Modified = null; |
|
722 | } |
|
723 | ||
724 | if (!is_null($record['post_modified_gmt'])) { |
|
725 | $dateTime = new DateTime($record['post_modified_gmt']); |
|
726 | $post->ModifiedGmt = $dateTime->format('Y-m-d\TH:i:s'); |
|
727 | } else { |
|
728 | $post->ModifiedGmt = null; |
|
729 | } |
|
730 | ||
731 | $post->ContentFiltered = $record['post_content_filtered']; |
|
732 | $post->ParentID = $record['post_parent']; |
|
@@ 843-848 (lines=6) @@ | ||
840 | $comment->AuthorUrl = $record['comment_author_url']; |
|
841 | $comment->AuthorIp = $record['comment_author_IP']; |
|
842 | ||
843 | if (!is_null($record['comment_date'])) { |
|
844 | $dateTime = new DateTime($record['comment_date']); |
|
845 | $comment->Date = $dateTime->format('Y-m-d\TH:i:s'); |
|
846 | } else { |
|
847 | $comment->Date = null; |
|
848 | } |
|
849 | ||
850 | if (!is_null($record['comment_date_gmt'])) { |
|
851 | $dateTime = new DateTime($record['comment_date_gmt']); |
|
@@ 850-855 (lines=6) @@ | ||
847 | $comment->Date = null; |
|
848 | } |
|
849 | ||
850 | if (!is_null($record['comment_date_gmt'])) { |
|
851 | $dateTime = new DateTime($record['comment_date_gmt']); |
|
852 | $comment->DateGmt = $dateTime->format('Y-m-d\TH:i:s'); |
|
853 | } else { |
|
854 | $comment->DateGmt = null; |
|
855 | } |
|
856 | ||
857 | $comment->Content = $record['comment_content']; |
|
858 | $comment->Karma = $record['comment_karma']; |
|
@@ 900-905 (lines=6) @@ | ||
897 | $user->Email = $record['user_email']; |
|
898 | $user->Url = $record['user_url']; |
|
899 | ||
900 | if (!is_null($record['user_registered'])) { |
|
901 | $dateTime = new DateTime($record['user_registered']); |
|
902 | $user->Registered = $dateTime->format('Y-m-d\TH:i:s'); |
|
903 | } else { |
|
904 | $user->Registered = null; |
|
905 | } |
|
906 | ||
907 | $user->Status = $record['user_status']; |
|
908 | $user->DisplayName = $record['display_name']; |