getid3_id3v1
extends getid3_handler
in package
Table of Contents
Properties
- $data_string : string
- String to analyze.
- $data_string_flag : bool
- Analyzing filepointer or string.
- $data_string_length : int
- String length.
- $data_string_position : int
- Seek position in string.
- $getid3 : getID3
- $dependency_to : string
Methods
- __construct() : mixed
- getid3_handler constructor.
- Analyze() : bool
- Analyze from file pointer.
- AnalyzeString() : mixed
- Analyze from string instead.
- ArrayOfGenres() : array<string|int, string>
- cutfield() : string
- GenerateID3v1Tag() : string
- LookupGenreID() : string|false
- LookupGenreName() : string|false
- saveAttachment() : string|null
- setStringMode() : mixed
- StandardiseID3v1GenreName() : string|false
- error() : bool
- feof() : bool
- fgets() : string|false
- fread() : string|false
- fseek() : int
- ftell() : int|bool
- isDependencyFor() : bool
- notice() : mixed
- warning() : bool
Properties
$data_string
String to analyze.
protected
string
$data_string
= ''
$data_string_flag
Analyzing filepointer or string.
protected
bool
$data_string_flag
= \false
$data_string_length
String length.
protected
int
$data_string_length
= 0
$data_string_position
Seek position in string.
protected
int
$data_string_position
= 0
$getid3
protected
getID3
$getid3
$dependency_to
private
string
$dependency_to
Methods
__construct()
getid3_handler constructor.
public
__construct(getID3 $getid3[, string $call_module = null ]) : mixed
Parameters
- $getid3 : getID3
- $call_module : string = null
Analyze()
Analyze from file pointer.
public
Analyze() : bool
Return values
boolAnalyzeString()
Analyze from string instead.
public
AnalyzeString(string $string) : mixed
Parameters
- $string : string
ArrayOfGenres()
public
static ArrayOfGenres([bool $allowSCMPXextended = false ]) : array<string|int, string>
Parameters
- $allowSCMPXextended : bool = false
Return values
array<string|int, string>cutfield()
public
static cutfield(string $str) : string
Parameters
- $str : string
Return values
stringGenerateID3v1Tag()
public
static GenerateID3v1Tag(string $title, string $artist, string $album, string $year, int $genreid, string $comment[, int|string $track = '' ]) : string
Parameters
- $title : string
- $artist : string
- $album : string
- $year : string
- $genreid : int
- $comment : string
- $track : int|string = ''
Return values
stringLookupGenreID()
public
static LookupGenreID(string $genre[, bool $allowSCMPXextended = false ]) : string|false
Parameters
- $genre : string
- $allowSCMPXextended : bool = false
Return values
string|falseLookupGenreName()
public
static LookupGenreName(string $genreid[, bool $allowSCMPXextended = true ]) : string|false
Parameters
- $genreid : string
- $allowSCMPXextended : bool = true
Return values
string|falsesaveAttachment()
public
saveAttachment(string $name, int $offset, int $length[, string $image_mime = null ]) : string|null
Parameters
- $name : string
- $offset : int
- $length : int
- $image_mime : string = null
Tags
Return values
string|nullsetStringMode()
public
setStringMode(string $string) : mixed
Parameters
- $string : string
StandardiseID3v1GenreName()
public
static StandardiseID3v1GenreName(string $OriginalGenre) : string|false
Parameters
- $OriginalGenre : string
Return values
string|falseerror()
protected
error(string $text) : bool
Parameters
- $text : string
Return values
boolfeof()
protected
feof() : bool
Return values
boolfgets()
protected
fgets() : string|false
Tags
Return values
string|falsefread()
protected
fread(int $bytes) : string|false
Parameters
- $bytes : int
Tags
Return values
string|falsefseek()
protected
fseek(int $bytes[, int $whence = SEEK_SET ]) : int
Parameters
- $bytes : int
- $whence : int = SEEK_SET
Tags
Return values
intftell()
protected
ftell() : int|bool
Return values
int|boolisDependencyFor()
protected
final isDependencyFor(string $module) : bool
Parameters
- $module : string
Return values
boolnotice()
protected
notice(string $text) : mixed
Parameters
- $text : string
warning()
protected
warning(string $text) : bool
Parameters
- $text : string