[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Created on: <23-Jan-2003 11:37:30 amos> 4 // 5 // SOFTWARE NAME: eZ publish 6 // SOFTWARE RELEASE: 3.9.0 7 // BUILD VERSION: 17785 8 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 9 // SOFTWARE LICENSE: GNU General Public License v2.0 10 // NOTICE: > 11 // This program is free software; you can redistribute it and/or 12 // modify it under the terms of version 2.0 of the GNU General 13 // Public License as published by the Free Software Foundation. 14 // 15 // This program is distributed in the hope that it will be useful, 16 // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 // GNU General Public License for more details. 19 // 20 // You should have received a copy of version 2.0 of the GNU General 21 // Public License along with this program; if not, write to the Free 22 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 23 // MA 02110-1301, USA. 24 // 25 // 26 27 /*! \file view.php 28 */ 29 30 $Module =& $Params['Module']; 31 $ViewMode = $Params['ViewMode']; 32 $ItemID = $Params['ItemID']; 33 34 $Offset = $Params['Offset']; 35 if ( !is_numeric( $Offset ) ) 36 $Offset = 0; 37 38 include_once ( 'kernel/classes/ezcollaborationitem.php' ); 39 40 $collabItem = eZCollaborationItem::fetch( $ItemID ); 41 if ( $collabItem === null ) 42 return $Module->handleError( EZ_ERROR_KERNEL_NOT_AVAILABLE, 'kernel' ); 43 44 $collabHandler =& $collabItem->handler(); 45 $collabItem->handleView( $ViewMode ); 46 $template = $collabHandler->template( $ViewMode ); 47 $collabTitle = $collabItem->title(); 48 49 include_once ( 'kernel/classes/ezcollaborationitemhandler.php' ); 50 51 $viewParameters = array( 'offset' => $Offset ); 52 53 include_once ( 'kernel/common/template.php' ); 54 $tpl =& templateInit(); 55 56 $tpl->setVariable( 'view_parameters', $viewParameters ); 57 $tpl->setVariable( 'collab_item', $collabItem ); 58 59 $Result = array(); 60 $Result['content'] = $tpl->fetch( $template ); 61 62 $collabHandler->readItem( $collabItem ); 63 64 $Result['path'] = array( array( 'url' => 'collaboration/view/summary', 65 'text' => ezi18n( 'kernel/collaboration', 'Collaboration' ) ), 66 array( 'url' => false, 67 'text' => $collabTitle ) ); 68 69 ?>
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 |