[ Index ]
 

Code source de eZ Publish 3.9.0

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

title

Body

[fermer]

/kernel/classes/packageinstallers/ezinstallscript/ -> ezinstallscriptpackageinstaller.php (source)

   1  <?php
   2  //
   3  // Definition of eZInstallScriptPackageInstaller class
   4  //
   5  // Created on: <16-Feb-2006 12:39:59 ks>
   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 ezinstallscriptpackageinstaller.php
  30  */
  31  
  32  /*!
  33    \ingroup package
  34    \class eZInstallScriptPackageInstaller ezcontentclasspackageinstaller.php
  35  */
  36  
  37  include_once ( 'kernel/classes/ezpackageinstallationhandler.php' );
  38  
  39  class eZInstallScriptPackageInstaller extends eZPackageInstallationHandler
  40  {
  41       /*
  42        Constructor should be implemented in the child class
  43          and call the constructor of eZPackageInstallationHandler.
  44       */
  45      function eZInstallScriptPackageInstaller( &$package, $type, $installItem )
  46      {
  47      }
  48      /*!
  49       \reimp
  50       Returns \c 'stable', content class packages are always stable.
  51      */
  52      function packageInitialState( &$package, &$persistentData )
  53      {
  54          return 'stable';
  55      }
  56  
  57      function customInstallHandlerInfo( $package, $installItem )
  58      {
  59          $return = array();
  60  
  61          $itemPath = $package->path() . '/' . $installItem['sub-directory'];
  62          $xmlPath = $itemPath . '/' . $installItem['filename'] . '.xml';
  63  
  64          $dom =& $package->fetchDOMFromFile( $xmlPath );
  65          if ( $dom )
  66              $mainNode =& $dom->root();
  67  
  68          $return['file-path'] = $itemPath . '/' . $mainNode->getAttribute( 'filename' );
  69          $return['classname'] = $mainNode->getAttribute( 'classname' );
  70  
  71          return $return;
  72      }
  73  
  74      function stepTemplate( $package, $installItem, $step )
  75      {
  76          $itemPath = $package->path() . '/' . $installItem['sub-directory'];
  77          $stepTemplatePath = $itemPath . '/templates';
  78  
  79          return array( 'name' => $step['template'],
  80                        'path' => $stepTemplatePath );
  81      }
  82  }
  83  ?>


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