public function buildStringOrCallable(array &$options, array $keys)
	{
		$model = $this->config->getDataModel();

		//iterate over the keys
		foreach ($keys as $key)
		{
			//check if the key's value was supplied
			$suppliedValue = $this->validator->arrayGet($options, $key);

			//if it's a string, simply set it
			if (is_string($suppliedValue))
			{
				$options[$key] = $suppliedValue;
			}
			//if it's callable pass it the current model and run it
			else if (is_callable($suppliedValue))
			{
				$options[$key] = $suppliedValue($model);
			}
		}
	}
public function buildStringOrCallable(array &$options, array $keys)
	{
		$model = $this->config->getDataModel();

		//iterate over the keys
		foreach ($keys as $key)
		{
			//check if the key's value was supplied
			$suppliedValue = $this->validator->arrayGet($options, $key);

			//if it's a string, simply set it
			if (is_string($suppliedValue))
			{
				$options[$key] = $suppliedValue;
			}
			//if it's callable pass it the current model and run it
			else if (is_callable($suppliedValue))
			{
				$options[$key] = $suppliedValue($model);
			}
		}
	}
public function buildStringOrCallable ( array & $ options , array $ keys ) { $ model = $ this -> config -> getDataModel ( ) ; //iterate over the keys foreach ( $ keys as $ key ) { //check if the key's value was supplied $ suppliedValue = $ this -> validator -> arrayGet ( $ options , $ key ) ; //if it's a string, simply set it if ( is_string ( $ suppliedValue ) ) { $ options [ $ key ] = $ suppliedValue ; } //if it's callable pass it the current model and run it else if ( is_callable ( $ suppliedValue ) ) { $ options [ $ key ] = $ suppliedValue ( $ model ) ; } } }
Sets up the values of all the options that can be either strings or closures

@param array		$options	//the passed-by-reference array on which to do the transformation
@param array		$keys		//the keys to check

@return void
Sets up the values of all the options that can be either strings or closures