public function views_php_plugin_pager::post_execute in Views PHP 7.2
Same name and namespace in other branches
- 7 plugins/views/views_php_plugin_pager.inc \views_php_plugin_pager::post_execute()
Perform any needed actions just after the query executing.
File
- plugins/
views/ views_php_plugin_pager.inc, line 31
Class
- views_php_plugin_pager
- A (fake) pager plugin that wraps around the actual pager.
Code
public function post_execute(&$result) {
foreach (array(
/*'argument',*/
'field',
'filter',
'sort',
) as $type) {
foreach ($this->wrapped->view->{$type} as $id => $handler) {
if (is_callable(array(
$handler,
'php_post_execute',
))) {
$handler
->php_post_execute();
}
}
}
$this->wrapped
->post_execute($result);
}