Get input.

@param string $key       Input name
@param bool   $jsonInput JSON or not

@return mixed
481777
private function getInput($key, $jsonInput)
    {
        if ($jsonInput) {
            $input = Input::json($key);
        } elseif (Input::file($key)) {
            $input = Input::file($key);
        } else {
            $input = Input::get($key);
        }

        return $input;
    }
1106774
public function getOldInput($key = null, $default = null)
    {
        $input = $this->get('_old_input', array());

        // Input that is flashed to the session can be easily retrieved by the
        // developer, making repopulating old forms and the like much more
        // convenient, since the request's previous input is available.
        return array_get($input, $key, $default);
    }
475839
public function getData($json = true, $assoc = false)
    {
        $data = file_get_contents('php://input');
        if (!$json) {
            return $data;
        }
        return json_decode($data, $assoc);
    }
1046265
public function getPut($key = null)
    {
        if ($key === null) {
            return $this->put;
        } else {
            return (isset($this->put[$key])) ? $this->put[$key] : null;
        }
    }
638773
public function get($key)
	{
		if(($key === NULL) || $key === '')
		{
			throw new JSONException('Null key.');
		}
		
		$object = $this->opt($key);
		
		if($object == NULL)
		{
			throw new JSONException('JSONArray[' . JSONObject::quote($key) . '] not found.');
		}
		
		return $object;
	}
356213
public function fetchObjectAttributeHTTPInput( $http, $base, $contentObjectAttribute )
    {
        $contentObjectAttributeID = $contentObjectAttribute->attribute( 'id' );

        if ( !$http->hasPostVariable( $base . '_eztags_data_text_' . $contentObjectAttributeID ) )
            return false;

        if ( !$http->hasPostVariable( $base . '_eztags_data_text2_' . $contentObjectAttributeID ) )
            return false;

        if ( !$http->hasPostVariable( $base . '_eztags_data_text3_' . $contentObjectAttributeID ) )
            return false;

        if ( !$http->hasPostVariable( $base . '_eztags_data_text4_' . $contentObjectAttributeID ) )
            return false;

        $keywordString = trim( $http->postVariable( $base . '_eztags_data_text_' . $contentObjectAttributeID ) );
        $parentString = trim( $http->postVariable( $base . '_eztags_data_text2_' . $contentObjectAttributeID ) );
        $idString = trim( $http->postVariable( $base . '_eztags_data_text3_' . $contentObjectAttributeID ) );
        $localeString = trim( $http->postVariable( $base . '_eztags_data_text4_' . $contentObjectAttributeID ) );

        $eZTags = eZTags::createFromStrings( $contentObjectAttribute, $idString, $keywordString, $parentString, $localeString );
        $contentObjectAttribute->setContent( $eZTags );

        return true;
    }
273751
public function Get($Key = NULL, $Default = NULL) {
      if ($Key === NULL)
         return $this->GetRequestArguments (self::INPUT_GET);
      else
         return $this->GetValueFrom(self::INPUT_GET, $Key, $Default);
   }
377053
public function input($key = null, $default = null)
    {
        $input = $this->getInputSource()->all() + $this->query->all();

        return array_get($input, $key, $default);
    }
863193
protected function validateForbidden($input, $key)
    {
        $flat = NestedArray::flat($input);
        return !array_key_exists($key, $flat);
    }
283014
public function input($key = null, $default = null)
    {
        $input = $this->getInputSource();

        return $this->inputSift($input, $key, $default);
    }
585778
public function input($key, $default = false)
    {
        return $this->getRequestInputByType()->has($key) ?
            $this->getRequestInputByType()->get($key) : $default;
    }
523282
public function
	GetInput($offset) {
	/*//
	fetch the specified input value by offset. if you want the 1st input then
	you will ask for 1. we will zero-pwn it internally.
	//*/

		--$offset;

		if(!array_key_exists($offset,$this->Inputs)) return NULL;
		else return $this->Inputs[$offset];
	}
100292
protected function parse($input): string
    {
        if (!is_array($input)) {
            return json_encode($input);
        }

        $parsed = "";
        foreach ($input as $key => $value) {
            $key = (!is_numeric($key) ? ($key . ": " ) : '');
            if (!is_array($value)) {
                $parsed .= $key . $this->parse($value) . ', ';
            } elseif (is_null(key($value)) || is_numeric(key($value))) {
                $parsed .= $key . "[" . $this->parse($value) . "], ";
            } else {
                $parsed .= $key . "{" . $this->parse($value) . "}, ";
            }
        }

        return rtrim($parsed, ', ');
    }
1170221
protected function _fromJson($input)
    {
        $obj = json_decode($input, true);

        if (JSON_ERROR_NONE !== json_last_error())
        {
            throw new InvalidArgumentException(
                'Error decoding JSON data: ' . json_last_error_msg()
            );
        }

        return $obj;
    }
320793
public function getInputValue($key = null, $default = null)
    {
        $input = $this->getInputSource()->all() + $this->query->all();

        return ArrayHelper::get($input, $key, $default);
    }
373801
public function fetchObjectAttributeHTTPInput($http, $base, $objectAttribute)
    {
        $objectAttributeId = $objectAttribute->attribute('id');

        if (!$http->hasPostVariable($base . self::RICH_TEXT_VARIABLE . $objectAttributeId)) {
            return false;
        }

        $value = trim($http->postVariable($base . self::RICH_TEXT_VARIABLE . $objectAttributeId));

        $objectAttribute->setContent(new Value($value));

        return true;
    }
37880
private function getOutput($input)
	{
		$return = Api::decrypt($this->createkey() , $input);
		if (!is_array($return)) {
			ob_start();
			$return = json_decode(trim(base64_decode($input)), true);
			ob_end_clean();
		}
		if (!is_array($return)) {
			$this->error[] = 'JfusionAPI: error output: ' . $input;
			return false;
		} else if (isset($return['PHPSESSID'])) {
			$this->sid = $return['PHPSESSID'];
		}

		if (isset($return['debug'])) {
			$this->debug = $return['debug'];
		}
		if (isset($return['error']) && !empty($return['error'])) {
			return false;
		} else if (isset($return['payload'])) {
			return $return['payload'];
		}
		return true;
	}