return all values of a section in the ini file.

@param string $section the section from wich we want values. 0 is the global section

@return array the list of values, $key=>$value
351402
public function getValues($section = 0)
    {
        if (!isset($this->content[$section])) {
            return array();
        }
        $values = array();
        foreach ($this->content[$section] as $k => $item) {
            if ($item[0] != self::TK_VALUE && $item[0] != self::TK_ARR_VALUE) {
                continue;
            }

            if (preg_match('/^-?[0-9]$/', $item[2])) {
                $val = intval($item[2]);
            } elseif (preg_match('/^-?[0-9\.]$/', $item[2])) {
                $val = floatval($item[2]);
            } elseif (strtolower($item[2]) === 'true' || strtolower($item[2]) === 'on') {
                $val = true;
            } elseif (strtolower($item[2]) === 'false' || strtolower($item[2]) === 'off') {
                $val = false;
            } else {
                $val = $item[2];
            }

            if ($item[0] == self::TK_VALUE) {
                $values[$item[1]] = $val;
            } else {
                $values[$item[1]][$item[3]] = $val;
            }
        }

        return $values;
    }
1342247
public function getConfigValues($subSection = null) {
        $config = Zend_Registry::get('config');
        // set defaults
        $values = $this->_defaultConfigValues;
        if ($config->auth) {
            $values = array_merge($values, $config->auth->toArray());
        }
        if ($subSection) {
            return array_get($values, $subSection);
        }
        return $values;
    }
1053519
private function _getExtends($section)
    {
        $sections = explode(':', $section);
        $extends = array_slice($sections, 1);
        $trimExtends = array_map('trim', $extends);

        return $trimExtends;
    }
966307
final protected function getArrayValue(string $key): array
    {
        $value = $this->getConfigValue($key);
        if (!$value || !\is_array($value)) {
            return [];
        }

        return $value;
    }
474414
public function getSection($section = null)
    {
        if (null === $this->container) {
            return $this->getRawSection($section);
        }

        return $this->compileParameters($section);
    }
953094
protected function getSection($section)
    {
        return isset($this->sections[$section])
            ? $this->sections[$section]
            : null;
    }
89004
public function setMultiple(string $section, $values) : bool
    {
        $sctnd = [];
        foreach ($values as $key => $value) {
            $sctnd[$this->concat($section, $key)] = $value;
        }
        return $this->config->setMultiple($sctnd);
    }
17160
protected function getSections(): array
    {
        $sections = explode($this->getDivider(), $this->getNotation());
        foreach ($sections as $index => $section) {
            $sections[$index] = explode($this->getSeparator(), $section);
        }

        return $sections;
    }
913987
public function getConfig($section)
    {
        if (!isset($this->_sections[$section])) {
            $this->_sections[$section] = $this->di->getConfig($section, $this->di->environment(), []);
        }

        return $this->_sections[$section];
    }
943322
public function getRawSection($section = null)
    {
        if (null === $section) {
            return $this->raw_parameters;
        } elseif (array_key_exists($section, $this->raw_parameters)) {
            return $this->raw_parameters[$section];
        }

        return;
    }
840527
private function compileParameters($section = null)
    {
        if (null === $section) {
            return $this->compileAllParameters();
        }

        if (!array_key_exists($section, $this->raw_parameters)) {
            return;
        }

        if (!array_key_exists($section, $this->parameters)) {
            $value = $this->raw_parameters[$section];
            if (is_array($value)) {
                array_walk_recursive($value, array($this->container, 'getContainerValues'));
            } else {
                $this->container->getContainerValues($value);
            }
            $this->parameters[$section] = $value;
        }

        return $this->parameters[$section];
    }
1031454
public function hasBlock( $section )
	{
		$names	= array_keys( $this->blocks );
		$result	= array_search( $section, $names );
		$return	= is_int( $result );
		return $return;
	}
923580
public function findSection($section)
    {
        if (!isset($this->sectionMap[$section])) {
            throw new UnknownSection($section);
        }

        return $this->sectionMap[$section];
    }
443252
public function getMultiple(string $section, $keys, $default = null)
    {
        $sctnd = [];
        foreach ($keys as $key) {
            $sctnd[] = $this->concat($section, $key);
        }
        return $this->config->getMultiple($sctnd, $default);
    }
971134
private function findSection($section)
	{
		// Check section type
		if (is_int($section) || $section === 'new') {
			return $section;
		} else if (is_string($section)) {
			// Search section names for related index
			$sections = array_keys($this->sections->byName);
			$index = array_search($section, $sections);

			// Return index if found
			if ($index !== false) {
				return $index;
			}
		}

		// Return error message and value
		$this->error = array();
		$this->error['page'] = "Section '$section' was not found on this page";
		return -1;
	}
830284
private function processComponentSections($sections)
	{
		// var to hold output
		$output = array();

		// loop through each component grouping
		foreach ($sections as $component => $files)
		{
			// if we dont have an array for that component let's create it
			if (!isset($output[$component]))
			{
				$output[$component] = [];
			}

			// loop through each file
			foreach ($files as $file)
			{
				if (!preg_match('/(.*)v[0-9]+_[0-9]+.php$/', $file))
				{
					continue;
				}
				$output[$component] = array_merge($output[$component], $this->processFile($file));
			}
		}

		// return output
		return $output;
	}
34463
public function delete_all($section)
	{
		// determine the section index name
		$section = $this->config['cache_id'].(empty($section)?'':'.'.$section);

		// get the directory index
		$index = xcache_get($this->config['cache_id'].'__DIR__');

		if (is_array($index))
		{
			// limit the delete if we have a valid section
			if ( ! empty($section))
			{
				$dirs = in_array($section, $index) ? array($section) : array();
			}
			else
			{
				$dirs = $index;
			}

			// loop through the indexes, delete all stored keys, then delete the indexes
			foreach ($dirs as $dir)
			{
				$list = xcache_get($dir);
				foreach ($list as $item)
				{
					xcache_unset($item[0]);
				}
				xcache_unset($dir);
			}

			// update the directory index
			$index = array_diff($index, $dirs);
			xcache_set($this->config['cache_id'].'__DIR__', $index);
		}
	}