You are here

public function AlphaPagination::__wakeup in Views Alpha Pagination 7.2

File

src/AlphaPagination.php, line 31

Class

AlphaPagination
A base views handler for alpha pagination.

Code

public function __wakeup() {
  list($name, $display_id, $type, $id) = explode(':', $this->_handler);
  $view = views_get_view($name);
  $view
    ->set_display($display_id);
  $this->handler = $view->display_handler
    ->get_handler($type, $id);
  unset($this->_handler);
}