Esempio n. 1
0
 /**
  * Set the request information.
  *
  * @param array An associative array of request information
  *
  * @return LibBaseControllerAbstract
  */
 public function setRequest(array $request)
 {
     parent::setRequest($request);
     if (isset($this->_request->term)) {
         $term = $this->getService('anahita:filter.term')->sanitize($this->_request->term);
         $this->_request->term = $term;
         $this->term = $term;
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * Set the request information.
  *
  * @param array An associative array of request information
  *
  * @return LibBaseControllerAbstract
  */
 public function setRequest(array $request)
 {
     parent::setRequest($request);
     if (isset($this->_request->return)) {
         $return = $this->getService('com://site/people.filter.return')->sanitize($this->_request->return);
         $this->_request->return = $return;
         $this->return = $return;
     }
     return $this;
 }
Esempio n. 3
0
 /**
  * Set the request information.
  *
  * @param array An associative array of request information
  *
  * @return LibBaseControllerAbstract
  */
 public function setRequest(array $request)
 {
     parent::setRequest($request);
     if (isset($this->_request->term)) {
         $value = $this->getService('anahita:filter.term')->sanitize($this->_request->term);
         $this->_request->term = $value;
         $this->term = $value;
     }
     if (isset($this->_request->search_range)) {
         $value = (int) $this->_request->search_range;
         $this->_request->search_range = $value;
         $this->search_range = $value;
     }
     if ($this->_request->search_comments == 1 || $this->_request->search_comments == 'true') {
         $value = true;
     } else {
         $value = false;
     }
     $this->_request->search_comments = $value;
     $this->search_comments = $value;
     return $this;
 }