Expands a single option to its unlimited counterpart if NULL or literal 'unlimited'.

@param array $options Array of options to process
@param string $key Key of the item to process
540463
protected static function processUnlimitedOption(array &$options, $key)
    {
        $ukey = "u{$key}";
        unset($options[$ukey]);
        if (array_key_exists($key, $options) && ($options[$key] === 'unlimited' || !isset($options[$key]))) {
            $options[$ukey] = 'ON';
        }
    }
1338630
public function isFull($key)
    {
        if (!$this->hasTarget($key)) {
            throw new \RuntimeException("undefined key '$key'");
        }
        return $this->getCount($key) >= $this->getTarget($key);
    }
810957
public function t($key, array $options = [], $locale = null)
    {
        if (strpos($key, '.') === 0) {
            $key = str_replace('/', '.', $this->template->prefix()) . $key;
        }
        
        $i18n = $this->actionView->getService('i18n');
        $options['exception'] = true;
        
        try {
            $tr = $i18n->translate($key, $options, $locale);
        } catch (TranslationMissingException $e) {
            $parts = explode('.', $key);
            $title = $this->actionView->getService('inflector')->titleize(end($parts));
            $tr = sprintf(
                '<span class="translation_missing" title="translation missing: %s">%s</span>',
                $i18n->defaultLocale() . '.' . $key,
                $title
            );
        }
        
        return $tr;
    }
942118
protected function optionIsFile($key)
    {
        if (! array_key_exists($key, $this->options)) {
            return false;
        }

        return is_file($this->options[$key]);
    }
1348994
public function remove($key)
    {
        foreach ($this->options as $idx => $option) {
            if (is_array($option)) {
                if (! strcasecmp($key, $option['name'])) {
                    unset($this->options[$idx]);

                    return true;
                }
            } elseif (! strcasecmp($key, $option)) {
                unset($this->options[$idx]);

                return true;
            }
        }

        return false;
    }
207059
public function setOption( $key, $value )
	{
		if( isset( $this->options[$key] ) && $this->options[$key] === $value )
			return FALSE;
		$this->options[$key] = $value;
		return TRUE;
	}
1349634
public function optionExpectsValue($key) {
    $spec_data = $this->getOptionDataByOptionKey();
    if (!isset($spec_data[$key])) { return false; }
    return strlen($spec_data[$key]['value_name']) ? true : false;
  }
136194
public function addOptions( $options ) {
		foreach ( $options as $key => $option ) {
			if ( is_int( $key ) ) {
				$this->addOption( $option );
			} else {
				$this->addOption( $key, $option );
			}
		}
	}
748867
public static function Decrypt ($data, $key, $options = []) {
		$options = static::_AdjustOptions($options);
		return openssl_decrypt($data, $options['method'], $key, $options['openssl_options'], $options['iv']);
	}
266509
function setKey($key)
    {
        parent::setKey($key);

        if (!$this->explicit_key_length) {
            $length = strlen($key);
            switch (true) {
                case $length <= 16:
                    $this->key_length = 16;
                    break;
                case $length <= 24:
                    $this->key_length = 24;
                    break;
                default:
                    $this->key_length = 32;
            }
            $this->_setEngine();
        }
    }
299093
public static function setExtraCurlOption($key, $value)
    {
        phpCAS :: traceBegin();
        phpCAS::_validateClientExists();

        self::$_PHPCAS_CLIENT->setExtraCurlOption($key, $value);
        phpCAS :: traceEnd();
    }
1200989
protected function setOptional($key, $value) {
        if (!$this->has($key))
            $this->set($key, $value);
    }
850379
public function hasOption($key, $option)
    {
        return isset($this->container[$key]) && array_key_exists($option, $this->container[$key]);
    }
679945
private function canOmitKey($key, & $nextIndex)
    {
        $result = $key === $nextIndex;

        if (\is_int($key)) {
            $nextIndex = max($key + 1, $nextIndex);
        }

        return $result;
    }
672627
public function createIndex(array $key, array $options = [])
    {
        $commandOptions = [];
        if (isset($options['writeConcern'])) {
            $commandOptions['writeConcern'] = $options['writeConcern'];
            unset($options['writeConcern']);
        }
        $index = new Index($key, $options);

        return current($this->createIndexes([$index], $commandOptions));
    }
716841
protected static function toggleSerializeClosure(array &$options, $key)
    {
        if (!isset($options[$key])) {
            return;
        }
        $serializer = Util::getClosureSerializer();
        if (is_callable($options[$key])) {
            $options[$key] = (string) $serializer->serialize($options[$key]);
        } elseif (is_string($options[$key])) {
            $options[$key] = $serializer->unserialize($options[$key]);
        }
    }
1189073
public static function getOption($key = "") {
		
		if (!empty($key)) {
			$arrayFinder = new ArrayFinder(self::$options);
			return $arrayFinder->get($key);
		}
		
		return false;
		
	}