[ Index ]
 

Code source de eZ Publish 3.9.0

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

title

Body

[fermer]

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

   1  <?php
   2  //
   3  // Created on: <13-Feb-2005 03:13:00 bh>
   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  include_once ( 'kernel/classes/ezinformationcollection.php' );
  28  include_once ( 'kernel/common/template.php' );
  29  
  30  $http =& eZHTTPTool::instance();
  31  $Module =& $Params['Module'];
  32  $collectionID = $Params['CollectionID'];
  33  
  34  $collection = false;
  35  $object = false;
  36  
  37  if( is_numeric( $collectionID ) )
  38  {
  39      $collection = eZInformationCollection::fetch( $collectionID );
  40  }
  41  
  42  if( !$collection )
  43  {
  44      return $Module->handleError( EZ_ERROR_KERNEL_NOT_AVAILABLE, 'kernel' );
  45  }
  46  
  47  $object = eZContentObject::fetch( $collection->attribute( 'contentobject_id' ) );
  48  
  49  if( !$object )
  50  {
  51      return $Module->handleError( EZ_ERROR_KERNEL_NOT_AVAILABLE, 'kernel' );
  52  }
  53  
  54  $objectID   = $collection->attribute( 'contentobject_id' );
  55  $objectName = $object->attribute( 'name' );
  56  
  57  $tpl =& templateInit();
  58  $tpl->setVariable( 'module', $Module );
  59  $tpl->setVariable( 'collection', $collection );
  60  
  61  $Result = array();
  62  $Result['content'] =& $tpl->fetch( 'design:infocollector/view.tpl' );
  63  $Result['path'] = array( array( 'url' => '/infocollector/overview',
  64                                  'text' => ezi18n( 'kernel/infocollector', 'Collected information' ) ),
  65                           array( 'url' => '/infocollector/collectionlist/' . $objectID,
  66                                  'text' => $objectName ),
  67                           array( 'url' => false,
  68                                  'text' => $collectionID ) );
  69  
  70  ?>


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