Bånder

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

$cdToc  : string
$encoding  : int
$frameId  : string

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
string

getEncoding()

Returns the text encoding.

public getEncoding() : int
Return values
int

parse()

Parses the frame data.

public parse(string $frameData) : self
Parameters
$frameData : string
Return values
self

setCdToc()

Sets the CD TOC data.

public setCdToc(string $cdToc) : self
Parameters
$cdToc : string
Return values
self

setEncoding()

Sets the text encoding.

public setEncoding(int $encoding) : self
Parameters
$encoding : int
Return values
self

toBytes()

Converts the frame to binary data.

public toBytes() : string
Return values
string

        
On this page

Search results