Class Xyster_Controller_Action_Helper_File

Description

File response headers action helper

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Controller/Action/Helper/File.php (line 29)

Zend_Controller_Action_Helper_Abstract
   |
   --Xyster_Controller_Action_Helper_File
Class Constant Summary
 DEFAULT_MIME = 'application/octet-stream'
Method Summary
void direct (string $name, [string $mime = self::DEFAULT_MIME], [int $date = null])
void setFileHeaders (string $name, [string $mime = self::DEFAULT_MIME], [int $date = null])
Methods
direct (line 47)

Sets the appropriate headers for sending a file as a response

This helper uses Xyster_Controller_Action_Helper_Cache to check if the file has been modified since the user last received it.

  • access: public
void direct (string $name, [string $mime = self::DEFAULT_MIME], [int $date = null])
  • string $name: The filename
  • string $mime: The MIME type of the file
  • int $date: The unix timestamp the file was last modified
setFileHeaders (line 62)

Sets the appropriate headers for sending a file as a response

This helper uses Xyster_Controller_Action_Helper_Cache to check if the file has been modified since the user last received it.

  • access: public
void setFileHeaders (string $name, [string $mime = self::DEFAULT_MIME], [int $date = null])
  • string $name: The filename
  • string $mime: The MIME type of the file
  • int $date: The unix timestamp the file was last modified
Class Constants
DEFAULT_MIME = 'application/octet-stream' (line 35)

The default MIME type

Documentation generated on Mon, 19 May 2008 17:07:19 -0400 by phpDocumentor 1.4.2