/** * @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); }
/** * @param Gpf_DbEngine_Row $dbRow */ protected function setDefaultDbRowObjectValues(Gpf_DbEngine_Row $dbRow) { $dbRow->set('isdefault', '0'); }
/** * @param Gpf_DbEngine_Row $dbRow */ protected function setDefaultDbRowObjectValues(Gpf_DbEngine_Row $dbRow) { $dbRow->set(Gpf_Db_Table_Accounts::ID, Gpf_Session::getAuthUser()->getAccountId()); }
public function set($name, $value) { parent::set($name, trim($value)); }
/** * @param Gpf_DbEngine_Row $dbRow */ protected function setDefaultDbRowObjectValues(Gpf_DbEngine_Row $dbRow) { $dbRow->setPayoutStatus(Pap_Common_Transaction::PAYOUT_UNPAID); $dbRow->set(Pap_Db_Table_Transactions::CLICK_COUNT, '1'); }