__construct() public method

Class constructor.
public __construct ( string $_api_url, string $_plugin_file, array $_api_data = null ) : void
$_api_url string The URL pointing to the custom API endpoint.
$_plugin_file string Path to the plugin file.
$_api_data array Optional data to send with API calls.
return void
Esempio n. 1
0
 /**
  * Class constructor.
  *
  * @param string $_api_url     The URL pointing to the custom API endpoint.
  * @param string $_plugin_file Path to the plugin file.
  * @param array  $_api_data    Optional data to send with API calls.
  *
  * @return Ai1ec_EDD_SL_Plugin_Updater
  */
 public function __construct($_api_url, $_plugin_file, $_api_data = null)
 {
     $this->_timely_api_data = $_api_data;
     $_api_url = $this->_modify_api_url($_api_url, $_plugin_file, $_api_data);
     $this->_timely_api_url = $_api_url;
     parent::__construct($_api_url, $_plugin_file, $_api_data);
     $this->_timely_api_url = trailingslashit($this->_timely_api_url);
 }
 public function __construct($_api_url, $_plugin_file, $_api_data, $slug)
 {
     parent::__construct($_api_url, $_plugin_file, $_api_data);
     $this->slug = $slug;
 }