]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/stacker/file/fifo/class_FiFoFileStack.php
Continued with indexes/stacks:
[core.git] / inc / classes / main / stacker / file / fifo / class_FiFoFileStack.php
index 1a81058cd4924602f5c5c62f188375b78845b33d..899338d5983f60d03a959bf63fe239075b9eeb06 100644 (file)
@@ -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 FiFoFileStack extends BaseFileStack implements StackableFile {
+class FiFoFileStack extends BaseFileStack implements StackableFile, Registerable {
        /**
         * Protected constructor
         *
@@ -36,14 +36,15 @@ class FiFoFileStack extends BaseFileStack implements StackableFile {
         * 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;