]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/index/file_stack/class_FileStackIndex.php
Added new CSV file abstraction class which is now a stub and needs expansion.
[core.git] / inc / classes / main / index / file_stack / class_FileStackIndex.php
index faa79b060c52cc39e67710b19e43f99cd1063ea7..416298cd9d0767ca5bd88814746aa7b9f8a55048 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class FileStackIndex extends BaseIndex implements IndexableStack {
+class FileStackIndex extends BaseIndex implements IndexableStack, Registerable {
        /**
         * Protected constructor
         *
@@ -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;
        }