Files
luos/workflow/engine/services/rest/Case.php
Victor Saisa Lopez d0bf6400af BUG 9830 "En Advanced Search no funciona la busqueda por el..." SOLVED
- First commit:
  > Solution to bug 9924
  > It improved the list of cases (inbox, draft, participated, paused, advanced search)
* Available from version 2.0.45
2012-10-31 10:45:21 -04:00

22 lines
759 B
PHP

<?php
class Services_Rest_Case
{
protected function get($id = '', $start=null, $limit=null, $type=null, $filter=null, $search=null, $process=null, $user=null, $status=null, $typeResource=null, $dateFrom=null, $dateTo=null)
{
if (empty($id)) {
// getting all records.
G::loadClass('applications');
$app = new Applications();
$userUid = Services_Rest_Auth::$userId;
return $app->getAll($userUid, $start, $limit, $type, $filter, $search, $process, $status, $typeResource, $dateFrom, $dateTo);
} else {
// get a specific record.
G::loadClass('wsBase');
$wsBase = new wsBase();
return $wsBase->getCaseInfo($id);
}
}
}