Exemplo n.º 1
0
 /**
  * Pad:default.
  * @param int         $id
  * @param string|null $order
  * @throws BadRequestException
  */
 public function actionDefault($id, $order)
 {
     $this->loadPad($id);
     $this->notes = $this->noteManager->findByPad($id);
     if ($order) {
         $this->notes->order(OrderHelper::translateParameterToColumns($order));
     }
 }
Exemplo n.º 2
0
 /**
  * Note:default.
  * @param int $id
  * @throws BadRequestException
  */
 public function actionDefault($id)
 {
     $this->loadNote($id);
     $this->notes = $this->noteManager->findByPad($id);
 }