You are here

public function D3LibraryInfoController::__construct in d3.js 7

File

includes/D3LibraryInfoController.inc, line 32
D3 library info controller class.

Class

D3LibraryInfoController
Base handler for library info files.

Code

public function __construct($args = array()) {
  if (!empty($args['mapping']) && class_exists($args['mapping'])) {
    $this->mapping = new $args['mapping']($this);
  }
  if (!empty($args['processor']) && class_exists($args['processor'])) {
    $this->processor = new $args['processor']($this);
  }
}