2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * @package phpMyAdmin-Engines
9 * @package phpMyAdmin-Engines
11 class PMA_StorageEngine_pbms
extends PMA_StorageEngine
14 * returns array with variable names dedicated to PBMS daemon
16 * @return array variable names
18 function engine_init()
20 $this->engine
= "PBMS";
21 $this->title
= "PrimeBase Media Streaming Daemon";
22 $this->comment
= "Provides BLOB streaming service for storage engines,";
23 $this->support
= PMA_ENGINE_SUPPORT_YES
;
26 function getVariables()
29 'pbms_garbage_threshold' => array(
30 'title' => __('Garbage Threshold'),
31 'desc' => __('The percentage of garbage in a repository file before it is compacted.'),
32 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
35 'title' => __('Port'),
36 'desc' => __('The port for the PBMS stream-based communications. Setting this value to 0 will disable HTTP communication with the daemon.'),
37 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
39 'pbms_repository_threshold' => array(
40 'title' => __('Repository Threshold'),
41 'desc' => __('The maximum size of a BLOB repository file. You may use Kb, MB or GB to indicate the unit of the value. A value in bytes is assumed when no unit is specified.'),
42 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
44 'pbms_temp_blob_timeout' => array(
45 'title' => __('Temp Blob Timeout'),
46 'desc' => __('The timeout, in seconds, for temporary BLOBs. Uploaded BLOB data is removed after this time, unless they are referenced by a record in the database.'),
47 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
49 'pbms_temp_log_threshold' => array(
50 'title' => __('Temp Log Threshold'),
51 'desc' => __('The maximum size of a temporary BLOB log file. You may use Kb, MB or GB to indicate the unit of the value. A value in bytes is assumed when no unit is specified.'),
52 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
54 'pbms_max_keep_alive' => array(
55 'title' => __('Max Keep Alive'),
56 'desc' => __('The timeout for inactive connection with the keep-alive flag set. After this time the connection will be closed. The time-out is in milliseconds (1/1000).'),
57 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
59 'pbms_http_metadata_headers' => array(
60 'title' => __('Metadata Headers'),
61 'desc' => __('A ":" delimited list of metadata headers to be used to initialize the pbms_metadata_header table when a database is created.'),
62 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
67 //--------------------
68 function getInfoPages()
71 $pages['Documentation'] = __('Documentation');
75 //--------------------
78 if (! array_key_exists($id, $this->getInfoPages())) {
82 $id = 'getPage' . $id;
87 function getPageConfigure()
91 function getPageDocumentation()
94 . sprintf(__('Documentation and further information about PBMS can be found on %sThe PrimeBase Media Streaming home page%s.'), '<a href="' . PMA_linkURL('http://www.blobstreaming.org/') . '" target="_blank">', '</a>')
96 . '<h3>' . __('Related Links') . '</h3>' . "\n"
98 . '<li><a href="' . PMA_linkURL('http://bpbdev.blogspot.com/') . '" target="_blank">' . __('The PrimeBase Media Streaming Blog by Barry Leslie') . '</a></li>' . "\n"
99 . '<li><a href="' . PMA_linkURL('http://www.primebase.com/xt') . '" target="_blank">' . __('PrimeBase XT Home Page') . '</a></li>' . "\n"