临时文件

@param string $prefix
@return string
488918
public function tmpFile($prefix = null)
    {
        $tmpPath = Env::get('RUNTIME_PATH') . 'file/';

        // 不存在则创建
        is_dir($tmpPath) || mkdir($tmpPath, 0755, true);

        $prefix || $prefix = 'tmp';
        return tempnam($tmpPath, $prefix);
    }
258144
public function list(string $prefix): ListCommand
    {
        /** @var ListCommand $command */
        $command = $this->builder->build(ListCommand::class);
        $command->byPrefix($prefix);

        return $command;
    }
1334037
public function getUrl($file = '', $prefix = '')
        {

            $version = $this->getVersion();
            $pattern = $this->getPattern();

            /** Search Params
             *  %f => $file
             *  %v => $version
             */

            $f = str_replace('%f', $file, $pattern);
            $v = str_replace('%v', $version, $f);

            return $this->getDefaultPath() . $prefix . $v;
        }
959644
public function prefix($prefix = '') {
        if (empty($prefix) && null !== $prefix) {
            return $this->prefix;
        }
        else {
            $this->prefix = $prefix;
        }
    }
749809
public function hasPrefix(string $prefix):bool {
        if (0 !== $this->getLength() && "" === $prefix) return false;
        return true === (substr( $this->getValue(), 0, strlen($prefix)) === $prefix);
    }
119205
public function removePrefixFromString($prefix, $string)
    {
        if (GeneralUtility::isFirstPartOfStr($string, $prefix)) {
            return substr($string, strlen($prefix));
        } else {
            return $string;
        }
    }
1106696
protected static function stripPrefix(string $string, string $prefix): string {
        if(strpos($string, $prefix) !== 0) {
            return $string;
        }
        return substr($string, strlen($prefix));
    }
515294
public static function checkUrlPrefix($prefix) {
        return isset(self::$prefix['check'][ $prefix ]) ? self::$prefix['check'][ $prefix ] : null;
    }
1191319
protected function getPathBuilder($prefix)
    {
        return function ($value) use (&$prefix) {
            $prefix .= static::SEP_MAJOR . $this->fixString($value);
            return $prefix;
        };
    }
1256862
public function addPrefix($prefix)
	{
		if (!in_array($prefix, $this->prefixes))
		{
			array_push($this->prefixes, trim($prefix));
		}

		return $this;
	}
433168
public function prefix(string $prefix): Route
	{
		if(!empty($prefix))
		{
			$this->prefix .= '/' . trim($prefix, '/');
		}

		return $this;
	}
1236148
public function prefixToNamespaceURI($prefix)
    {
        return isset($this->prefix_to_uri[$prefix]) ? $this->prefix_to_uri[$prefix] : false;
    }
787972
protected function _getCacheId($prefix = 'minify')
    {
        $name = preg_replace('/[^a-zA-Z0-9\\.=_,]/', '', $this->selectionId);
        $name = preg_replace('/\\.+/', '.', $name);
        $name = substr($name, 0, 100 - 34 - strlen($prefix));
        $md5 = md5(serialize(array(
            Minify_SourceSet::getDigest($this->sources),
            $this->options['minifiers'],
            $this->options['minifierOptions'],
            $this->options['postprocessor'],
            $this->options['bubbleCssImports'],
            Minify::VERSION,
        )));

        return "{$prefix}_{$name}_{$md5}";
    }
906343
public function loadAll($prefix = '')
		{

			// Loop through files
			foreach ($this->_files as $section => $file) {

				// Load it?
				if (strlen($prefix) == 0 || 
					$prefix == $section ||
					(strlen($section) > strlen($prefix) && substr($section, 0, strlen($prefix)) == $prefix) ||
					(strlen($section) < strlen($prefix) && substr($prefix, 0, strlen($section)) == $section)) {
				
					// Load file
					$this->_loadFile($file);

					// Remove from queue
					unset($this->_files[$section]);

				}

			}

		}
704012
public function fullPath($prefix = null)
    {
        if ($prefix) {
            return $this->getFolder() . $prefix . '_' . $this->getFilename();
        }

        return $this->getFolder() . $this->getFilename();
    }
1089325
private function getOrderBy($prefix)
    {
        $result = '';
        // If sorting is defined
        if (null != $this->sorting && count($this->sorting) > 0) {
            $orderBy = '';
            // TODO OrderBy relations translations_value
            foreach ($this->sorting as $col => $dir) {
                if (strlen($orderBy) > 0) {
                    $orderBy .= ', ';
                }
                $orderBy .= $prefix . '.' . $col . ' ' . $dir;
            }
            $result .= '
                ORDER BY ' . $orderBy;
        }

        return $result;
    }
13602
function stripPrefix($prefix)
    {
        $key = (string) $this;

        if (substr($key, 0, strlen($prefix)) == $prefix)
            $key = substr($key, strlen($prefix));

        return new self($key);
    }