Class WC_Download_Handler

Download handler

Handle digital downloads.

Package: WooCommerce\Classes
Category: Class
Author: WooThemes
Version: 2.1.0
Class: WC_Download_Handler
Located at includes/class-wc-download-handler.php

Methods summary

public
# __construct( )

Constructor

Constructor

public
# download_product( )

Check if we need to download a file and check validity

Check if we need to download a file and check validity

public
# download( mixed $file_path, mixed $product_id )

Download a file - hook into init function.

Download a file - hook into init function.

public static boolean|integer
# readfile_chunked( string $file, boolean $retbytes = true )

readfile_chunked Reads file in chunks so big downloads are possible without changing PHP.INI - http://codeigniter.com/wiki/Download_helper_for_large_files/

readfile_chunked Reads file in chunks so big downloads are possible without changing PHP.INI - http://codeigniter.com/wiki/Download_helper_for_large_files/

Parameters

$file
string
$file
$retbytes
boolean
$retbytes return bytes of file

Returns

boolean|integer

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0