You are here

public function DisqusResource::__get in Drupal Most Popular 7

File

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

Class

DisqusResource

Code

public function __get($attr) {
  $interface = $this->interface->{$attr};
  if (!$interface) {
    throw new DisqusInterfaceNotDefined();
  }
  return new DisqusResource($this->api, $interface, $attr, $this->tree);
}