public function __construct(Gpf_Api_Session $session) { if($session->getRoleType() == Gpf_Api_Session::AFFILIATE) { throw new Exception("This class can be used only by merchant!"); } else { $this->class = "Pap_Merchants_Transaction_TransactionsForm"; } parent::__construct($session); }
public function __construct(Gpf_Api_Session $session) { if($session->getRoleType() == Gpf_Api_Session::AFFILIATE) { $this->class = "Pap_Affiliates_Profile_PersonalDetailsForm"; } else { $this->class = "Pap_Signup_AffiliateForm"; } parent::__construct($session); $this->addEqualField('username'); $this->getDataFields(); }
public function __construct(Gpf_Api_Session $session) { parent::__construct($session); $this->class = 'Pap_Features_RecurringCommissions_RecurringCommissionsForm'; }