/**
     * @param Gpf_DbEngine_Row $dbRow
     */
    protected function setDefaultDbRowObjectValues($dbRow) {
        $dbRow->set("accountid", Gpf_Session::getAuthUser()->getAccountId());
        $dbRow->set("numberuserid", 1);
        $dbRow->set("rtype", Pap_Application::ROLETYPE_AFFILIATE);

        $approvalType = Gpf_Settings::get(Pap_Settings::AFFILIATE_APPROVAL);
        if($approvalType == 'A') {
            $dbRow->set("rstatus", Gpf_Db_User::APPROVED);
        } else {
            $dbRow->set("rstatus", Gpf_Db_User::PENDING);
        }
        $dbRow->set("deleted", Gpf::NO);
        $dbRow->set("dateinserted", Gpf_Common_DateUtils::Now());
        $dbRow->set("refid", uniqid());
        $dbRow->set("rpassword", Gpf_Common_String::generatePassword(8));
        Gpf_Plugins_Engine::extensionPoint('PostAffiliate.AffiliateForm.setDefaultDbRowObjectValues', $dbRow);
    }
    private function createTestAffiliateUser() {
        $affiliateUser = new Pap_Affiliates_User();
        $affiliateUser->setId('11111111');
        $affiliateUser->setDateInserted(Gpf_Common_DateUtils::now());
        $affiliateUser->setRefId("testaff");
        $affiliateUser->setPassword($this->account->getPassword());
        $affiliateUser->setUserName(Pap_Branding::DEMO_AFFILIATE_USERNAME);
        $affiliateUser->setFirstName("Test");
        $affiliateUser->setLastName("Affiliate");
        $affiliateUser->setAccountId($this->account->getId());
        $affiliateUser->setStatus(Gpf_Db_User::APPROVED);
        $affiliateUser->set('dateapproved', Gpf_Common_DateUtils::Now());
        $affiliateUser->save();

        $this->setQuickLaunchSettings($affiliateUser->getAccountUserId(), 'showDesktop');
        Gpf_Settings::set(Pap_Settings::DEFAULT_AFFILIATE_PANEL_THEME, Pap_Branding::DEFAULT_AFFILIATE_PANEL_THEME);
    }