[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/routing/Matcher/Dumper/ -> StaticPrefixCollection.php (summary)

(no description)

File Size: 238 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

StaticPrefixCollection:: (10 methods):
  __construct()
  getPrefix()
  getItems()
  addRoute()
  groupWithItem()
  accepts()
  detectCommonPrefix()
  optimizeGroups()
  shouldBeInlined()
  guardAgainstAddingNotAcceptedRoutes()


Class: StaticPrefixCollection  - X-Ref

Prefix tree of routes preserving routes order.

__construct($prefix = '')   X-Ref


getPrefix()   X-Ref
No description

getItems()   X-Ref

return: mixed[]|StaticPrefixCollection[]

addRoute($prefix, $route)   X-Ref
Adds a route to a group.

param: string $prefix
param: mixed  $route

groupWithItem($item, $prefix, $route)   X-Ref
Tries to combine a route with another route or group.

param: StaticPrefixCollection|array $item
param: string                       $prefix
param: mixed                        $route
return: StaticPrefixCollection|null

accepts($prefix)   X-Ref
Checks whether a prefix can be contained within the group.

param: string $prefix
return: bool Whether a prefix could belong in a given group

detectCommonPrefix($prefix, $anotherPrefix)   X-Ref
Detects whether there's a common prefix relative to the group prefix and returns it.

param: string $prefix
param: string $anotherPrefix
return: false|string A common prefix, longer than the base/group prefix, or false when none available

optimizeGroups()   X-Ref
Optimizes the tree by inlining items from groups with less than 3 items.


shouldBeInlined()   X-Ref
No description

guardAgainstAddingNotAcceptedRoutes($prefix)   X-Ref
Guards against adding incompatible prefixes in a group.

param: string $prefix



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1