ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMediaAnalyzer Class Reference

Analyzes media files. More...

+ Collaboration diagram for ilMediaAnalyzer:

Public Member Functions

 __construct ()
 
 setFile ($a_file)
 Set Full File Path. More...
 
 getFile ()
 Get Full File Path. More...
 
 getPlaytimeString ()
 Get PlaytimeString. More...
 
 getPlaytimeSeconds ()
 Get PlaytimeSeconds. More...
 
 analyzeFile ()
 Analyze current file. More...
 

Data Fields

 $file
 

Detailed Description

Analyzes media files.

Wrapper for getid3 library.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 33 of file class.ilMediaAnalyzer.php.

Constructor & Destructor Documentation

◆ __construct()

ilMediaAnalyzer::__construct ( )

Definition at line 37 of file class.ilMediaAnalyzer.php.

38  {
39  $this->getid3 = new getID3();
40  }

Member Function Documentation

◆ analyzeFile()

ilMediaAnalyzer::analyzeFile ( )

Analyze current file.

Definition at line 85 of file class.ilMediaAnalyzer.php.

References getFile().

86  {
87  $this->file_info = $this->getid3->analyze($this->getFile());
88  }
getFile()
Get Full File Path.
+ Here is the call graph for this function:

◆ getFile()

ilMediaAnalyzer::getFile ( )

Get Full File Path.

Returns
string Full File Path

Definition at line 57 of file class.ilMediaAnalyzer.php.

References $file.

Referenced by analyzeFile().

58  {
59  return $this->file;
60  }
+ Here is the caller graph for this function:

◆ getPlaytimeSeconds()

ilMediaAnalyzer::getPlaytimeSeconds ( )

Get PlaytimeSeconds.

Returns
double PlaytimeSeconds

Definition at line 77 of file class.ilMediaAnalyzer.php.

78  {
79  return $this->file_info["playtime_seconds"];
80  }

◆ getPlaytimeString()

ilMediaAnalyzer::getPlaytimeString ( )

Get PlaytimeString.

Returns
string PlaytimeString

Definition at line 67 of file class.ilMediaAnalyzer.php.

68  {
69  return $this->file_info["playtime_string"];
70  }

◆ setFile()

ilMediaAnalyzer::setFile (   $a_file)

Set Full File Path.

Parameters
string$a_fileFull File Path

Definition at line 47 of file class.ilMediaAnalyzer.php.

48  {
49  $this->file = $a_file;
50  }

Field Documentation

◆ $file

ilMediaAnalyzer::$file

Definition at line 35 of file class.ilMediaAnalyzer.php.

Referenced by getFile().


The documentation for this class was generated from the following file: