You are here

class views_php_plugin_wrapper in Views PHP 7

Same name and namespace in other branches
  1. 7.2 plugins/views/views_php_plugin_wrapper.inc \views_php_plugin_wrapper

A helper class that wraps around the actual views plugin.

Hierarchy

Expanded class hierarchy of views_php_plugin_wrapper

See also

views_php_plugin_query

views_php_plugin_pager

File

plugins/views/views_php_plugin_wrapper.inc, line 9

View source
class views_php_plugin_wrapper {
  protected $wrapped;
  protected $wrapped_link;

  /**
   *
   */
  public function php_wrap(&$link) {
    $this->wrapped_link =& $link;
    $this->wrapped = $link;
    $link = $this;
  }

  /**
   *
   */
  public function php_unwrap() {
    $this->wrapped_link = $this->wrapped;
    unset($this->wrapped);
    unset($this->wrapped_link);
  }

  /**
   *
   */
  public function &__get($name) {
    return $this->wrapped->{$name};
  }

  /**
   *
   */
  public function __set($name, $value) {
    return $this->wrapped->{$name} = $value;
  }

  /**
   *
   */
  public function __isset($name) {
    return isset($this->wrapped->{$name});
  }

  /**
   *
   */
  public function __unset($name) {
    unset($this->wrapped->{$name});
  }

  /**
   *
   */
  public function __call($name, $arguments) {
    return call_user_func_array(array(
      $this->wrapped,
      $name,
    ), $arguments);
  }

}

Members