| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 lmb_require('limb/web_app/src/controller/lmbController.class.php'); 10 lmb_require('limb/cms/src/model/lmbCmsFileObject.class.php'); 11 12 /** 13 * class FileObjectController. 14 * 15 * @package cms 16 * @version $Id: FileObjectController.class.php 5945 2007-06-06 08:31:43Z pachanga $ 17 */ 18 class FileObjectController extends lmbController 19 { 20 function doShow() 21 { 22 if($file_object = lmbCmsFileObject :: findByUid('lmbCmsFileObject', $this->request->get('id'))) 23 { 24 header('Content-type: ' . $file_object->getMimeType()); 25 header('Content-Disposition: filename=' . $file_object->getName()); 26 print(file_get_contents($file_object->getFilePath())); 27 exit(); 28 } 29 } 30 } 31 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Dec 5 04:05:07 2008 | Cross-referenced by PHPXref 0.7 |