original_string: public function fetchOne($sql, $params = array()) {
      $result = $this->db()->fetchAssoc($sql, $params);
  
      if (!empty($result)) {
        $this->setRecord($result);
  
        return $this;
      }
  
      return FALSE;
    }
code: public function fetchOne($sql, $params = array()) {
      $result = $this->db()->fetchAssoc($sql, $params);
  
      if (!empty($result)) {
        $this->setRecord($result);
  
        return $this;
      }
  
      return FALSE;
    }
code_tokens: public function fetchOne ( $ sql , $ params = array ( ) ) { $ result = $ this -> db ( ) -> fetchAssoc ( $ sql , $ params ) ; if ( ! empty ( $ result ) ) { $ this -> setRecord ( $ result ) ; return $ this ; } return FALSE ; }
docstring: Fetchs one record with the given query.
  
  If success sets the record in the current object and return $this.
  If fails return false.
  
  @param $sql
  @param $params
  
  @return The current instance with the record setted internally.
docstring_tokens: Fetchs one record with the given query .