/**
  * This is the constructor
  * @param $url The Project URL (forwarded to the parent class)
  * @param $flickr_licenses_blacklist The list of Flickr licenses ID not allowed at Wiki
  * @param $ipernity_licenses_blacklist The list of Ipernity licenses ID not allowed at Wiki
  * @param $picasa_licenses_blacklist The list of Picasa licenses ID not allowed at Wiki
  * @param $flickr_api_key The Flckr API key
  * @param $ipernity_api_key The Ipernity API key
  * @return void
  **/
 function __construct($url, $flickr_licenses_blacklist, $ipernity_licenses_blacklist, $picasa_licenses_blacklist, $flickr_api_key = null, $ipernity_api_key = null)
 {
     Wiki::__construct($url);
     // Pass main parameter to parent Class' __construct()
     $this->flickr_licenses_blacklist = $flickr_licenses_blacklist;
     $this->ipernity_licenses_blacklist = $ipernity_licenses_blacklist;
     $this->picasa_licenses_blacklist = $picasa_licenses_blacklist;
     $this->flickr_api_key = $flickr_api_key;
     $this->ipernity_api_key = $ipernity_api_key;
     $this->site_url = parse_url($this->url);
     $this->site_url = $this->site_url['scheme'] . '://' . $this->site_url['host'] . '/wiki/';
 }
Example #2
0
 /**
  * This is the constructor
  * @param $url The Project URL (forwarded to the parent class)
  * @return void
  **/
 function __construct($url, $mail_operator)
 {
     Wiki::__construct($url);
     // Pass main parameter to parent Class' __construct()
     $this->site_url = parse_url($this->url);
     $this->site_url = $this->site_url['scheme'] . '://' . $this->site_url['host'] . '/wiki/';
     $this->mail_operator = $mail_operator;
 }