diff --git a/libraries/engines/pbms.lib.php b/libraries/engines/pbms.lib.php new file mode 100644 index 000000000..af403ca6e --- /dev/null +++ b/libraries/engines/pbms.lib.php @@ -0,0 +1,113 @@ +engine = "PBMS"; + $this->title = "PrimeBase Media Streaming Daemon"; + $this->comment = "Provides BLOB streaming service for storage engines,"; + $this->support = PMA_ENGINE_SUPPORT_YES; + } + + function getVariables() + { + return array( + 'pbms_garbage_threshold' => array( + 'title' => __('Garbage Threshold'), + 'desc' => __('The percentage of garbage in a repository file before it is compacted.'), + 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT + ), + 'pbms_port' => array( + 'title' => __('Port'), + 'desc' => __('The port for the PBMS stream-based communications. Setting this value to 0 will disable HTTP communication with the daemon.'), + 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT + ), + 'pbms_repository_threshold' => array( + 'title' => __('Repository Threshold'), + '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.'), + 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT + ), + 'pbms_temp_blob_timeout' => array( + 'title' => __('Temp Blob Timeout'), + '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.'), + 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT + ), + 'pbms_temp_log_threshold' => array( + 'title' => __('Temp Log Threshold'), + '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.'), + 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT + ), + 'pbms_max_keep_alive' => array( + 'title' => __('Max Keep Alive'), + '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).'), + 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT + ), + 'pbms_http_metadata_headers' => array( + 'title' => __('Metadata Headers'), + 'desc' => __('A ":" delimited list of metadata headers to be used to initialize the pbms_metadata_header table when a database is created.'), + 'type' => PMA_ENGINE_DETAILS_TYPE_PLAINTEXT + ), + ); + } + + //-------------------- + function getInfoPages() + { + $pages = array(); + $pages['Documentation'] = __('Documentation'); + return $pages; + } + + //-------------------- + function getPage($id) + { + if (! array_key_exists($id, $this->getInfoPages())) { + return false; + } + + $id = 'getPage' . $id; + + return $this->$id(); + } + + function getPageConfigure() + { + } + + function getPageDocumentation() + { + $output = '

Documentation and furtther information about PBMS can be found on ' . "\n" + . 'The PrimeBase Media Streaming home page.

' . "\n" + . '' . "\n" + . '' . "\n" + . '' . "\n" + . '' . "\n" + . '' . "\n"; + + return $output; + } +} + +?>