use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
use Org\Mxchange\CoreFramework\Criteria\Search\SearchCriteria;
use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
-use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
+use Org\Mxchange\CoreFramework\Utils\Strings\StringUtils;
/**
* A general crtieria class
*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2021 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
*
foreach (array('default', 'choice', 'exclude') as $criteriaType) {
// Init it
$this->initGenericArrayKey('criteria', $criteriaType, 'entries');
- } // END - foreach
+ }
}
/**
foreach ($this->getGenericArray('criteria') as $criteriaType => $dummy) {
// Remove it
$this->unsetGenericArrayElement('criteria', $criteriaType, 'entries', $criteriaKey);
- } // END - foreach
+ }
}
/**
if ($this->isKeySet($criteriaType, $criteriaKey)) {
// Then use it
$value = $this->getGenericArrayElement('criteria', $criteriaType, 'entries', $criteriaKey);
- } // END - if
+ }
// Return the value
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($criteriaType) . '-CRITERIA: value=' . $value . ' - EXIT!');
if (($key == $criteriaKey) && ($criteriaValue == $entry)) {
// Then count this one up
$counted++;
- } // END - if
- } // END - foreach
- } // END - foreach
+ }
+ }
+ }
// Now check if expected criteria counts match
$matches = ($counted == $this->countGenericArrayGroup('criteria', $criteriaType));
$criteriaKey,
urlencode($criteriaValue)
);
- } // END - if
- } // END - foreach
+ }
+ }
// Remove last semicolon
$cacheKey = substr($cacheKey, 0, -1);
$this->getLimit(),
$this->getSkip()
);
- } // END - if
- } // END - if
+ }
+ }
// Return the cache key
return $cacheKey;