コード例 #1
0
 public function getUsuarios($firstItem, $orderPriority)
 {
     try {
         $ctrl = new UsuarioController($this->persistenceManager);
         $usuario = $ctrl->getUsuarios(true, $firstItem, SALAS_COMP_LIST_PAGE_SIZE, array(UsuarioDTO::$ORDER_BY_USUARIO_LOGIN), $orderPriority);
         $cm = new CommunicationMensaje(true, SALAS_COMP_ALERT_A_OPERATION_SUCCESS, $this->ID + 151, $usuario, $ctrl->getLastRequestSize());
         return $cm;
     } catch (Exception $e) {
         return new CommunicationMensaje(false, $e->getMessage(), $this->ID + 152 . "->" . $e->getCode());
     }
 }