getSet();
else if (is_string($criteria_numbers))
$criteria = array($criteria_numbers);
else if (is_array($criteria_numbers))
$criteria = $criteria_numbers;
else
exit("openCriteria( must be array or set )");
$opened = array();
foreach ($criteria as $i => $cn)
{
if (is_string($cn))
$cn = new Criteria($cn);
$opened[] = $cn;
}
return $opened;
}
*/
function searchCriteria($terms, $criteria)
{
$terms2 = fixUpTerms($terms);
$searched = array();
foreach ($criteria as $i => $k)
{
if ($k->includes($terms2))
$searched[] = $k;
}
return $searched;
}
function criteriaNotes(&$lines)
{
$lines[] = '
';
$lines[] = '';
$lines[] = '