You are here

public function views_php_plugin_query::execute in Views PHP 7

Same name and namespace in other branches
  1. 7.2 plugins/views/views_php_plugin_query.inc \views_php_plugin_query::execute()

Implements views_plugin_query#execute().

File

plugins/views/views_php_plugin_query.inc, line 13

Class

views_php_plugin_query
A (fake) pager plugin that wraps around the actual query.

Code

public function execute(&$view) {
  $pager = new views_php_plugin_pager();
  $pager
    ->php_wrap($this->wrapped->pager);
  $this->wrapped
    ->execute($view);
  $pager
    ->php_unwrap();
}