You are here

public function Report::__destruct in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Report.php \Drupal\forena\Report::__destruct()

Unset properites for better memory management.

File

src/Report.php, line 96
Basic report provider. Controls the rendering of the report.

Class

Report

Namespace

Drupal\forena

Code

public function __destruct() {

  // Empty Renderer controls
  // Empty properties.
  foreach ($this as $key => $value) {
    unset($this->{$key});
  }
}