Bånder

TDAT extends TextFrame
in package

TDAT frame - Date.

The 'Date' frame is a numeric string in the DDMM format containing the date for the recording. This field is always four characters long.

Table of Contents

Properties

$encoding  : int
$frameId  : string
$text  : string

Methods

__construct()  : mixed
Constructs the TDAT frame with given parameters.
getDate()  : string
Returns the date.
getEncoding()  : int
Returns the text encoding.
getText()  : string
Returns the text content.
parse()  : self
Parses the frame data.
setDate()  : self
Sets the date.
setEncoding()  : self
Sets the text encoding.
setText()  : self
Sets the text content.
toBytes()  : string
Converts the frame to binary data.

Properties

$encoding

protected int $encoding = Encoding::UTF8

$frameId

protected string $frameId
Hooks
protected string get

Methods

__construct()

Constructs the TDAT frame with given parameters.

public __construct([string $date = '' ][, int $encoding = Encoding::UTF8 ]) : mixed
Parameters
$date : string = ''
$encoding : int = Encoding::UTF8

getDate()

Returns the date.

public getDate() : string
Return values
string

getEncoding()

Returns the text encoding.

public getEncoding() : int
Return values
int

getText()

Returns the text content.

public getText() : string
Return values
string

parse()

Parses the frame data.

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

setDate()

Sets the date.

public setDate(string $date) : self
Parameters
$date : string
Return values
self

setEncoding()

Sets the text encoding.

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

setText()

Sets the text content.

public setText(string $text) : self
Parameters
$text : string
Return values
self

toBytes()

Converts the frame to binary data.

public toBytes() : string
Return values
string

        
On this page

Search results