[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of eZFileDirectHandler class 4 // 5 // Created on: <30-Apr-2002 16:47:08 bf> 6 // 7 // SOFTWARE NAME: eZ publish 8 // SOFTWARE RELEASE: 3.9.0 9 // BUILD VERSION: 17785 10 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 11 // SOFTWARE LICENSE: GNU General Public License v2.0 12 // NOTICE: > 13 // This program is free software; you can redistribute it and/or 14 // modify it under the terms of version 2.0 of the GNU General 15 // Public License as published by the Free Software Foundation. 16 // 17 // This program is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 // GNU General Public License for more details. 21 // 22 // You should have received a copy of version 2.0 of the GNU General 23 // Public License along with this program; if not, write to the Free 24 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25 // MA 02110-1301, USA. 26 // 27 // 28 29 /*! 30 \class eZFileDirectHandler ezfiledirecthandler.php 31 \ingroup eZBinaryHandlers 32 \brief Handles file downloading by passing an URL directly to the file. 33 34 */ 35 include_once ( "kernel/classes/datatypes/ezbinaryfile/ezbinaryfile.php" ); 36 include_once ( "kernel/classes/ezbinaryfilehandler.php" ); 37 define( "EZ_FILE_DIRECT_ID", 'ezfiledirect' ); 38 39 class eZFileDirectHandler extends eZBinaryFileHandler 40 { 41 function eZFileDirectHandler() 42 { 43 $this->eZBinaryFileHandler( EZ_FILE_DIRECT_ID, "direct download", EZ_BINARY_FILE_HANDLE_DOWNLOAD ); 44 } 45 46 function handleFileDownload( &$contentObject, &$contentObjectAttribute, $type, $fileInfo ) 47 { 48 return EZ_BINARY_FILE_RESULT_OK; 49 } 50 51 /*! 52 \reimp 53 \return the direct download template suffix 54 */ 55 function &viewTemplate( &$contentobjectAttribute ) 56 { 57 $retValue = 'direct'; 58 return $retValue; 59 } 60 61 } 62 63 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |