[ Index ]
 

Code source de eZ Publish 3.9.0

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

title

Body

[fermer]

/kernel/reference/ -> view.php (source)

   1  <?php
   2  //
   3  // Created on: <18-Apr-2002 10:04:48 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  $module =& $Params['Module'];
  28  $referenceType = $Params['ReferenceType'];
  29  
  30  $Result = array();
  31  // $Result["pagelayout"] = false;
  32  // $Result["external_css"] = true;
  33  
  34  switch ( $referenceType )
  35  {
  36      case 'ez':
  37      {
  38          include_once ( 'kernel/reference/ezreference.php' );
  39          $referenceResult = eZReferenceDocument( $module, '/reference/view/ez', $referenceType, array_slice( $Params['Parameters'], 1 ) );
  40      } break;
  41      default:
  42      {
  43          return $module->handleError( EZ_ERROR_KERNEL_NOT_FOUND, 'kernel' );
  44      } break;
  45  }
  46  
  47  $tpl =& templateInit();
  48  
  49  $tpl->setVariable( 'reference_result', $referenceResult );
  50  $tpl->setVariable( 'reference_type', $referenceType );
  51  
  52  $Result['content'] = $tpl->fetch( "design:reference/view/$referenceType/full.tpl" );
  53  $Result['path'] = array( array( 'url' => false,
  54                                  'text' => ezi18n( 'kernel/reference', 'Reference documentation' ) ) );
  55  
  56  
  57  ?>


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