Class Download - echiong/testRepo GitHub Wiki

##Class Download

Download class handles download related operations.

Package: [[application<a href="Package application.controlllers.md">controlllers]]
Extends: Framework_controller
Located at application/controllers/download.php

##Methods summary


public __construct ( )


public |string beats ( integer $id )

Download for beat audio file.

Parameters

$id integer
$id Beat record id.

Returns |string
Redirects the user to the download permalink on success or an error message on failure.

Uses Download::_record_audio_download()


public |string voices ( integer $id )

Download for voice audio file.

Parameters

$id integer
$id Voice record id.

Returns |string
Redirects the user to the download permalink on success or an error message on failure.

Uses Download::_record_audio_download()


public |string _record_audio_download ( integer $record, mixed $component )

Download for voice audio file.

Parameters

$record integer
$record Voice record id.

$component

Returns |string
Redirects the user to the download permalink on success or an error message on failure.

Uses Components_model::increment_stat() SeenContent_model::create() Used by Download::beats(),-Download::voices() Download::beats() Download::voices()

⚠️ **GitHub.com Fallback** ⚠️