* Creates an instance of this class
*
* @param $fileName Absolute Name of stack file
+ * @param $type Type of this stack (e.g. url_source for URL sources)
* @return $stackInstance An instance of a Stackable class
*/
- public final static function createFiFoFileStack ($fileName) {
+ public final static function createFiFoFileStack ($fileName, $type) {
// Get new instance
$stackInstance = new FiFoFileStack();
// Init this stack
- $stackInstance->initFileStack($fileName);
+ $stackInstance->initFileStack($fileName, $type);
// Return the prepared instance
return $stackInstance;