TIT2
extends TextFrame
in package
TIT2 frame - Title/songname/content description.
The 'Title/songname/content description' frame is the actual name of the piece (e.g. "Adagio", "Hurricane Donna").
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructs the TIT2 frame with given parameters.
- getEncoding() : int
- Returns the text encoding.
- getText() : string
- Returns the text content.
- getTitle() : string
- Returns the title.
- parse() : self
- Parses the frame data.
- setEncoding() : self
- Sets the text encoding.
- setText() : self
- Sets the text content.
- setTitle() : self
- Sets the title.
- 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 TIT2 frame with given parameters.
public
__construct([string $title = '' ][, int $encoding = Encoding::UTF8 ]) : mixed
Parameters
- $title : string = ''
-
The title
- $encoding : int = Encoding::UTF8
-
The text encoding
getEncoding()
Returns the text encoding.
public
getEncoding() : int
Return values
intgetText()
Returns the text content.
public
getText() : string
Return values
stringgetTitle()
Returns the title.
public
getTitle() : 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
selfsetTitle()
Sets the title.
public
setTitle(string $title) : self
Parameters
- $title : string
-
The title
Return values
selftoBytes()
Converts the frame to binary data.
public
toBytes() : string