Class SeenContent_model - echiong/testRepo GitHub Wiki
##Class SeenContent_model
SeenContent_model handles seen content data operations.
Package: [[application<a href="Package application.models.md">models]]
Extends:
CI_Model
Located at application/models/seencontent_model.php
##Methods summary
public integer create ( object $data )
Creates the seenContent record entry
Parameters
$data
object
$data This contains the data for creating a seenContent record
Returns
integer
id record created
Used by Components::record_play() Components::seen_lyrics() Download::_record_audio_download() Users::add_favorite() Components::record_play() Components::seen_lyrics() Download::_record_audio_download() Users::add_favorite()
public array get ( string $operation, string $component )
Returns entries references from the seenContent record
Parameters
$operation
string
$operation The kind of operation done (download, play, and favorite)
$component
string
$component The component (beats, voices, lyrics, and videos)
Returns
array
public delete_by_component ( string $component, integer $componentID )
Deletes a specific component.
Parameters
$component
string
$component The component
$componentID
integer
$componentID The component ID
Used by Components::delete() Components::delete()
Methods inherited from CI_Model
__construct()
__get()