/**
  * {@inheritdoc}
  */
 public function __construct($path, $flags = 0)
 {
     parent::__construct($path, $flags);
     // Normalize slashes on Windows
     $this->normalizeKey = '\\' === DIRECTORY_SEPARATOR && !($flags & self::KEY_AS_FILENAME);
     $this->normalizeCurrent = '\\' === DIRECTORY_SEPARATOR && $flags & self::CURRENT_AS_PATHNAME;
 }
 public function __construct($path, $flags)
 {
     if ($flags & (self::CURRENT_AS_PATHNAME | self::CURRENT_AS_SELF)) {
         throw new RuntimeException('This iterator only support returning current as fileinfo.');
     }
     parent::__construct($path, $flags);
 }
 public function __construct($path, PluginManager $pluginManager, $projectRootPath, $flags = null)
 {
     if ($flags & (self::CURRENT_AS_PATHNAME | self::CURRENT_AS_SELF)) {
         throw new \RuntimeException('This iterator only support returning current as SplFileInfo.');
     }
     parent::__construct($path, $flags);
     $this->setPluginManager($pluginManager)->setProjectRootPath($projectRootPath);
 }
 public function __construct($path, $ignoreUnreadableDirs = false)
 {
     if (!$ignoreUnreadableDirs && (!is_dir($path) || !is_readable($path))) {
         throw new ehough_finder_exception_AccessDeniedException("Could not open directory at {$path}");
     }
     $this->_ignoreUnreadableDirs = $ignoreUnreadableDirs;
     parent::__construct($path);
 }
 /**
  * Constructor.
  *
  * @param string  $path
  * @param int     $flags
  * @param bool    $ignoreUnreadableDirs
  *
  * @throws \RuntimeException
  */
 public function __construct($path, $flags, $ignoreUnreadableDirs = false)
 {
     if ($flags & (self::CURRENT_AS_PATHNAME | self::CURRENT_AS_SELF)) {
         throw new \RuntimeException('This iterator only support returning current as fileinfo.');
     }
     parent::__construct($path, $flags);
     $this->ignoreUnreadableDirs = $ignoreUnreadableDirs;
 }
 /**
  * Constructor.
  *
  * @param string $path
  * @param int    $flags
  * @param bool   $ignoreUnreadableDirs
  *
  * @throws \RuntimeException
  */
 public function __construct($path, $flags, $ignoreUnreadableDirs = false)
 {
     if ($flags & (self::CURRENT_AS_PATHNAME | self::CURRENT_AS_SELF)) {
         throw new \RuntimeException('This iterator only support returning current as fileinfo.');
     }
     parent::__construct($path, $flags);
     $this->ignoreUnreadableDirs = $ignoreUnreadableDirs;
     $this->rootPath = (string) $path;
     if ('/' !== DIRECTORY_SEPARATOR && !($flags & self::UNIX_PATHS)) {
         $this->directorySeparator = DIRECTORY_SEPARATOR;
     }
 }
Exemple #7
0
 public function __construct($path, $flags = null, $recursive = false)
 {
     if (is_bool($flags)) {
         $recursive = $flags;
         $flags = null;
     }
     if ($flags === null) {
         $flags = \FilesystemIterator::KEY_AS_PATHNAME | \FilesystemIterator::CURRENT_AS_FILEINFO;
     }
     $this->recursive = $recursive;
     parent::__construct($path, $flags);
 }
Exemple #8
0
 /**
  * Constructor.
  * Please, see \RecursiveDirectoryIterator::__construct() method.
  * We add the $splFileInfoClass parameter.
  *
  * @param   string  $path                Path.
  * @param   int     $flags               Flags.
  * @param   string  $splFileInfoClass    SplFileInfo classname.
  */
 public function __construct($path, $flags = null, $splFileInfoClass = null)
 {
     if (null === $flags) {
         parent::__construct($path);
     } else {
         parent::__construct($path, $flags);
     }
     if (null !== self::$_handlePath) {
         $this->_relativePath = self::$_handlePath;
         self::$_handlePath = null;
     } else {
         $this->_relativePath = $path;
     }
     $this->setSplFileInfoClass($splFileInfoClass);
     return;
 }
 public function __construct($path, $flags = \FilesystemIterator::KEY_AS_PATHNAME | \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS)
 {
     parent::__construct($path, $flags);
 }
 public function __construct($path, $sourceBasePath, $destBasePath)
 {
     $this->sourceBasePath = $sourceBasePath;
     $this->destBasePath = $destBasePath;
     parent::__construct($path);
 }
 public function __construct($path)
 {
     parent::__construct($path);
     // Skip current and parent directory
     $this->skipdots();
 }
 /**
  * Constructor
  *
  * @param sfFilebasePluginFile $path
  * @param integer $flags
  */
 public function __construct(sfFilebasePluginFile $path, $flags = parent::CURRENT_AS_FILEINFO)
 {
     //parent::setInfoClass('sfFilebasePluginFile');
     parent::__construct($path, $flags);
     $this->filebase = $path->getFilebase();
 }
 function __construct($path)
 {
     parent::__construct($path);
 }
 public function __construct($path)
 {
     parent::__construct($path);
     $this->skipdots();
 }
Exemple #15
0
 function __construct($a)
 {
     echo __FUNCTION__ . "\n";
     return parent::__construct($a);
 }
 function __construct($path, $skipUnreadable)
 {
     parent::__construct($path, \RecursiveDirectoryIterator::SKIP_DOTS);
     $this->skipUnreadable = $skipUnreadable;
 }
 public function __construct($path_)
 {
     parent::__construct($path_, \RecursiveDirectoryIterator::SKIP_DOTS | \RecursiveDirectoryIterator::CURRENT_AS_PATHNAME);
 }