You are here

public function DisqusResource::__construct in Drupal Most Popular 7

1 call to DisqusResource::__construct()
DisqusAPI::__construct in modules/mostpopular_disqus/disqusapi/disqusapi.php
1 method overrides DisqusResource::__construct()
DisqusAPI::__construct in modules/mostpopular_disqus/disqusapi/disqusapi.php

File

modules/mostpopular_disqus/disqusapi/disqusapi.php, line 50

Class

DisqusResource

Code

public function __construct($api, $interface = null, $node = null, $tree = array()) {
  global $DISQUS_API_INTERFACES;
  if (!$interface) {
    $interface = $DISQUS_API_INTERFACES;
  }
  $this->api = $api;
  $this->interface = $interface;
  $this->node = $node;
  if ($node) {
    array_push($tree, $node);
  }
  $this->tree = $tree;
}