示例#1
0
 /**
  * Generates a File Download URL for access to a file protected by optimizeMember.
  *
  * @package optimizeMember\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: `optimizeMember -> Download Options -> JW Player & RTMP Protocol Examples`.
  * @return str 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 optimizeMember\API_Functions\optimizemember_file_download_url()
  */
 public static function create_file_download_url($config = FALSE, $get_streamer_array = FALSE)
 {
     return c_ws_plugin__optimizemember_files_in::create_file_download_url($config, $get_streamer_array);
 }