Pushed MIME-transformation functionality by propagating the corresponding $meta value to plugins.
This commit is contained in:
@@ -6,21 +6,24 @@
|
||||
* Plugin function TEMPLATE (Garvin Hicking).
|
||||
* -----------------------------------------
|
||||
*
|
||||
* For instructions, read the libraries/transformations/README file.
|
||||
* For instructions, read the /Documentation.html file.
|
||||
*
|
||||
* The string ENTER_FILENAME_HERE shall be substituted with the filename without the '.inc.php3'
|
||||
* extension. For further information regarding naming conventions see the README file.
|
||||
* The string ENTER_FILENAME_HERE shall be substituted with the filename without the '.inc.php'
|
||||
* extension. For further information regarding naming conventions see the /Documentation.html file.
|
||||
*/
|
||||
|
||||
if (!defined('PMA_TRANSFORMATION_[ENTER_FILENAME_HERE]')){
|
||||
define('PMA_TRANSFORMATION_[ENTER_FILENAME_HERE]', 1);
|
||||
|
||||
function PMA_transformation_[enter_filename_here]($buffer, $options = array()) {
|
||||
|
||||
function PMA_transformation_[enter_filename_here]($buffer, $options = array(), $meta = '') {
|
||||
// possibly use a global transform and feed it with special options:
|
||||
// include('./libraries/transformations/global.inc.php3');
|
||||
|
||||
|
||||
// further operations on $buffer using the $options[] array.
|
||||
|
||||
|
||||
// You can evaluate the propagated $meta Object. It's contained fields are described in http://www.php.net/mysql_fetch_field.
|
||||
// This stored information can be used to get the field information about the transformed field.
|
||||
|
||||
return $buffer;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user