Signed-off-by: Roland Häder <roland@mxchange.org>
// Get a new instance
$indexInstance = new ???Index();
+ // Initialize index
+ $indexInstance->initIndex($fileName);
+
// Return the prepared instance
return $indexInstance;
}
// 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]
// Get a new instance
$indexInstance = new FileStackIndex();
+ // Initialize index
+ $indexInstance->initIndex($fileName);
+
// Return the prepared instance
return $indexInstance;
}