예제 #1
0
 /**
  * getLocationsByCountry
  * @author Cornelius Hansjakob <*****@*****.**>
  * @version 1.0
  */
 public function getLocationsByCountry($strCountry, $strProvince = '')
 {
     try {
         $this->getModelLocations();
         $intUnitId = $this->objGenericData->Setup()->getField('entry_location')->getValue();
         $intTypeId = $this->objGenericData->Setup()->getField('entry_type')->getValue();
         $objLocations = $this->objModelLocations->loadLocationsByCountry($strCountry, $intUnitId, $intTypeId, $strProvince);
         return $objLocations;
     } catch (Exception $exc) {
         $this->core->logger->err($exc);
     }
 }