protected function addExtraFieldInternal($extraField, $condition, $refValue) { $extraFieldParams = array($extraField, $condition, $refValue); if (in_array($extraFieldParams, $this->_extraFields)) { return; } // already added $this->_extraFields[] = $extraFieldParams; if ($extraField != self::ECF_REFERRER || self::$_usesHttpReferrer) { self::$_hasExtraFields = true; } foreach ($this->getFieldValues($extraField) as $valueIndex => $fieldValue) { $conditionResult = $this->applyCondition($fieldValue, $condition, $refValue); $key = "___cache___{$extraField}_{$valueIndex}" . $this->getConditionKey($condition, $refValue); $this->_params[$key] = $conditionResult; } $this->_cacheKeyDirty = true; }