ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMediaAnalyzer Class Reference

Analyzes media files. More...

+ Collaboration diagram for ilMediaAnalyzer:

Public Member Functions

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

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

ilMediaAnalyzer::__construct ( )

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

{
include_once("./Services/MediaObjects/getid3/getid3/getid3.php");
$this->getid3 = new getID3();
}

Member Function Documentation

ilMediaAnalyzer::analyzeFile ( )

Analyze current file.

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

References getFile().

{
$this->file_info = $this->getid3->analyze($this->getFile());
}

+ Here is the call graph for this function:

ilMediaAnalyzer::getFile ( )

Get Full File Path.

Returns
string Full File Path

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

References $file.

Referenced by analyzeFile().

{
return $this->file;
}

+ Here is the caller graph for this function:

ilMediaAnalyzer::getPlaytimeSeconds ( )

Get PlaytimeSeconds.

Returns
double PlaytimeSeconds

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

{
return $this->file_info["playtime_seconds"];
}
ilMediaAnalyzer::getPlaytimeString ( )

Get PlaytimeString.

Returns
string PlaytimeString

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

{
return $this->file_info["playtime_string"];
}
ilMediaAnalyzer::setFile (   $a_file)

Set Full File Path.

Parameters
string$a_fileFull File Path

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

{
$this->file = $a_file;
}

Field Documentation

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: