You are here

class DisqusAPI in Drupal Most Popular 7

Hierarchy

Expanded class hierarchy of DisqusAPI

File

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

View source
class DisqusAPI extends DisqusResource {
  public $formats = array(
    'json' => 'dsq_json_decode',
  );
  public function __construct($key = null, $format = 'json', $version = '3.0') {
    $this->key = $key;
    $this->format = $format;
    $this->version = $version;
    parent::__construct($this);
  }
  public function __invoke() {
    throw new Exception('You cannot call the API without a resource.');
  }
  public function setKey($key) {
    $this->key = $key;
  }
  public function setFormat($format) {
    $this->format = $format;
  }
  public function setVersion($version) {
    $this->version = $version;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DisqusAPI::$formats public property
DisqusAPI::setFormat public function
DisqusAPI::setKey public function
DisqusAPI::setVersion public function
DisqusAPI::__construct public function Overrides DisqusResource::__construct
DisqusAPI::__invoke public function
DisqusResource::__call public function
DisqusResource::__get public function