/** * This class requires correctly initialized merchant session * * @param Gpf_Api_Session $session */ 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!"); } $this->session = $session; $this->visitorId = @$_COOKIE[self::VISITOR_COOKIE_NAME]; }
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 { parent::__construct("Pap_Merchants_Banner_BannersGrid", "getRows", $session); } }
public function __construct(Gpf_Api_Session $session) { if($session->getRoleType() == Gpf_Api_Session::AFFILIATE) { $className = "Pap_Affiliates_Reports_TransactionsGrid"; } else { $className = "Pap_Merchants_Transaction_TransactionsGrid"; } parent::__construct($className, "getRows", $session); }
public function __construct(Gpf_Api_Session $session) { if($session->getRoleType() == Gpf_Api_Session::AFFILIATE) { throw new Gpf_Exception('Only merchant can view payouts grid. Please login as merchant.'); } $className = 'Pap_Merchants_Payout_PayAffiliatesGrid'; parent::__construct($className, 'getRows', $session); }
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) { if ($session->getRoleType() == Gpf_Api_Session::AFFILIATE) { throw new Gpf_Exception('Only merchant can view payouts history. Please login as merchant.'); } parent::__construct('Pap_Merchants_Payout_PayoutsHistoryGrid', 'getRows', $session); }