示例#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;
 }
示例#2
0
文件: Order.php 项目: eix/catalog
 public function issue()
 {
     // Load the statuses map into the response.
     $this->addData('orders', array('statuses' => OrderModel::getStatusLabels()));
     parent::issue();
 }