inc/classes/interfaces/criteria/.htaccess svneol=native#text/plain
inc/classes/interfaces/criteria/class_Criteria.php svneol=native#text/plain
inc/classes/interfaces/criteria/extended/.htaccess svneol=native#text/plain
+inc/classes/interfaces/criteria/extended/class_AddableCriteria.php -text
inc/classes/interfaces/criteria/extended/class_LocalSearchCriteria.php svneol=native#text/plain
inc/classes/interfaces/criteria/extended/class_LocalUpdateCriteria.php svneol=native#text/plain
inc/classes/interfaces/criteria/extended/class_StoreableCriteria.php svneol=native#text/plain
--- /dev/null
+<?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);
+}
+
+// [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);
+}
+
+// [EOF]
+?>
* 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 BookablePoints extends FrameworkInterface {
+interface BookablePoints extends AddableCriteria {
/**
* Checks whether the user has the required amount of points left for the specified action
*
* @return void
*/
function bookPointsDirectly ($amount);
-
- /**
- * Adds registration elements to a given dataset instance
- *
- * @param $criteriaInstance An instance of a storeable criteria
- * @return void
- */
- function addElementsToDataSet (StoreableCriteria $criteriaInstance);
}
// [EOF]
* 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 UserRegister extends FrameworkInterface {
+interface UserRegister extends AddableCriteria {
/**
* Encrypt given request key or throws an exception if key was not found in
* request.
* @return void
*/
function doPostAction ();
-
- /**
- * Adds registration elements to a given dataset instance
- *
- * @param $criteriaInstance An instance of a storeable criteria
- * @return void
- */
- function addElementsToDataSet (StoreableCriteria $criteriaInstance);
}
// [EOF]
* 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 UpdateableResult extends FrameworkInterface {
+interface UpdateableResult extends AddableCriteria {
/**
* Adds an update request to the database result for writing it to the
* database layer
* @throws ResultUpdateException If no result was updated
*/
function add2UpdateQueue (LocalUpdateCriteria $criteriaInstance);
-
- /**
- * Adds registration elements to a given dataset instance
- *
- * @param $criteriaInstance An instance of a storeable criteria
- * @return void
- */
- function addElementsToDataSet (StoreableCriteria $criteriaInstance);
}
// [EOF]