public function findAll() { $allEmployees = parent::findAll("titles"); $employeess = array(); foreach ($allEmployees as $employees) { $u = new Employees(); array_push($employeess, $u->getFromArray($employees)); } return $employeess; }
public function findAll() { $allDepartment = parent::findAll("departments"); $departments = array(); foreach ($allDepartment as $department) { $u = new Department(); array_push($departments, $u->getFromArray($department)); } return $departments; }
public function findAll() { $allUser = parent::findAll("User"); $users = array(); foreach ($allUser as $user) { $u = new User(); array_push($users, $u->getFromArray($user)); } return $users; }