public applyStrategy ( array $options, object $context ) | ||
$options | array | The option array |
$context | object | A query object to configure |
public function applyStrategy($options, $context)
{
}
/** * Helper method used by `export()` which delegate the query generation to the datasource. * * @param object $source Instance of the data source (`lithium\data\Source`) to use for * conversion. */ public function applyStrategy(Source $source) { if ($this->_built) { return; } $this->_built = true; if (!$this->_config['with']) { return; } $options = array(); if (isset($this->_config['strategy'])) { $options['strategy'] = $this->_config['strategy']; } $source->applyStrategy($options, $this); }