Ejemplo n.º 1
0
 public function executeUsuarioResult()
 {
     $this->quote = '';
     if (SfVoUtil::matches($this->obj->getProfile()->getNombre(), $this->q)) {
     } else {
         if (SfVoUtil::matches($this->obj->getProfile()->getApellidos(), $this->q)) {
         } else {
             if (SfVoUtil::matches($this->obj->getProfile()->getPresentacion(), $this->q)) {
                 $this->quote = $this->obj->getProfile()->getPresentacion();
             }
         }
     }
     $c = new Criteria();
     $c->add(SfReviewPeer::SF_GUARD_USER_ID, $this->obj->getId());
     $c->add(SfReviewPeer::IS_ACTIVE, true);
     $this->numReviews = SfReviewPeer::doCount($c);
     $this->quote = SfVoUtil::highlightWords($this->quote, $this->q);
 }