Inheritance: extends Gpf_Rpc_Request
コード例 #1
0
 public function getRows(Gpf_Rpc_Params $params) {
      $request = new Gpf_Rpc_GridRequest($this->getClassName(), 'getRows');
      $request->setUrl($this->getUrl());
      $request->setParams($params);
             
      $request->sendNow();
                      
      return $request->getResponseObject();
 }
コード例 #2
0
 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);
 	}
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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);
 }