Beispiel #1
0
 /**
  *
  * @param string $bucket_name
  * @param string $prefix
  * @param string $access_key
  * @param string $secret_key
  * @param string $session_token
  * @param string $check_word
  * @param string $file_name
  */
 function __construct($bucket_name, $prefix, $access_key, $secret_key, $session_token, $check_word, $file_name)
 {
     parent::__construct(0);
     $this->arBucket = array("ACTIVE" => "Y", "SORT" => 0, "READ_ONLY" => "N", "SERVICE_ID" => "amazon_s3", "BUCKET" => $bucket_name, "LOCATION" => "", "CNAME" => "", "FILE_COUNT" => 0, "FILE_SIZE" => 0, "LAST_FILE_ID" => 0, "PREFIX" => $prefix, "SETTINGS" => array("ACCESS_KEY" => $access_key, "SECRET_KEY" => $secret_key, "SESSION_TOKEN" => $session_token), "FILE_RULES" => 'a:1:{i:0;a:3:{s:6:"MODULE";s:0:"";s:9:"EXTENSION";s:0:"";s:4:"SIZE";s:0:"";}}', "FILE_RULES_COMPILED" => array(array("MODULE_MASK" => "", "EXTENTION_MASK" => "", "SIZE_ARRAY" => array())));
     $this->file_name = $file_name;
     $this->check_word = $check_word;
 }