public function process(Pap_Db_Table_Users $context) { $context->addConstraint(new Gpf_DbEngine_Row_RefIdLengthConstraint( Pap_Db_Table_Users::REFID, Gpf_Settings::get(self::SETTING_REFID_MIN_LENGTH), Gpf_Settings::get(self::SETTING_REFID_MAX_LENGTH), $this->_('Referral id must be longer than %s characters'), $this->_('Referral id can not be longer than %s characters'))); return Gpf_Plugins_Engine::PROCESS_CONTINUE; }
public function addRefidConstraint(Pap_Db_Table_Users $usersTable) { $usersTable->addConstraint(new MandatoryRefid_Constraint()); return Gpf_Plugins_Engine::PROCESS_CONTINUE; }
public function addRefidConstraint(Pap_Db_Table_Users $context) { $context->addConstraint(new NumberRefid_AffiliateRegExpConstraint(Pap_Db_Table_Users::REFID, "/^[0-9]*$/", $this->_('Referral ID can contain only [0-9] characters. %s given'))); }
public function addRefidConstraint(Pap_Db_Table_Users $usersTable) { $usersTable->addConstraint(new CustomRefid_CustomRefidConstraint()); }