<?php
/**
 * @author Arkadiusz Bisaga <abisaga@telaxus.com>
 * @copyright Copyright &copy; 2008, Janusz Tylek
 * @version 1.0
 * @license MIT
 * @package epesi-libs
 * @subpackage exportxls
 */
defined("_VALID_ACCESS") || die('Direct access forbidden');

class Utils_ExportXLS extends Module {
	public function create_xls_href($callback, $args=array(), $dlfilename=null) {
		$xls_id = $this->get_path();
		$this->set_module_variable('callback', $callback);
		if($dlfilename==null) $dlfilename='download';
		return 'href="modules/Utils/ExportXLS/download.php?'.http_build_query(array('id'=>CID,'xls'=>$xls_id,'args'=>$args,'filename'=>$dlfilename.'.xls')).'" target="_blank"';
	}
}

?>
