original_string: public function _findComputed(Model $Model, $func, $state, $query, $result = array()) {
  		if ('after' == $state) {
  			return $result;
  		}
  
  		$query['fields'] = array(sprintf(
  			'%s(%s) AS %s'
  			, strtoupper($this->_methods[strtolower($this->settings[$Model->alias]['method'])])
  			, $Model->alias . '.' . $this->settings[$Model->alias]['column']
  			, $this->settings[$Model->alias]['result']
  		));
  
  		return $query;
  	}
code: public function _findComputed(Model $Model, $func, $state, $query, $result = array()) {
  		if ('after' == $state) {
  			return $result;
  		}
  
  		$query['fields'] = array(sprintf(
  			'%s(%s) AS %s'
  			, strtoupper($this->_methods[strtolower($this->settings[$Model->alias]['method'])])
  			, $Model->alias . '.' . $this->settings[$Model->alias]['column']
  			, $this->settings[$Model->alias]['result']
  		));
  
  		return $query;
  	}
code_tokens: public function _findComputed ( Model $ Model , $ func , $ state , $ query , $ result = array ( ) ) { if ( 'after' == $ state ) { return $ result ; } $ query [ 'fields' ] = array ( sprintf ( '%s(%s) AS %s' , strtoupper ( $ this -> _methods [ strtolower ( $ this -> settings [ $ Model -> alias ] [ 'method' ] ) ] ) , $ Model -> alias . '.' . $ this -> settings [ $ Model -> alias ] [ 'column' ] , $ this -> settings [ $ Model -> alias ] [ 'result' ] ) ) ; return $ query ; }
docstring: Custom find method to compute resultset's computable field.
  
  @param Model $model Model to query.
  @param string $func
  @param string $state Either "before" or "after"
  @param array $query
  @param array $result
  @return array
docstring_tokens: Custom find method to compute resultset s computable field .