예제 #1
0
 /**
  * Generates a File Download URL for access to a file protected by s2Member.
  *
  * @package s2Member\Files
  * @since 110926
  *
  * @param array $config Required. This is an array of configuration options associated with permissions being checked against the current User/Member; and also the actual URL generated by this routine.
  *   Possible ``$config`` array elements: `file_download` *(required)*, `file_download_key`, `file_stream`, `file_inline`, `file_storage`, `file_remote`, `file_ssl`, `file_rewrite`, `file_rewrite_base`, `skip_confirmation`, `url_to_storage_source`, `count_against_user`, `check_user`.
  * @param bool  $get_streamer_array Optional. Defaults to `false`. If `true`, this function will return an array with the following elements: `streamer`, `file`, `url`. For further details, please review this section in your Dashboard: `s2Member → Download Options → JW Player & RTMP Protocol Examples`.
  *
  * @return string A File Download URL string on success; or an array on success, with elements `streamer`, `file`, `url` when/if ``$get_streamer_array`` is true; else false on any type of failure.
  *
  * @see s2Member\API_Functions\s2member_file_download_url()
  */
 public static function create_file_download_url($config = NULL, $get_streamer_array = FALSE)
 {
     return c_ws_plugin__s2member_files_in::create_file_download_url($config, $get_streamer_array);
 }