1
|
<?php
|
2
|
|
3
|
/*
|
4
|
* To change this template, choose Tools | Templates
|
5
|
* and open the template in the editor.
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* OutputFilterApi.php
|
10
|
*
|
11
|
* @category Core
|
12
|
* @package Core_package
|
13
|
* @subpackage Name of the subpackage if needed
|
14
|
* @copyright Manuela v.d.Decken <manuela@isteam.de>
|
15
|
* @author Manuela v.d.Decken <manuela@isteam.de>
|
16
|
* @license http://www.gnu.org/licenses/gpl.html GPL License
|
17
|
* @version 0.0.1
|
18
|
* @revision $Revision: 2070 $
|
19
|
* @link $HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/modules/output_filter/OutputFilterApi.php $
|
20
|
* @lastmodified $Date: 2014-01-03 02:21:42 +0100 (Fri, 03 Jan 2014) $
|
21
|
* @since File available since 25.12.2013
|
22
|
* @deprecated This file is deprecated since the ...
|
23
|
* @description xyz
|
24
|
*/
|
25
|
function OutputFilterApi($sFilterName, $sContent)
|
26
|
{
|
27
|
$oReg = WbAdaptor::getInstance();
|
28
|
$sFilterDir = __DIR__.'/filters/filter';
|
29
|
if (!preg_match('/^[a-z][a-z0-9\-]*$/si', $sFilterName)) {
|
30
|
return $sContent;
|
31
|
}
|
32
|
if (is_readable($sFilterDir.$sFilterName.$oReg->PageExtension)) {
|
33
|
require_once($sFilterDir.$sFilterName.$oReg->PageExtension);
|
34
|
$sFilterFunc = 'doFilter'.$sFilterName;
|
35
|
$sContent = $sFilterFunc($sContent);
|
36
|
}
|
37
|
return $sContent;
|
38
|
}
|
39
|
|