lithium\data\model\Query::applyStrategy PHP Method

applyStrategy() public method

Helper method used by export() which delegate the query generation to the data source.
public applyStrategy ( Source $source )
$source lithium\data\Source Instance of the 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);
    }