PHP 클래스 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.
저자: ben
상속: extends SSLStruct
파일 보기 프로젝트 열기: ben-xo/sslscrobbler 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$added
$album
$artist
$deck
$end_time
$fields
$filename
$fullpath
$length
$played
$playtime
$row
$start_time
$title
$updated_at

공개 메소드들

메소드 설명
__toString ( )
getAlbum ( )
getArtist ( )
getDeck ( )
getEndTime ( )
getFilename ( )
getFullEndTime ( )
getFullStartTime ( )
getFullTitle ( )
getFullpath ( )
getLength ( $flags ) Get the length of the file, as a string (e.g. "1:23.45" for 1 minute 23.45 seconds). This is how Serato returns it from the file.
getLengthInSeconds ( $flags ) Get the length of the file, as an integer number of seconds.
getPlayTime ( )
getPlayed ( )
getRow ( )
getStartTime ( )
getStatus ( )
getTitle ( )
getUnpacker ( )
getUpdatedAt ( )
isPlayed ( )
populateFrom ( array $fields )
toArray ( )

보호된 메소드들

메소드 설명
file_exists ( $filename )
guessLengthFromFile ( ) Sometimes ScratchLive doesn't supply the length, even when it knows the file.
renderTime ( $timestamp )
setLengthIfUnknown ( ) This will attempt to set the length via guess work, if it's not already set.

메소드 상세

__toString() 공개 메소드

public __toString ( )

file_exists() 보호된 메소드

protected file_exists ( $filename )

getAlbum() 공개 메소드

public getAlbum ( )

getArtist() 공개 메소드

public getArtist ( )

getDeck() 공개 메소드

public getDeck ( )

getEndTime() 공개 메소드

public getEndTime ( )

getFilename() 공개 메소드

public getFilename ( )

getFullEndTime() 공개 메소드

public getFullEndTime ( )

getFullStartTime() 공개 메소드

public getFullStartTime ( )

getFullTitle() 공개 메소드

public getFullTitle ( )

getFullpath() 공개 메소드

public getFullpath ( )

getLength() 공개 메소드

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.
public getLength ( $flags )
$flags

getLengthInSeconds() 공개 메소드

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.
public getLengthInSeconds ( $flags )
$flags

getPlayTime() 공개 메소드

public getPlayTime ( )

getPlayed() 공개 메소드

public getPlayed ( )

getRow() 공개 메소드

public getRow ( )

getStartTime() 공개 메소드

public getStartTime ( )

getStatus() 공개 메소드

public getStatus ( )

getTitle() 공개 메소드

public getTitle ( )

getUnpacker() 공개 메소드

public getUnpacker ( )

getUpdatedAt() 공개 메소드

public getUpdatedAt ( )

guessLengthFromFile() 보호된 메소드

Not sure why; perhaps files that have never been analysed. So, let's attempt to guess it by analysing the full file.
protected guessLengthFromFile ( )

isPlayed() 공개 메소드

public isPlayed ( )

populateFrom() 공개 메소드

public populateFrom ( array $fields )
$fields array

renderTime() 보호된 메소드

protected renderTime ( $timestamp )

setLengthIfUnknown() 보호된 메소드

This will attempt to set the length via guess work, if it's not already set.
protected setLengthIfUnknown ( )

toArray() 공개 메소드

public toArray ( )

프로퍼티 상세

$added 보호되어 있는 프로퍼티

protected $added

$album 보호되어 있는 프로퍼티

protected $album

$artist 보호되어 있는 프로퍼티

protected $artist

$deck 보호되어 있는 프로퍼티

protected $deck

$end_time 보호되어 있는 프로퍼티

protected $end_time

$fields 보호되어 있는 프로퍼티

protected $fields

$filename 보호되어 있는 프로퍼티

protected $filename

$fullpath 보호되어 있는 프로퍼티

protected $fullpath

$length 보호되어 있는 프로퍼티

protected $length

$played 보호되어 있는 프로퍼티

protected $played

$playtime 보호되어 있는 프로퍼티

protected $playtime

$row 보호되어 있는 프로퍼티

protected $row

$start_time 보호되어 있는 프로퍼티

protected $start_time

$title 보호되어 있는 프로퍼티

protected $title

$updated_at 보호되어 있는 프로퍼티

protected $updated_at