]> git.mxchange.org Git - core.git/commitdiff
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 2f51d77cc63d4ea1b07ff80eb27837b23d4b5f53..b0aa6d96f1a4203aeefb0b9f6d374ef2cc4faa96 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 25853eab1b924366470c0c2e04bf274198cc7d63..9d019528a4f188d15822e7bcb98899573c4e44f1 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 faa79b060c52cc39e67710b19e43f99cd1063ea7..aeb1464474f27004f4afab45a767555e5154f786 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;
        }