}
/**
- * Determines if a key is set in the generic array
+ * Determines if an element is set in the generic array
*
* @param $keyGroup Main group for the key
* @param $subGroup Sub group for the key
* @param $key Key to check
+ * @param $element Element to check
* @return $isset Whether the given key is set
*/
- protected final function isGenericArrayKeySet ($keyGroup, $subGroup, $key) {
+ protected final function isGenericArrayElementSet ($keyGroup, $subGroup, $key, $element) {
// Is it there?
- $isset = isset($this->genericArray[$keyGroup][$subGroup][$key]);
+ $isset = isset($this->genericArray[$keyGroup][$subGroup][$key][$element]);
// Return it
return $isset;
}
-
/**
- * Determines if an element is set in the generic array
+ * Determines if a key is set in the generic array
*
* @param $keyGroup Main group for the key
* @param $subGroup Sub group for the key
* @param $key Key to check
- * @param $element Element to check
* @return $isset Whether the given key is set
*/
- protected final function isGenericArrayElementSet ($keyGroup, $subGroup, $key, $element) {
+ protected final function isGenericArrayKeySet ($keyGroup, $subGroup, $key) {
// Is it there?
- $isset = isset($this->genericArray[$keyGroup][$subGroup][$key][$element]);
+ $isset = isset($this->genericArray[$keyGroup][$subGroup][$key]);
// Return it
return $isset;
}
+
/**
* Determines if a group is set in the generic array
*
// Return it
return $isValid;
}
+
+ /**
+ * Checks if a given key is valid (array)
+ *
+ * @param $keyGroup Key group to get
+ * @param $subGroup Sub group for the key
+ * @param $key Key to check
+ * @return $isValid Whether given sub group is valid
+ */
+ protected final function isValidGenericArrayKey ($keyGroup, $subGroup, $key) {
+ // Determine it
+ $isValid = (($this->isGenericArrayKeySet($keyGroup, $subGroup, $key)) && (is_array($this->getGenericArrayKey($keyGroup, $subGroup, $key))));
+
+ // Return it
+ return $isValid;
+ }
}
// [EOF]