Documentation TYPO3 par Ameos

global.inc.php

00001 <?php
00002 /* $Id: global.inc.php,v 2.3 2003/11/26 22:52:24 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00026 function PMA_transformation_global_plain($buffer, $options = array(), $meta = '') {
00027     return htmlspecialchars($buffer);
00028 }
00029 
00030 function PMA_transformation_global_html($buffer, $options = array(), $meta = '') {
00031     return $buffer;
00032 }
00033 
00034 function PMA_transformation_global_html_replace($buffer, $options = array(), $meta = '') {
00035     if (!isset($options['string'])) {
00036         $options['string'] = '';
00037     }
00038 
00039     if (isset($options['regex']) && isset($options['regex_replace'])) {
00040         $buffer = preg_replace('@' . str_replace('@', '\@', $options['regex']) . '@si', $options['regex_replace'], $buffer);
00041     }
00042 
00043     // Replace occurences of [__BUFFER__] with actual text
00044     $return = str_replace("[__BUFFER__]", $buffer, $options['string']);
00045     return $return;
00046 }
00047 
00048 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6