Recursively retrieves the value for a key
@param string $name
@throws HTMLPurifier_Exception
760115
public function get($name)
    {
        if ($this->has($name)) {
            return $this->data[$name];
        }
        // possible performance bottleneck, convert to iterative if necessary
        if ($this->parent) {
            return $this->parent->get($name);
        }
        throw new HTMLPurifier_Exception("Key '$name' not found");
    }
1024752
public function hasHtml(string $name) : bool
    {
        return $this->htmlContentAreas->any(function (HtmlContentArea $contentArea) use ($name) {
            return $contentArea->name === $name;
        });
    }
1131680
public function get($name)
	{
		//check if null param supplied and return the while InputData array
		if($name === null){

			//return the whole array
			return $this->inputData;

		}

		//check for named paramter
		elseif ($this->KeyExists($name, $this->inputData)) {
			
			//return the value of this key
			return htmlentities($this->inputData[$name], ENT_QUOTES);

		}

		//this key does not exists, return bool false
		else{

			//return bool false
			return null;

		}

	}
566044
public function VarIndexByName( $name )
	{
		foreach ( array_reverse( $this->_slots, true ) as $k => /** @var NameSlot $nameSlot */ $nameSlot )
		{
			// if ( $nameSlot->name == $name->__toString() )
			if ( (string)$nameSlot->name == (string)$name )
			{
				return $nameSlot->id;
			}
		}
		throw XPath2Exception::withErrorCodeAndParam( "XPST0008", Resources::XPST0008, $name->__toString() );

		// for ( $k = count( $this->_slots ) - 1; $k >= 0; $k-- )
		// {
		// 	/** @var NameSlot $nameSlot */
		// 	$nameSlot = $this->_slots[ $k ];
		// 	if ( $nameSlot->name == $name->__toString() )
		// 	{
		// 		return $nameSlot->id;
		// 	}
		// }
		// throw XPath2Exception::withErrorCodeAndParam( "XPST0008", Resources::XPST0008, $name->__toString() );
	}
754137
public function getParam($name)
  {
    //if (in_array($name, self::$_textParamNames)) {
    if (in_array($name, $this->_textParamNames)) {
      return $this->_textParams[$name];
    } else {
      throw new CPS_Exception(array(array('long_message' => 'Invalid response parameter', 'code' => ERROR_CODE_INVALID_PARAMETER, 'level' => 'REJECTED', 'source' => 'CPS_API')));
    }
  }
503184
public function allowsElement($name)
    {
        if (!empty($this->currentNesting)) {
            $parent_token = array_pop($this->currentNesting);
            $this->currentNesting[] = $parent_token;
            $parent = $this->htmlDefinition->info[$parent_token->name];
        } else {
            $parent = $this->htmlDefinition->info_parent_def;
        }
        if (!isset($parent->child->elements[$name]) || isset($parent->excludes[$name])) {
            return false;
        }
        // check for exclusion
        for ($i = count($this->currentNesting) - 2; $i >= 0; $i--) {
            $node = $this->currentNesting[$i];
            $def  = $this->htmlDefinition->info[$node->name];
            if (isset($def->excludes[$name])) {
                return false;
            }
        }
        return true;
    }
1230294
public function get(string $name): Closure
    {
        if ( ! $this->has($name)) {
            throw new DefinitionNotFoundException("No breadcrumbs defined for route [{$name}].");
        }

        return $this->definitions[$name];
    }
65401
public function getValue($name = 'key')
    {
        if (!isset($this->rawData[$name])) {
            return null;
        }

        return $this->rawData[$name];
    }
1227671
public function get($name) {
        $this->runCopy();
        if (in_array($name, ['css', 'js', 'style', 'script'])) {
            $return = $this->{$name};
        } else {
            throw new \Exception(" '$name' doesn't Exists is the '" . __CLASS__ . "' class. ");
        }
        return $return;
    }
300293
private function getPrimitiveByName(string $name): Primitive
    {
        foreach ($this->primitives as $primitive) {
            if ($primitive->getName() == $name) {
                return $primitive;
            }
        }
        
        throw new \Exception("Primitive not found");
    }
147253
protected function get($name)
    {
        if (isset($this->site[$name])) {
            return $this->site[$name];
        }

        throw new Exception("The property $name could not be found on the website ID " . (int)$this->id);
    }
1227703
public function getAttribute($key)
    {
        $value = parent::getAttribute($key);

        if ($key === 'name') {
            $value = str_replace($this->multiValueSuffix, '', $value);
        }

        return $value;
    }
55013
private function Value($name)
    {
        $value = Request::PostData($this->prefix . $name);
        return Str::Trim($value);
    }
1000900
public function getAttribute($name): string
    {
        if ($this->attributes->length === 0) { // Performance optimization
            return '';
        }
        $value = parent::getAttribute($name);
        return $value !== '' ? (strstr($value, 'html5-dom-document-internal-entity') !== false ? $this->updateResult($value) : $value) : '';
    }
76544
public function get( $name )
	{
		$mbegin = str_replace( '$', $name, $this->_begin );
		$mend = str_replace( '$', $name, $this->_end );

		if( ( $begin = strpos( $this->_text, $mbegin ) ) === false )
		{
			throw new MW_Template_Exception( sprintf( 'Error finding begin of marker "%1$s" in template', $name ) );
		}

		$begin += strlen( $mbegin );

		if( ( $end = strpos( $this->_text, $mend, $begin ) ) === false )
		{
			throw new MW_Template_Exception( sprintf( 'Error finding end of marker "%1$s" in template', $name ) );
		}

		return new self( substr( $this->_text, $begin, $end - $begin ), $this->_begin, $this->_end );
	}
1155589
private function parseReferences($name): string
    {
        if (preg_match_all('/\$\{(.*[a-z\.0-9])\}/si', $name, $results, PREG_SET_ORDER)) {
            foreach ($results as $match) {
                $replace = $match[0];
                $key = $match[1];

                // Handle using relative placement like get('db.${.default}.host');
                if (strpos($key, '.') === 0) {
                    // using relative placement
                    $key = substr($name, 0, strpos($name, $replace) - 1) . $key;
                }

                // get the value
                $value = $this->get($key);
                if ($value === null || $value === '' || $value === false) {
                    throw new InvalidArgumentException(
                        $key . ' replacement for ' . $name . ' must not be null or empty'
                    );
                }

                $name = str_replace($replace, $value, $name);
            }
        }

        return $name;
    }
1132326
public function getRawValue($name)
    {
        $value = null;
        if ($this->has($name)) {
            $value = call_user_func_array(
                [$this->_inputs[$name], 'getRawValue'],
                [$name]
            );
        }
        return $value;
    }