/**
* Criteria to handle
*/
- private $criteria = array();
+ private $criteria = array(
+ // Default
+ 'default' => array(),
+ // Choice
+ 'choice' => array(),
+ // .. and exclude
+ 'exclude' => array(),
+ );
/**
* Protected constructor
* @return $cacheKey The key suitable for the cache system
*/
public function getCacheKey ($onlyKeys = array(), $criteriaType = 'default') {
+ // Debug message
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput($this->__toString() . ': criteriaType=' . $criteriaType . ',count()=' . count($this->criteria));
+
+ // Make sure the criteria is there
+ assert((isset($this->criteria[$criteriaType])) && (is_array($this->criteria[$criteriaType])));
+
// Initialize the key
$cacheKey = '';