* 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 FiFoFileStack extends BaseFileStack implements StackableFile {
+class FiFoFileStack extends BaseFileStack implements StackableFile, Registerable {
/**
* Protected constructor
*
* 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;