PHP Class SSLTrack, sslscrobbler
SSL puts a lot of useful information into the history file, including
the full path to the MP3, bpm, key, etc., as well as history-oriented data
such as start and end time, which deck the track was played on, played or
skipped, manually added, etc. There is also an incrementing integer primary
key (which I've called 'row').
History file Tracks also have a concept of their own 'status', in the sense of
'NEW', 'PLAYING', 'PLAYED' or 'SKIPPED'. (@see SSLRealtimeModel for more detail).
These states are derived from a combination of the 'played' field, which is
either 0 or 1 corresponding to whether or not the row is 'green' in the SSL
interface, and whether or not an 'endtime' is present.
Afficher le fichier
Open project: ben-xo/sslscrobbler
Class Usage Examples
Protected Properties
Méthodes publiques
Méthodes protégées
Method Details
__toString()
public méthode
file_exists()
protected méthode
getAlbum()
public méthode
getArtist()
public méthode
getEndTime()
public méthode
getFilename()
public méthode
getFullEndTime()
public méthode
getFullStartTime()
public méthode
getFullTitle()
public méthode
getFullpath()
public méthode
getLength()
public méthode
Pass SSLTrack::TRY_HARD if you would like the file
length to be guessed from the file itself, if possible,
and don't mind that this is possibly an expensive operation.
getLengthInSeconds()
public méthode
Pass SSLTrack::TRY_HARD if you would like the file
length to be guessed from the file itself, if possible,
and don't mind that this is possibly an expensive operation.
getPlayTime()
public méthode
getPlayed()
public méthode
getStartTime()
public méthode
getStatus()
public méthode
getTitle()
public méthode
getUnpacker()
public méthode
getUpdatedAt()
public méthode
guessLengthFromFile()
protected méthode
Not sure why; perhaps files that have never been analysed.
So, let's attempt to guess it by analysing the full file.
isPlayed()
public méthode
populateFrom()
public méthode
renderTime()
protected méthode
setLengthIfUnknown()
protected méthode
This will attempt to set the length via guess work, if it's not already set.
Property Details
$added protected_oe property
$album protected_oe property
$artist protected_oe property
$deck protected_oe property
$end_time protected_oe property
$fields protected_oe property
$filename protected_oe property
$fullpath protected_oe property
$length protected_oe property
$played protected_oe property
$playtime protected_oe property
$row protected_oe property
$start_time protected_oe property
$title protected_oe property
$updated_at protected_oe property