[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/collaboration/ -> group.php (source)

   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 group.php
  28  */
  29  
  30  $Module =& $Params['Module'];
  31  $ViewMode = $Params['ViewMode'];
  32  $GroupID = $Params['GroupID'];
  33  
  34  $Offset = $Params['Offset'];
  35  if ( !is_numeric( $Offset ) )
  36      $Offset = 0;
  37  
  38  include_once ( 'kernel/classes/ezcollaborationgroup.php' );
  39  
  40  $collabGroup = eZCollaborationGroup::fetch( $GroupID );
  41  if ( $collabGroup === null )
  42      return $Module->handleError( EZ_ERROR_KERNEL_NOT_AVAILABLE, 'kernel' );
  43  
  44  include_once ( 'kernel/classes/ezcollaborationviewhandler.php' );
  45  
  46  if ( !eZCollaborationViewHandler::groupExists( $ViewMode ) )
  47      return $Module->handleError( EZ_ERROR_KERNEL_NOT_AVAILABLE, 'kernel' );
  48  
  49  $view =& eZCollaborationViewHandler::instance( $ViewMode, EZ_COLLABORATION_VIEW_TYPE_GROUP );
  50  
  51  $template = $view->template();
  52  
  53  $collabGroupTitle = $collabGroup->attribute( 'title' );
  54  
  55  include_once ( 'kernel/classes/ezcollaborationitemhandler.php' );
  56  
  57  $viewParameters = array( 'offset' => $Offset );
  58  
  59  include_once ( 'kernel/common/template.php' );
  60  $tpl =& templateInit();
  61  
  62  $tpl->setVariable( 'view_parameters', $viewParameters );
  63  $tpl->setVariable( 'collab_group', $collabGroup );
  64  
  65  $Result = array();
  66  $Result['content'] = $tpl->fetch( $template );
  67  $Result['path'] = array( array( 'url' => 'collaboration/view/summary',
  68                                  'text' => ezi18n( 'kernel/collaboration', 'Collaboration' ) ),
  69                           array( 'url' => false,
  70                                  'text' => 'Group' ),
  71                           array( 'url' => false,
  72                                  'text' => $collabGroupTitle ) );
  73  
  74  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7