Added new methods:
[core.git] / inc / classes / interfaces / criteria / class_Criteria.php
index aa929914fff3766f8fb2577614f715cfd03362c3..9609302f2c750644472d35217296d5ca98015bde 100644 (file)
@@ -103,6 +103,17 @@ interface Criteria extends FrameworkInterface {
         */
        function addCriteria ($criteriaKey, $criteriaValue, $criteriaType = 'default');
 
+       /**
+        * Sets criteria, this method converts dashes to underscores because dashes
+        * are not valid for criteria keys.
+        *
+        * @param       $criteriaKey    Criteria key
+        * @param       $criteriaValue  Criteria value
+        * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
+        * @return      void
+        */
+       function setCriteria ($criteriaKey, $criteriaValue, $criteriaType = 'default');
+
        /**
         * Add "choice" criteria, this method converts dashes to underscores because
         * dashes are not valid for criteria keys.