|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
GetId3() by James Heinrich info@.nosp@m.geti.nosp@m.d3.or.nosp@m.g //. More...
Inheritance diagram for GetId3\Extension\Cache\Dbm:
Collaboration diagram for GetId3\Extension\Cache\Dbm:Public Member Functions | |
| __construct ($cache_type, $dbm_filename, $lock_filename) | |
| public: constructor - see top of this file for cache type and cache_options More... | |
| __destruct () | |
| clear_cache () | |
| clear cache More... | |
| analyze ($filename) | |
| analyze file More... | |
Public Member Functions inherited from GetId3\GetId3Core | |
| __construct () | |
| public: constructor More... | |
| version () | |
| fread_buffer_size () | |
| setOption ($optArray) | |
| public: setOption More... | |
| openfile ($filename) | |
| analyze ($filename) | |
| public: analyze file More... | |
| GetFileFormatArray () | |
| @staticvar array $format_info More... | |
| GetFileFormat (&$filedata, $filename='') | |
| CharConvert (&$array, $encoding) | |
| HandleAllTags () | |
| @staticvar array $tags More... | |
| getHashdata ($algorithm) | |
| ChannelsBitratePlaytimeCalculations () | |
| CalculateCompressionRatioVideo () | |
| CalculateCompressionRatioAudio () | |
| CalculateReplayGain () | |
| ProcessAudioStreams () | |
| GetId3_tempnam () | |
GetId3() by James Heinrich info@.nosp@m.geti.nosp@m.d3.or.nosp@m.g //.
This is a caching extension for GetId3(). It works the exact same way as the GetId3 class, but return cached information very fast
Example:
Normal GetId3 usage (example):
require_once 'getid3/getid3.php'; $getID3 = new GetId3; $getID3->encoding = 'UTF-8'; $info1 = $getID3->analyze('file1.flac'); $info2 = $getID3->analyze('file2.wv');
GetId3_cached usage:
require_once 'getid3/getid3.php'; require_once 'getid3/getid3/extension.cache.dbm.php'; $getID3 = new GetId3_cached('db3', '/tmp/getid3_cache.dbm', '/tmp/getid3_cache.lock'); $getID3->encoding = 'UTF-8'; $info1 = $getID3->analyze('file1.flac'); $info2 = $getID3->analyze('file2.wv');
Supported Cache Types
SQL Databases: (use extension.cache.mysql)
mysql host, database, username, password
DBM-Style Databases: (this extension)
gdbm dbm_filename, lock_filename ndbm dbm_filename, lock_filename db2 dbm_filename, lock_filename db3 dbm_filename, lock_filename db4 dbm_filename, lock_filename (PHP5 required)
PHP must have write access to both dbm_filename and lock_filename.
Recommended Cache Types
Infrequent updates, many reads any DBM Frequent updates mysql
| GetId3\Extension\Cache\Dbm::__construct | ( | $cache_type, | |
| $dbm_filename, | |||
| $lock_filename | |||
| ) |
public: constructor - see top of this file for cache type and cache_options
| type | $cache_type | |
| type | $dbm_filename | |
| type | $lock_filename |
| Exception |
Definition at line 94 of file Dbm.php.
References GetId3\Extension\Cache\Dbm\clear_cache(), and GetId3\GetId3Core\VERSION.
Here is the call graph for this function:| GetId3\Extension\Cache\Dbm::__destruct | ( | ) |
| GetId3\Extension\Cache\Dbm::analyze | ( | $filename | ) |
analyze file
| type | $filename |
Reimplemented from GetId3\GetId3Core.
Definition at line 204 of file Dbm.php.
References GetId3\GetId3Core\$filename, and $result.
| GetId3\Extension\Cache\Dbm::clear_cache | ( | ) |
clear cache
| Exception |
Definition at line 179 of file Dbm.php.
References GetId3\GetId3Core\VERSION.
Referenced by GetId3\Extension\Cache\Dbm\__construct().
Here is the caller graph for this function: