Пример #1
0
 /**
  * Get list Dashboards
  *
  * @param string $start {@from path}
  * @param string $limit {@from path}
  * @param string $sort {@from path}
  * @param string $dir {@from path}
  * @param string $search {@from path}
  * @return array
  *
  * @author Marco Antonio Nina <*****@*****.**>
  * @copyright Colosa - Bolivia
  *
  * @url GET
  */
 public function doGetListDashboards(
     $start = 0,
     $limit = 0,
     $sort = 'DASHBOARD.DAS_TITLE',
     $dir = 'DESC',
     $search = ''
 ) {
     try {
         $options['start'] = $start;
         $options['limit'] = $limit;
         $options['sort'] = $sort;
         $options['dir'] = $dir;
         $options['search'] = $search;
         $dashboard = new \ProcessMaker\BusinessModel\Dashboard();
         $response = $dashboard->getListDashboards($options);
         return $response;
     } catch (\Exception $e) {
         throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
     }
 }