src/Seboettg/CiteProc/Util/CiteProcHelper.php
public static function applyAdditionMarkupFunction($dataItem, $valueToRender, $renderedText)
    {
        $markupExtension = CiteProc::getContext()->getMarkupExtension();
        if (array_key_exists($valueToRender, $markupExtension)) {
            $function = $markupExtension[$valueToRender];
            if (is_callable($function)) {
                $renderedText = $function($dataItem, $renderedText);
            }
        } else if (array_key_exists($mode = CiteProc::getContext()->getMode(), $markupExtension)) {
            if (array_key_exists($valueToRender, $markupExtension[$mode])) {
                $function = CiteProc::getContext()->getMarkupExtension()[$mode][$valueToRender];
                if (is_callable($function)) {
                    $renderedText = $function($dataItem, $renderedText);
                }
            }
        }
        return $renderedText;
    }
public static function applyAdditionMarkupFunction($dataItem, $valueToRender, $renderedText)
    {
        $markupExtension = CiteProc::getContext()->getMarkupExtension();
        if (array_key_exists($valueToRender, $markupExtension)) {
            $function = $markupExtension[$valueToRender];
            if (is_callable($function)) {
                $renderedText = $function($dataItem, $renderedText);
            }
        } else if (array_key_exists($mode = CiteProc::getContext()->getMode(), $markupExtension)) {
            if (array_key_exists($valueToRender, $markupExtension[$mode])) {
                $function = CiteProc::getContext()->getMarkupExtension()[$mode][$valueToRender];
                if (is_callable($function)) {
                    $renderedText = $function($dataItem, $renderedText);
                }
            }
        }
        return $renderedText;
    }
public static function applyAdditionMarkupFunction ( $ dataItem , $ valueToRender , $ renderedText ) { $ markupExtension = CiteProc :: getContext ( ) -> getMarkupExtension ( ) ; if ( array_key_exists ( $ valueToRender , $ markupExtension ) ) { $ function = $ markupExtension [ $ valueToRender ] ; if ( is_callable ( $ function ) ) { $ renderedText = $ function ( $ dataItem , $ renderedText ) ; } } else if ( array_key_exists ( $ mode = CiteProc :: getContext ( ) -> getMode ( ) , $ markupExtension ) ) { if ( array_key_exists ( $ valueToRender , $ markupExtension [ $ mode ] ) ) { $ function = CiteProc :: getContext ( ) -> getMarkupExtension ( ) [ $ mode ] [ $ valueToRender ] ; if ( is_callable ( $ function ) ) { $ renderedText = $ function ( $ dataItem , $ renderedText ) ; } } } return $ renderedText ; }
Applies additional functions for markup extension

@param \stdClass $dataItem the actual item
@param string $valueToRender value the has to apply on
@param string $renderedText actual by citeproc rendered text
@return string
Applies additional functions for markup extension