public static function end($name, $key = null){

        if ($key) {
            $GLOBALS[ARX_HOOK][$name][$key] = ob_get_contents();
        } else {
            $GLOBALS[ARX_HOOK][$name] = ob_get_contents();
        }

        ob_end_clean();
    }
public static function end($name, $key = null){

        if ($key) {
            $GLOBALS[ARX_HOOK][$name][$key] = ob_get_contents();
        } else {
            $GLOBALS[ARX_HOOK][$name] = ob_get_contents();
        }

        ob_end_clean();
    }
public static function end ( $ name , $ key = null ) { if ( $ key ) { $ GLOBALS [ ARX_HOOK ] [ $ name ] [ $ key ] = ob_get_contents ( ) ; } else { $ GLOBALS [ ARX_HOOK ] [ $ name ] = ob_get_contents ( ) ; } ob_end_clean ( ) ; }
End your cached data and save it in a globals
@param $name
@param null $key
End your cached data and save it in a globals