function modify($tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters, $placement)
 {
     $showValues = $namedParameters['show_values'] == 'show';
     $max = $namedParameters['max_val'];
     $format = $namedParameters['format'];
     $formatter = ezpAttributeOperatorManager::getOutputFormatter($format);
     // check for an object or an array that is not empty
     if (is_object($operatorValue) || is_array($operatorValue) && !empty($operatorValue)) {
         $outputString = "";
         $this->displayVariable($operatorValue, $formatter, $showValues, $max, 0, $outputString);
         if ($formatter instanceof ezpAttributeOperatorFormatterInterface) {
             $operatorValue = $formatter->header($outputString, $showValues);
         }
     } else {
         if ($formatter instanceof ezpAttributeOperatorFormatterInterface) {
             $operatorValue = $formatter->exportScalar($operatorValue);
         }
     }
 }
    function modify( $tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters )
    {
        $max = $namedParameters["max_val"];
        $format = $namedParameters["format"];
        $showValues = $namedParameters["show_values"] == "show";

        $formatter = ezpAttributeOperatorManager::getOutputFormatter( $format );

        $outputString = "";
        $this->displayVariable( $operatorValue, $formatter, $showValues, $max, 0, $outputString );

        if ( $formatter instanceof ezpAttributeOperatorFormatterInterface )
                $operatorValue = $formatter->header( $outputString, $showValues );
    }