/** * @param DleUsers $objDleUsers The DB ORM object to process */ protected function process_object($objDleUsers) { // wp: ID, user_login, user_nicename, user_email, user_registered, display_name // dl: user_id, name, name, email, FROM_UNIXTIME( reg_date ), fullname $strEmail = $objDleUsers->Email; if ($strEmail && strlen($strEmail)) { // check if already copied if (!WpUsers::QueryCount(QQ::Equal(QQN::WpUsers()->UserEmail, $strEmail))) { $objWpUsers = new WpUsers(); $objWpUsers->Initialize(); // set defaults $objWpUsers->UserLogin = $objDleUsers->Name; $objWpUsers->UserNicename = $objDleUsers->Name; $objWpUsers->UserEmail = $objDleUsers->Email; $objWpUsers->UserRegistered = QDateTime::FromTimestamp(intval($objDleUsers->RegDate)); $objWpUsers->DisplayName = $objDleUsers->Fullname; $objWpUsers->UserPass = ''; $objWpUsers->UserUrl = ''; $objWpUsers->UserActivationKey = ''; $objWpUsers->UserStatus = 0; $objWpUsers->Save(); $this->intUserCount++; } } }