]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/index/class_BaseIndex.php
Continued:
[core.git] / framework / main / classes / index / class_BaseIndex.php
index 79e1c054e33edd5c12cd72fd4403eda5f629a84c..5e56d1dc1c7222add6bd3e6a6a486cb591d80046 100644 (file)
@@ -37,7 +37,7 @@ use \UnexpectedValueException;
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-abstract class BaseIndex extends BaseFrameworkSystem {
+abstract class BaseIndex extends BaseFrameworkSystem implements Indexable {
        // Load traits
        use IteratorTrait;
 
@@ -174,7 +174,7 @@ abstract class BaseIndex extends BaseFrameworkSystem {
                $fileInstance = ObjectFactory::createObjectByConfiguredName('index_file_class', array($fileInfoInstance, $this));
 
                // Get iterator instance
-               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('file_iterator_class', array($fileInstance));
+               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('file_iterator_class', [$fileInstance]);
 
                // Set iterator here
                $this->setIteratorInstance($iteratorInstance);
@@ -219,7 +219,7 @@ abstract class BaseIndex extends BaseFrameworkSystem {
                // Freshly created?
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-INDEX: created=%d', intval($created)));
                if (!$created) {
-                       // Count all entries in file
+                       // Analyze file structure
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-INDEX: Calling this->iteratorInstance->analyzeFileStructure() ...');
                        $this->getIteratorInstance()->analyzeFileStructure();
                }