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