applyStrategy() public method

Applying a strategy to a lithium\data\model\Query object
public applyStrategy ( array $options, object $context )
$options array The option array
$context object A query object to configure
コード例 #1
0
ファイル: Query.php プロジェクト: newmight2015/Blockchain-2
 /**
  * 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);
 }