[ Index ]
 

Code source de eZ Publish 3.9.0

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

title

Body

[fermer]

/kernel/classes/ -> ezmodulemanager.php (source)

   1  <?php
   2  //
   3  // Definition of eZModuleManager class
   4  //
   5  // Created on: <19-Aug-2002 16:37:56 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 ezmodulemanager.php
  30  */
  31  
  32  /*!
  33    \class eZModuleManager ezmodulemanager.php
  34    \brief The class eZModuleManager does
  35  
  36  */
  37  
  38  class eZModuleManager
  39  {
  40      /*!
  41       Constructor
  42      */
  43      function eZModuleManager()
  44      {
  45  
  46      }
  47  
  48      function aviableModules()
  49      {
  50          eZDebug::writeWarning( 'The function eZModuleManager::aviableModules is deprecated, use eZModuleManager::availableModules instead' );
  51          return eZModuleManager::availableModules();
  52      }
  53  
  54      function availableModules()
  55      {
  56          include_once ( 'lib/ezutils/classes/ezmodule.php' );
  57          $pathList = eZModule::globalPathList();
  58          $modules = array();
  59          foreach ( $pathList as $pathItem )
  60          {
  61              if ( $handle = opendir( $pathItem ) )
  62              {
  63                  while ( false !== ( $file = readdir( $handle ) ) )
  64                  {
  65                      if ( is_dir( $pathItem . '/' . $file ) && file_exists( $pathItem . '/' . $file . '/module.php' )  )
  66                      {
  67                          $modules[] = $file;
  68                      }
  69                  }
  70                  closedir( $handle );
  71              }
  72          }
  73          return $modules;
  74      }
  75  }
  76  
  77  ?>


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