Ejemplo n.º 1
0
 /**
  * set a specific search location
  * examples:
  * +47°54’53.10”, 11° 10’ 56.76”
  * 47°54’53.10;11°10’56.76”
  * 47.914750,11.182533
  * +47.914750 ; +11.1824
  * Darmstadt
  * Berlin
  *
  * @param string $where
  * @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
  */
 public function setWhere($where)
 {
     $validator = new Zend\Validator\NotEmpty();
     if (!$validator->isValid($where)) {
         $message = $validator->getMessages();
         throw new Zend_Service_DeveloperGarden_LocalSearch_Exception(current($message));
     }
     $this->_parameters['where'] = $where;
     return $this;
 }
Ejemplo n.º 2
0
 public function index14Action()
 {
     echo "<h3 style='color:red;font-weight:bold'>" . __METHOD__ . "</h3>";
     $validator = new \Zend\Validator\NotEmpty();
     $input = "";
     $input = "     ";
     $input = null;
     $input = array();
     if (!$validator->isValid($input)) {
         $message = $validator->getMessages();
         echo current($message);
     } else {
         echo "ok";
     }
     return false;
 }