Ejemplo n.º 1
0
 /**
  * Load from the Session the geolocation into $this->objUserGeolocation
  *
  * @return boolean True => Load | False => no Data
  */
 protected function loadSession()
 {
     try {
         $mixGeolocation = $this->Session->get("geolocation");
         if (is_array($mixGeolocation)) {
             $this->objUserGeolocation = new GeolocationContainer();
             $this->objUserGeolocation->appendData($mixGeolocation);
             return true;
         }
     } catch (\Exception $exc) {
         // Nothing to do.
     }
     return false;
 }