// Flags $objPerson->DisplayRealNameFlag = !rand(0, 3); $objPerson->DisplayEmailFlag = !rand(0, 7); $objPerson->OptInFlag = !rand(0, 3); $objPerson->DonatedFlag = !rand(0, 80); // Location and Country Flag if (rand(0, 2)) { $objPerson->Location = QDataGen::GenerateCity(); if (rand(0, 2)) { $objPerson->CountryId = rand(1, $intMaxCountryId); $objPerson->Location .= ', ' . $objPerson->Country->Name; } } // Other Stuff if (!rand(0, 5)) { $objPerson->Url = QDataGen::GenerateWebsiteUrl(); } if (!rand(0, 2)) { $objPerson->TimezoneId = rand(1, $intMaxTimeZoneId); } $objPerson->RegistrationDate = QDataGen::GenerateDateTime($dttStartDate, QDateTime::Now()); // Save $objPerson->Save(); // Set the DisplayName $objPerson->RefreshDisplayName(); // Update the MaxId count $intMaxPersonId = $objPerson->Id; } ////////////////////// // Showcase Tables and Classes //////////////////////