[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

/lib/VFS/ISOWriter/RealOutputStrategy/ -> direct.php (source)

   1  <?php
   2  
   3  /**
   4   * Strategy for directly writing output file to VFS.
   5   *
   6   * $Horde: framework/VFS_ISOWriter/ISOWriter/RealOutputStrategy/direct.php,v 1.1.8.5 2006/01/01 21:28:44 jan Exp $
   7   *
   8   * Copyright 2004-2006 Cronosys, LLC <http://www.cronosys.com/>
   9   *
  10   * See the enclosed file COPYING for license information (LGPL). If you
  11   * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  12   *
  13   * @author  Jason M. Felice <jfelice@cronosys.com>
  14   * @package VFS_ISO
  15   * @since   Horde 3.0
  16   */
  17  class VFS_ISOWriter_RealOutputStrategy_direct extends VFS_ISOWriter_RealOutputStrategy {
  18  
  19      function getRealFilename()
  20      {
  21          /* So we shouldn't be accessing _getNativePath().  If we had real
  22           * access control, that would be protected and we'd be a friend, as
  23           * that is the point of this excercise. */
  24          $filename = $this->_targetVfs->_getNativePath($this->_targetFile);
  25  
  26          /* Make sure the path to the file exists. */
  27          $dir = dirname($filename);
  28          while (!@is_dir($dir)) {
  29              if (!@mkdir($dir, 0755)) {
  30                  return PEAR::raiseError(sprintf(_("Could not mkdir \"%s\"."),
  31                                                  $dir));
  32              }
  33              $dir = dirname($dir);
  34          }
  35  
  36          return $filename;
  37      }
  38  
  39      function finished()
  40      {
  41          /* Nothing to do. */
  42      }
  43  
  44  }
  45  


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7