Fix php list syntax issue

This commit is contained in:
gamonoid
2017-11-26 20:16:45 +01:00
parent af5569dc32
commit 6e74832798
4 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class AttendanceAdminManager extends AbstractModuleManager
\Classes\Macaw::get(REST_API_PATH.'attendance', function ($pathParams) {
$restEndPoint = new AttendanceRestEndPoint();
$restEndPoint->process('list', $pathParams);
$restEndPoint->process('listAll', $pathParams);
});
\Classes\Macaw::get(REST_API_PATH.'employee/(:num)/attendance', function ($pathParams) {

View File

@@ -135,7 +135,7 @@ class RestEndPoint
return $obj;
}
public function list(User $user)
public function listAll(User $user)
{
return new IceResponse(IceResponse::ERROR, "Method not Implemented", 404);
}

View File

@@ -38,7 +38,7 @@ class EmployeesAdminManager extends AbstractModuleManager
\Classes\Macaw::get(REST_API_PATH.'employees', function () {
$empRestEndPoint = new EmployeeRestEndPoint();
$empRestEndPoint->process('list');
$empRestEndPoint->process('listAll');
});
\Classes\Macaw::post(REST_API_PATH.'employees', function () {

View File

@@ -20,7 +20,7 @@ class EmployeeRestEndPoint extends RestEndPoint
return $obj;
}
public function list(User $user)
public function listAll(User $user)
{
$query = new DataQuery('Employee');