Has Option Method

Checks to see if the given option is set and available.
@param $strOption The option.
@return boolean
505845
public function hasOption($strOption, $boolAllowNull = false){
		if($this->options()){
			if($boolAllowNull || !is_null($this->options()->{$strOption})){
				return true;
			}
		}

		return false;
	}
1155546
public function setOption($option = [])
    {
        if (!isset($option['sandbox'])) {
            $option['sandbox'] = false;
        }
        $this->provider->setOption($option);
    }
1336368
public function setOption($strTableName, $strFieldName, $strOptionName, $mixValue)
    {
        $this->options[$strTableName][$strFieldName][$strOptionName] = $mixValue;
        $this->blnChanged = true;
    }
1348143
protected function hasInputOption($option, $input)
    {
        return $input->hasOption($option) && null !== $input->getOption($option);
    }
237
public function __isset($property)
    {
        if ($propertyReflector = $this->liberatorPropertyReflector($property)) {
            return null !== $propertyReflector->getValue($this->popsValue());
        }

        return parent::__isset($property);
    }
1145184
public function hasOpt(string $name): bool
    {
        return isset($this->sOpts[$name]) || isset($this->lOpts[$name]);
    }
770167
def has_opt(self, opt):
        
        for sec in self.sections:
            val = self.cp.has_option(sec, opt)
            if val:
                return val

        return False
68147
public function hasCondition($strProperty)
    {
        $blnReturn = false;

        foreach ($this->__conditions as $objCondition) {
            if ($objCondition->getProperty() === strtolower($strProperty)) {
                $blnReturn = true;
                break;
            }
        }

        return $blnReturn;
    }
1295193
public function Get($option)
    {
        if(isset($this->preferences[$option]))
        {
            return $this->preferences[$option];
        }

        return false;
    }
646229
public function hasMutator($field) {
        $method = sprintf('set%sAttribute', Inflector::camelCase($field));

        if (method_exists($this, $method)) {
            return $method;
        }

        return null;
    }
424451
public function hasProperty($strProperty){
		$strProperty = $this->_formatPropertyName($strProperty);
		if(in_array($strProperty, $this->_arrProperties)){
			return true;
		}
		return false;
	}
220701
public function setOption($option, $value)
    {
        if (null !== $this->logger) {
            $this->logger->startMethod('setOption', ['option' => $option, 'value' => $value]);
        }

        if (!$this->setOptionImpl($option, $value)) {
            $this->stopMethod();

            return false;
        }

        $this->setResultOK();
        $this->stopMethod();

        return true;
    }
834118
public function getOption($option)
    {
        if (!empty($this->options->{$option})) {
            return $this->options->{$option};
        }

        return false;
    }
1144768
public function hasOption($prop)
    {
        $prop = (string)$prop;

        if (is_object($this->options)) {
            $getter = 'get' . ucfirst($prop);
            return method_exists($this->options, $getter);
        }

        return false;

    }
138805
public static function setExposedOption($optionName = "") {
		
		if (!empty($optionName) && isset(self::$options[$optionName])) {
			if (!in_array($optionName,self::$options["exposedOptions"])) {
				self::$options["exposedOptions"][] = $optionName;
			}
			return true;
		}
		
		return false;
		
	}
222948
public function getOpt($option)
    {
        return isset($this->options[$option]) ? $this->options[$option] : null;
    }
1267199
protected function setOption() {
		
		// find the value that was passed
		$updateOption = Console::findCommandOptionValue("set");
		$updateOptionBits = explode("=",$updateOption);
		if (count($updateOptionBits) == 1) {
			Console::writeError("the --set value should look like <info>optionName=\"optionValue\"</info>. nothing was updated...");
		}
		
		// set the name and value that were passed
		$updateName   = $updateOptionBits[0];
		$updateValue  = (($updateOptionBits[1][0] == "\"") || ($updateOptionBits[1][0] == "'")) ? substr($updateOptionBits[1],1,strlen($updateOptionBits[1])-1) : $updateOptionBits[1];
		
		// make sure the option being updated already exists
		$currentValue = Config::getOption($updateName);
		
		if (!$currentValue) {
			Console::writeError("the --set option you provided, <info>".$updateName."</info>, does not exists in the config. nothing will be updated...");
		} else {
			Config::updateConfigOption($updateName,$updateValue);
			Console::writeInfo("config option updated...");
		}
		
	}