summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0afa593)
raw | patch | inline | side by side (parent: 0afa593)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Dec 2009 17:07:27 +0000 (17:07 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Dec 2009 17:07:27 +0000 (17:07 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14989 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_listing.inc | patch | blob | history |
index 10c05d9652012ebf1b6fcb3bc843858a37747f95..137d6b2ae3eab475379153d8b19fca6307988186 100644 (file)
preg_match_all("/%\{filter:([^(]+)\((.*)\)\}/", $data, $matches, PREG_SET_ORDER);
foreach ($matches as $match) {
- if (!isset($this->filters[$match[1]])) {
- continue;
+ $cl= "";
+ $method= "";
+ if (preg_match('/::/', $match[1])) {
+ $cl= preg_replace('/::.*$/', '', $match[1]);
+ $method= preg_replace('/^.*::/', '', $match[1]);
+ } else {
+ if (!isset($this->filters[$match[1]])) {
+ continue;
+ }
+ $cl= preg_replace('/::.*$/', '', $this->filters[$match[1]]);
+ $method= preg_replace('/^.*::/', '', $this->filters[$match[1]]);
}
- $cl= preg_replace('/::.*$/', '', $this->filters[$match[1]]);
- $method= preg_replace('/^.*::/', '', $this->filters[$match[1]]);
// Prepare params for function call
$params= array();