TRCK
extends TextFrame
in package
TRCK frame - Track number/Position in set.
The 'Track number/Position in set' frame is a numeric string containing the order number of the audio-file on its original recording. This may be extended with a "/" character and a numeric string containing the total number of tracks/elements on the original recording. E.g. "4/9".
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructs the TRCK frame with given parameters.
- getEncoding() : int
- Returns the text encoding.
- getText() : string
- Returns the text content.
- getTrack() : string
- Returns the track number.
- parse() : self
- Parses the frame data.
- setEncoding() : self
- Sets the text encoding.
- setText() : self
- Sets the text content.
- setTrack() : self
- Sets the track number.
- toBytes() : string
- Converts the frame to binary data.
Properties
$encoding
protected
int
$encoding
= Encoding::UTF8
$frameId
protected
string
$frameId
Hooks
protected
string
get
$text
protected
string
$text
= ''
Methods
__construct()
Constructs the TRCK frame with given parameters.
public
__construct([string $track = '' ][, int $encoding = Encoding::UTF8 ]) : mixed
Parameters
- $track : string = ''
- $encoding : int = Encoding::UTF8
getEncoding()
Returns the text encoding.
public
getEncoding() : int
Return values
intgetText()
Returns the text content.
public
getText() : string
Return values
stringgetTrack()
Returns the track number.
public
getTrack() : string
Return values
stringparse()
Parses the frame data.
public
parse(string $frameData) : self
Parameters
- $frameData : string
Return values
selfsetEncoding()
Sets the text encoding.
public
setEncoding(int $encoding) : self
Parameters
- $encoding : int
Return values
selfsetText()
Sets the text content.
public
setText(string $text) : self
Parameters
- $text : string
Return values
selfsetTrack()
Sets the track number.
public
setTrack(string $track) : self
Parameters
- $track : string
Return values
selftoBytes()
Converts the frame to binary data.
public
toBytes() : string