picked class.tx_dlf_helper.php from upstream/master