/** * Process partial/complete file download * @param array $args - array containing session id as an element with a key es_id */ public static function serve($args) { $session = new Db_Session(); $session->load(@$args['es_id']); self::preDispatchGuest(); $filename = $session->getGenesisUrl() ? $session->getGenesisUrl() : ''; $download = new Download($session->getOwner(), $filename); $download->sendResponse(); }