]> git.mxchange.org Git - core.git/blobdiff - inc/classes/interfaces/criteria/extended/class_AddableCriteria.php
Added optional $requestInstance parameter
[core.git] / inc / classes / interfaces / criteria / extended / class_AddableCriteria.php
index fd6e685378b4fdca642d115dd69b60cc187630cd..c98cad3f4b958f4f30b7de749575329058ff10e0 100644 (file)
@@ -25,45 +25,11 @@ interface Addable extends FrameworkInterface {
        /**
         * Adds registration elements to a given dataset instance
         *
-        * @param       $criteriaInstance       An instance of a storeable criteria
+        * @param       $criteriaInstance       An instance of a StoreableCriteria class
+        * @param       $requestInstance        An instance of a Requestable class
         * @return      void
         */
-       function addElementsToDataSet (StoreableCriteria $criteriaInstance);
-}
-
-// [EOF]
-?>
-<?php
-/**
- * An interface for classes which are allowed to add criteria
- *
- * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
- * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-interface Addable extends FrameworkInterface {
-       /**
-        * Adds registration elements to a given dataset instance
-        *
-        * @param       $criteriaInstance       An instance of a storeable criteria
-        * @return      void
-        */
-       function addElementsToDataSet (StoreableCriteria $criteriaInstance);
+       function addElementsToDataSet (StoreableCriteria $criteriaInstance, Requestable $requestInstance = NULL);
 }
 
 // [EOF]