Exemplo n.º 1
0
 protected function getEditionResponse(Entity $entity = null)
 {
     $response = parent::getEditionResponse($entity);
     // Add the status labels.
     $response->addData('orders', array('statuses' => Order::getStatusLabels()));
     return $response;
 }
Exemplo n.º 2
0
 public function issue()
 {
     // Load the statuses map into the response.
     $this->addData('orders', array('statuses' => OrderModel::getStatusLabels()));
     parent::issue();
 }