Added initIndex().
authorRoland Haeder <roland@mxchange.org>
Mon, 19 May 2014 20:35:25 +0000 (22:35 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 19 May 2014 20:35:25 +0000 (22:35 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/index/class_
inc/classes/main/index/class_BaseIndex.php
inc/classes/main/index/file_stack/class_FileStackIndex.php

index 2f51d77..b0aa6d9 100644 (file)
@@ -42,6 +42,9 @@ class ???Index extends BaseIndex implements Indexable {
                // Get a new instance
                $indexInstance = new ???Index();
 
+               // Initialize index
+               $indexInstance->initIndex($fileName);
+
                // Return the prepared instance
                return $indexInstance;
        }
index 25853ea..9d01952 100644 (file)
@@ -32,6 +32,16 @@ class BaseIndex extends BaseFrameworkSystem {
                // Call parent constructor
                parent::__construct($className);
        }
+
+       /**
+        * Initializes this file based index
+        *
+        * @param       $fileName       Name of the file to create an index for
+        * @return      void
+        */
+       protected function initIndex ($fileName) {
+               // @TODO
+       }
 }
 
 // [EOF]
index faa79b0..aeb1464 100644 (file)
@@ -42,6 +42,9 @@ class FileStackIndex extends BaseIndex implements IndexableStack {
                // Get a new instance
                $indexInstance = new FileStackIndex();
 
+               // Initialize index
+               $indexInstance->initIndex($fileName);
+
                // Return the prepared instance
                return $indexInstance;
        }