Пример #1
0
 /**
  * Gets one or more gateways.
  *
  * @param int $seller_id Seller ID.
  * @param int $id        Gateway ID.
  *
  * @return void
  */
 public function get_index($seller_id = null, $id = null)
 {
     if (!$id) {
         $gateways = \Service_Gateway::find(array('seller' => \Seller::active()));
     } else {
         $gateways = $this->get_gateway($id);
     }
     $this->response($gateways);
 }
Пример #2
0
 /**
  * Displays a seller's gateways.
  *
  * @return void
  */
 public function action_index()
 {
     $this->view->gateways = Service_Gateway::find(array('seller' => Seller::active()));
 }