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;
	}
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;
	}
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 ; }
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
Custom find method to compute resultset s computable field .