Get path stack

@param  string $prefix
@return false|array False if prefix does not exist, array otherwise
426254
public function getPaths($prefix = null)
    {
        if ((null !== $prefix) && is_string($prefix)) {
            $prefix = $this->_formatPrefix($prefix);
            if ($this->_useStaticRegistry) {
                if (isset(self::$_staticPrefixToPaths[$this->_useStaticRegistry][$prefix])) {
                    return self::$_staticPrefixToPaths[$this->_useStaticRegistry][$prefix];
                }

                return false;
            }

            if (isset($this->_prefixToPaths[$prefix])) {
                return $this->_prefixToPaths[$prefix];
            }

            return false;
        }

        if ($this->_useStaticRegistry) {
            return self::$_staticPrefixToPaths[$this->_useStaticRegistry];
        }

        return $this->_prefixToPaths;
    }
1119077
public static function path($stack = false) {
		if (false === $stack) {
			return __FILE__;
		}

		if (!defined('DEBUG_BACKTRACE_IGNORE_ARGS')) {
			define('DEBUG_BACKTRACE_IGNORE_ARGS', 2);
		}

		$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
		if (empty($trace[$stack])) {
			throw new Exception();
		}
		return $trace[$stack]['file'];
	}
70974
public function getPath($flags = 0x000000) {
    $ds = $this->getDS();

    $trail = $flags & self::WITHOUT_TRAILINGSLASH ? '' : $ds;

    return $this->prefix.(empty($this->path) ? '' : implode($ds, $this->path).$trail);
  }
298811
public static function tmpFile($prefix = null)
    {
        $tmp_path = RUNTIME_PATH . 'file/';
        
        // 不存在则创建
        is_dir($tmp_path) || mkdir($tmp_path, 777, true);
        
        $prefix || $prefix = 'tmp';
        return tempnam($tmp_path, $prefix);
    }
57079
public function makeAbsolutePath($path, $prefix)
    {
        if (
            substr($path, 0, 1) == '/' || // unix root
            substr($path, 1, 2) == ':\\' || // windows root
            substr($path, 0, 2) == '~/' || // unix home directory
            substr($path, 0, 2) == '\\\\' || // windows network location
            preg_match('|^[a-z]+://|', $path) // url
        ) {
            return $path;
        } else {
            if (substr($path, 0, 2) == './') {
                $path = substr($path, 2);
            }
            $absPath = $this->fixPath($prefix).$path;
            $count = 1;
            while ($count > 0) {
                $absPath = preg_replace('|\w+/\.\./|', '', $absPath, -1, $count);
            }

            return $absPath;
        }
    }
991806
public function getLoader($prefix)
    {
        if (!$this->hasLoader($prefix)) {
            throw new \InvalidArgumentException(sprintf('A loader is not registered for the prefix "%s"', $prefix));
        }

        return $this->loaders[$prefix];
    }
1204353
public function prefix($prefix = null)
    {
        if (null !== $prefix) {
            $this->prefix = substr(md5($prefix), 0, 10) . '_';
        }

        return $this->prefix;
    }
515294
public static function checkUrlPrefix($prefix) {
        return isset(self::$prefix['check'][ $prefix ]) ? self::$prefix['check'][ $prefix ] : null;
    }
385923
public function prefix($prefix)
    {
        if ($this->parent && $this->parent->getOption('prefix')) {
            $prefix = $this->parent->getOption('prefix') . $prefix;
        }

        return $this->option('prefix', $prefix);
    }
627662
public function getSuperBlock($prefix): IPBlock
    {
        $prefix = ltrim($prefix, '/');
        $this->checkPrefix($prefix);

        if ($prefix >= $this->prefix) {
            throw new \InvalidArgumentException("Prefix must be bigger than {$this->prefix} ($prefix given)");
        }

        return new static($this->first_ip, $prefix);
    }
131892
public function getFileSystem(string $prefix): FileSystem
    {
        if (! isset($this->fs[$prefix])) {
            throw new InvalidArgumentException(
                sprintf('The filesystem was not found: "%s"', $prefix)
            );
        }

        return $this->fs[$prefix];
    }
988744
public function getKey(string $prefix = ''): string
    {
        $value = $this->getData();
        if (!is_array($value)) {
            $key = $value ?: '';
        } else {
            if (!empty($this->getAttributes())) {
                $flipped = array_flip($this->getAttributes());
                $value = array_intersect_key($value, $flipped);
            }

            $key = str_replace('=', '_', http_build_query($value, '', '_'));
        }

        return hash(self::ALGORITHM, $prefix.'_'.$key);
    }
445819
public function getFullUrl($prefix = TRUE)
    {
        if ($this->_fullUrl === FALSE) $this->fillPath();
		
        if ($prefix) {
			if (
				(!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ||
				(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || 
				(!empty($_SERVER['HTTP_HTTPS']) && $_SERVER['HTTP_HTTPS'] !== 'off') || 
				(!empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443)
			)		
				$schema = 'https:/';
				else $schema = 'http:/';
			return $schema.$this->_fullUrl;
		}
        return $this->_fullUrl;
    }
661396
public function getPaths($extension = null)
	{
		if (isset($extension)) {

            if (isset($this->_paths[$extension])) {
				return $this->_paths[$extension];
            }

			return array();
		}
		else
		{
			return $this->_paths;
		}
	}
959644
public function prefix($prefix = '') {
        if (empty($prefix) && null !== $prefix) {
            return $this->prefix;
        }
        else {
            $this->prefix = $prefix;
        }
    }
24711
public function getPath()
    {
        $stack = array($this->getName());
        $current = $this;

        while ($parent = $current->getParent()) {
            array_unshift($stack, $parent->getName());
            $current = $parent;
        }

        return implode('/', $stack);
    }
483997
protected function glob_keys_pattern($prefix = '') {
        if ($this->singledirectory) {
            return $this->path . '/'.$prefix.'*.cache';
        } else {
            return $this->path . '/*/'.$prefix.'*.cache';
        }
    }