MCDI
extends Frame
in package
MCDI frame - Music CD identifier.
The 'Music CD identifier' frame contains the binary data from the Table of Contents (TOC) of the CD, which is used as a unique identifier for the CD.
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructs the MCDI frame with given parameters.
- getCdToc() : string
- Returns the CD TOC data.
- getEncoding() : int
- Returns the text encoding.
- parse() : self
- Parses the frame data.
- setCdToc() : self
- Sets the CD TOC data.
- setEncoding() : self
- Sets the text encoding.
- toBytes() : string
- Converts the frame to binary data.
Properties
$cdToc
protected
string
$cdToc
= ''
$encoding
protected
int
$encoding
= Encoding::UTF8
$frameId
protected
string
$frameId
Hooks
protected
string
get
Methods
__construct()
Constructs the MCDI frame with given parameters.
public
__construct([string $cdToc = '' ]) : mixed
Parameters
- $cdToc : string = ''
getCdToc()
Returns the CD TOC data.
public
getCdToc() : string
Return values
stringgetEncoding()
Returns the text encoding.
public
getEncoding() : int
Return values
intparse()
Parses the frame data.
public
parse(string $frameData) : self
Parameters
- $frameData : string
Return values
selfsetCdToc()
Sets the CD TOC data.
public
setCdToc(string $cdToc) : self
Parameters
- $cdToc : string
Return values
selfsetEncoding()
Sets the text encoding.
public
setEncoding(int $encoding) : self
Parameters
- $encoding : int
Return values
selftoBytes()
Converts the frame to binary data.
public
toBytes() : string