/** * Constructor - if you're not using the class statically * * @param string $accessKey Access key * @param string $secretKey Secret key * @param boolean $use_ssl Enable SSL * @return void */ public function __construct($accessKey = null, $secretKey = null, $use_ssl = true, $api_host = 's3.amazonaws.com') { if ($accessKey !== null && $secretKey !== null) { self::setAuth($accessKey, $secretKey, $api_host); } self::$use_ssl = $use_ssl; self::$__api_host = $api_host; }