- /**
- * function to create the array of returnProperties
- *
- * @param string $format format for which return properties build
- *
- * @return array of returnProperties
- * @access public
- */
- function getReturnProperties(&$format) {
- $returnProperties = array();
- $matches = array();
- preg_match_all('/(?<!\{|\\\\)\{(\w+\.\w+)\}(?!\})/',
- $format,
- $matches,
- PREG_PATTERN_ORDER
- );
- if ($matches[1]) {
- foreach ($matches[1] as $token) {
- list($type, $name) = preg_split('/\./', $token, 2);
- if ($name) {
- $returnProperties["{$name}"] = 1;
- }
- }
- }
-
- return $returnProperties;
- }
-