[ Index ]
 

Code source de eZ Publish 3.9.0

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

title

Body

[fermer]

/kernel/notification/ -> settings.php (source)

   1  <?php
   2  //
   3  // Definition of Settings class
   4  //
   5  // Created on: <14-May-2003 16:30:26 sp>
   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  /*! \file settings.php
  30  */
  31  
  32  include_once ( 'kernel/classes/datatypes/ezuser/ezuser.php' );
  33  include_once ( 'kernel/common/template.php' );
  34  include_once ( "lib/ezutils/classes/ezhttptool.php" );
  35  include_once ( "lib/ezdb/classes/ezdb.php" );
  36  
  37  $http =& eZHTTPTool::instance();
  38  
  39  $Module =& $Params['Module'];
  40  
  41  $user =& eZUser::currentUser();
  42  
  43  include_once ( 'kernel/classes/notification/eznotificationeventfilter.php' );
  44  $availableHandlers =& eZNotificationEventFilter::availableHandlers();
  45  
  46  
  47  $db =& eZDB::instance();
  48  $db->begin();
  49  if ( $http->hasPostVariable( 'Store' ) )
  50  {
  51      foreach ( array_keys( $availableHandlers ) as $key )
  52      {
  53          $handler =& $availableHandlers[$key];
  54          $handler->storeSettings( $http, $Module );
  55      }
  56  
  57  }
  58  
  59  foreach ( array_keys( $availableHandlers ) as $key )
  60  {
  61      $handler =& $availableHandlers[$key];
  62  
  63      $handler->fetchHttpInput( $http, $Module );
  64  }
  65  $db->commit();
  66  
  67  $viewParameters = array( 'offset' => $Params['Offset'] );
  68  
  69  $tpl =& templateInit();
  70  $tpl->setVariable( 'user', $user );
  71  $tpl->setVariable( 'view_parameters', $viewParameters );
  72  
  73  $Result = array();
  74  $Result['content'] =& $tpl->fetch( 'design:notification/settings.tpl' );
  75  $Result['path'] = array( array( 'url' => false,
  76                                  'text' => ezi18n( 'kernel/notification', 'Notification settings' ) ) );
  77  
  78  
  79  ?>


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