lithium\data\model\Query::calculate()

public method

Accessor method for Query calculate values.

Parameters

  • string $calculate

    Value for calculate config setting.

Returns

mixed

Current calculate config value.

Source

	public function calculate($calculate = null) {
		if ($calculate) {
			$this->_config['calculate'] = $calculate;
			return $this;
		}
		return $this->_config['calculate'];
	}