3.4.0-rc1
[phpmyadmin/thilanka.git] / libraries / engines / pbms.lib.php
blob7f8c44bc619e68cc8c5bbcf16b96c711fe05eb44
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * @package phpMyAdmin-Engines
5 */
7 /**
8 * the PBMS daemon
9 * @package phpMyAdmin-Engines
11 class PMA_StorageEngine_pbms extends PMA_StorageEngine
13 /**
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()
28 return array(
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
34 'pbms_port' => array(
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()
70 $pages = array();
71 $pages['Documentation'] = __('Documentation');
72 return $pages;
75 //--------------------
76 function getPage($id)
78 if (! array_key_exists($id, $this->getInfoPages())) {
79 return false;
82 $id = 'getPage' . $id;
84 return $this->$id();
87 function getPageConfigure()
91 function getPageDocumentation()
93 $output = '<p>'
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>')
95 . '</p>' . "\n"
96 . '<h3>' . __('Related Links') . '</h3>' . "\n"
97 . '<ul>' . "\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"
100 . '</ul>' . "\n";
102 return $output;