Bånder

TYER extends TextFrame
in package

TYER frame - Year.

The 'Year' frame is a numeric string with the year of the recording. This frame is always four characters long (until the year 10000).

Table of Contents

Properties

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

Methods

__construct()  : mixed
Constructs the TYER frame with given parameters.
getEncoding()  : int
Returns the text encoding.
getText()  : string
Returns the text content.
getYear()  : string
Returns the year.
parse()  : self
Parses the frame data.
setEncoding()  : self
Sets the text encoding.
setText()  : self
Sets the text content.
setYear()  : self
Sets the year.
setYearInt()  : self
Sets the year as an integer.
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 TYER frame with given parameters.

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

The year

$encoding : int = Encoding::UTF8

The text encoding

getEncoding()

Returns the text encoding.

public getEncoding() : int
Return values
int

getText()

Returns the text content.

public getText() : string
Return values
string

getYear()

Returns the year.

public getYear() : string
Return values
string

parse()

Parses the frame data.

public parse(string $frameData) : self
Parameters
$frameData : 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

setYear()

Sets the year.

public setYear(string $year) : self
Parameters
$year : string

The year

Return values
self

setYearInt()

Sets the year as an integer.

public setYearInt(int $year) : self
Parameters
$year : int

The year

Return values
self

toBytes()

Converts the frame to binary data.

public toBytes() : string
Return values
string

        
On this page

Search results