]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/criteria/class_BaseCriteria.php
Added 2 more methods
[core.git] / inc / classes / main / criteria / class_BaseCriteria.php
index 6a4511028b841be3baaa5238c38c21bac78d09c7..3b97b8b5f432d1b4fad74e23e9151d54671bf66b 100644 (file)
@@ -195,6 +195,28 @@ class BaseCriteria extends BaseFrameworkSystem implements Criteria {
                return $value;
        }
 
+       /**
+        * Get criteria element or null if not found for 'choice' type
+        *
+        * @param       $criteriaKey    The requested criteria key
+        * @return      $value                  Whether the value of the critera or null
+        */
+       public function getCriteriaChoiceElemnent ($criteriaKey) {
+               // Call inner method
+               return $this->getCriteriaElemnent($criteriaKey, 'choice');
+       }
+
+       /**
+        * Get criteria element or null if not found for 'exclude' type
+        *
+        * @param       $criteriaKey    The requested criteria key
+        * @return      $value                  Whether the value of the critera or null
+        */
+       public function getCriteriaExcludeElemnent ($criteriaKey) {
+               // Call inner method
+               return $this->getCriteriaElemnent($criteriaKey, 'exclude');
+       }
+
        /**
         * Checks whether given array entry matches
         *