PM Rest: Renaming Application to => Case class rest api

This commit is contained in:
Erik Amaru Ortiz
2012-08-13 18:18:46 -04:00
parent 9be0c008c4
commit ffa4e578d5

View File

@@ -1,8 +1,8 @@
<?php
class Services_Rest_Application
class Services_Rest_Case
{
protected function get($id = '', $type = null, $start = null, $limit = null)
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.
@@ -10,7 +10,7 @@ class Services_Rest_Application
$app = new Applications();
$userUid = Services_Rest_Auth::$userId;
return $app->getAll($userUid, $start, $limit, $type);
return $app->getAll($userUid, $start, $limit, $type, $filter, $search, $process, $user, $status, $typeResource, $dateFrom, $dateTo);
} else {
// get a specific record.
G::loadClass('wsBase');