1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

New transformation: append string

This commit is contained in:
G R Lewis
2012-03-31 07:20:46 -04:00
committed by Marc Delisle
parent 468e63d37b
commit eb37c8716d

View File

@@ -0,0 +1,25 @@
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* @package phpMyAdmin-Transformation
* Has one option: the text to be appended (default '')
*/
function PMA_transformation_text_plain__append_info() {
return array(
'info' => __('Appends text to a string. The only option is the text to be appended (enclosed in single quotes, default empty string).'),
);
}
function PMA_transformation_text_plain__append($buffer, $options = array(), $meta = '') {
if (! isset($options[0]) || $options[0] == '') {
$options[0] = '';
}
$newtext = $buffer . $options[0]; //just append the option to the original text
return $newtext;
}
?>