public function isValid($value)
 {
     $this->_setValue($value);
     $mapper = new Application_Model_PropertyMapper();
     foreach ($mapper->fetchAll() as $property) {
         if ($property->getReference_no() == $value) {
             $this->_error(self::VALUE);
             return false;
         }
     }
     return true;
 }
 public function detailAction()
 {
     if ($this->_hasParam("property")) {
         $id = $this->_getParam("property");
         if (!is_numeric($id)) {
             $this->_redirect("/property/error");
             return;
         }
         $model = new Application_Model_PropertyMapper();
         $property = $model->fetchAll("id = " . (int) $id);
         if (count($property) == 0) {
             $this->_redirect("/property/error");
             return;
         }
         $this->view->property = $property;
     } else {
         $this->renderScript("property/error.phtml");
     }
 }