Beispiel #1
0
     include '/VO/StateVO.php';
     include '/DAO/StateDAO.php';
     $stateDAO = new stateDAO();
     //Get all states of a country
     $optionVO = $stateDAO->getAllByCountry($parentId);
     //getData
     break;
     //City case
 //City case
 case "City":
     //Load City VO and DAO files
     include '/VO/CityVO.php';
     include '/DAO/CityDAO.php';
     $cityDAO = new CityDAO();
     //Get all cities of a state
     $optionVO = $cityDAO->getAllByState($parentId);
     //getData
     break;
     //University case
 //University case
 case "University":
     //Load Univeristy VO and DAO files
     include '/VO/UniversityVO.php';
     include '/DAO/UniversityDAO.php';
     $universityDAO = new universityDAO();
     //Get all universities
     $optionVO = $universityDAO->getUniversities();
     //getData
     break;
     //Department case
 //Department case