PageRenderTime 31ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/phpmyadmin/libraries/engines/pbms.lib.php

https://bitbucket.org/adarshj/convenient_website
PHP | 106 lines | 81 code | 10 blank | 15 comment | 2 complexity | 6fbf89be032de94cdfabd125c5b37e7d MD5 | raw file
Possible License(s): Apache-2.0, MPL-2.0-no-copyleft-exception, LGPL-2.1, BSD-2-Clause, GPL-2.0, LGPL-3.0
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * @package PhpMyAdmin-Engines
  5. */
  6. /**
  7. * the PBMS daemon
  8. * @package PhpMyAdmin-Engines
  9. */
  10. class PMA_StorageEngine_pbms extends PMA_StorageEngine
  11. {
  12. /**
  13. * returns array with variable names dedicated to PBMS daemon
  14. *
  15. * @return array variable names
  16. */
  17. function engine_init()
  18. {
  19. $this->engine = "PBMS";
  20. $this->title = "PrimeBase Media Streaming Daemon";
  21. $this->comment = "Provides BLOB streaming service for storage engines,";
  22. $this->support = PMA_ENGINE_SUPPORT_YES;
  23. }
  24. function getVariables()
  25. {
  26. return array(
  27. 'pbms_garbage_threshold' => array(
  28. 'title' => __('Garbage Threshold'),
  29. 'desc' => __('The percentage of garbage in a repository file before it is compacted.'),
  30. 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
  31. ),
  32. 'pbms_port' => array(
  33. 'title' => __('Port'),
  34. 'desc' => __('The port for the PBMS stream-based communications. Setting this value to 0 will disable HTTP communication with the daemon.'),
  35. 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
  36. ),
  37. 'pbms_repository_threshold' => array(
  38. 'title' => __('Repository Threshold'),
  39. '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.'),
  40. 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
  41. ),
  42. 'pbms_temp_blob_timeout' => array(
  43. 'title' => __('Temp Blob Timeout'),
  44. '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.'),
  45. 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
  46. ),
  47. 'pbms_temp_log_threshold' => array(
  48. 'title' => __('Temp Log Threshold'),
  49. '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.'),
  50. 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
  51. ),
  52. 'pbms_max_keep_alive' => array(
  53. 'title' => __('Max Keep Alive'),
  54. '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).'),
  55. 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
  56. ),
  57. 'pbms_http_metadata_headers' => array(
  58. 'title' => __('Metadata Headers'),
  59. 'desc' => __('A ":" delimited list of metadata headers to be used to initialize the pbms_metadata_header table when a database is created.'),
  60. 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT
  61. ),
  62. );
  63. }
  64. //--------------------
  65. function getInfoPages()
  66. {
  67. $pages = array();
  68. $pages['Documentation'] = __('Documentation');
  69. return $pages;
  70. }
  71. //--------------------
  72. function getPage($id)
  73. {
  74. if (! array_key_exists($id, $this->getInfoPages())) {
  75. return false;
  76. }
  77. $id = 'getPage' . $id;
  78. return $this->$id();
  79. }
  80. function getPageConfigure()
  81. {
  82. }
  83. function getPageDocumentation()
  84. {
  85. $output = '<p>'
  86. . 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>')
  87. . '</p>' . "\n"
  88. . '<h3>' . __('Related Links') . '</h3>' . "\n"
  89. . '<ul>' . "\n"
  90. . '<li><a href="' . PMA_linkURL('http://bpbdev.blogspot.com/') . '" target="_blank">' . __('The PrimeBase Media Streaming Blog by Barry Leslie') . '</a></li>' . "\n"
  91. . '<li><a href="' . PMA_linkURL('http://www.primebase.com/xt') . '" target="_blank">' . __('PrimeBase XT Home Page') . '</a></li>' . "\n"
  92. . '</ul>' . "\n";
  93. return $output;
  94. }
  95. }
  96. ?>