import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -17,7 +17,7 @@
* @subpackage Framework
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: RecursiveFilterIterator.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: RecursiveFilterIterator.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -31,7 +31,7 @@ class Zend_Tool_Framework_Loader_IncludePathLoader_RecursiveFilterIterator exten
protected $_denyDirectoryPattern = null;
protected $_acceptFilePattern = null;
/**
* constructor
*
@ -45,7 +45,7 @@ class Zend_Tool_Framework_Loader_IncludePathLoader_RecursiveFilterIterator exten
$this->_acceptFilePattern = $acceptFilePattern;
parent::__construct($iterator);
}
/**
* accept() - Which iterable items to accept or deny, required by FilterInterface
*
@ -57,11 +57,11 @@ class Zend_Tool_Framework_Loader_IncludePathLoader_RecursiveFilterIterator exten
$currentNodeRealPath = $currentNode->getRealPath();
// if the current node is a directory AND doesn't match the denyDirectory pattern, accept
if ($currentNode->isDir()
if ($currentNode->isDir()
&& !preg_match('#' . $this->_denyDirectoryPattern . '#', $currentNodeRealPath)) {
return true;
}
// if the file matches the accept file pattern, accept
$acceptable = (preg_match('#' . $this->_acceptFilePattern . '#', $currentNodeRealPath)) ? true : false;
return $acceptable;
@ -79,13 +79,13 @@ class Zend_Tool_Framework_Loader_IncludePathLoader_RecursiveFilterIterator exten
if (empty($this->ref)) {
$this->ref = new ReflectionClass($this);
}
return $this->ref->newInstance(
$this->getInnerIterator()->getChildren(),
$this->_denyDirectoryPattern,
$this->_acceptFilePattern
);
}
}