You are here

public function ShareaholicShareCount::__construct in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

Same name and namespace in other branches
  1. 7.3 lib/social-share-counts/share_count.php \ShareaholicShareCount::__construct()

File

lib/social-share-counts/share_count.php, line 23

Class

ShareaholicShareCount
An abstract class Share Counts to be extended

Code

public function __construct($url, $services, $options) {

  // encode the url if needed
  if (!$this
    ->is_url_encoded($url)) {
    $url = urlencode($url);
  }
  $this->url = $url;
  $this->services = $services;
  $this->options = $options;
  $this->raw_response = array();
}