-
Docs
Backend
-
Behaviors
-
Classes
-
Controllers
-
Database
-
Seeds
-
-
Facades
-
FormWidgets
-
Helpers
-
Exception
- Backend
-
-
Models
-
ReportWidgets
-
Skins
-
Traits
-
Widgets
- ServiceProvider
-
-
Cms
-
Classes
- Asset
- AutoDatasource
- CmsCompoundObject
- CmsController
- CmsException
- CmsObject
- CmsObjectCollection
- CodeBase
- CodeParser
- ComponentBase
- ComponentHelpers
- ComponentManager
- ComponentPartial
- Content
- Controller
- Layout
- LayoutCode
- MediaLibrary
- MediaLibraryItem
- MediaViewHelper
- Meta
- ObjectMemoryCache
- Page
- PageCode
- Partial
- PartialCode
- PartialStack
- Router
- Theme
- ThemeManager
-
Components
-
Contracts
-
Controllers
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ComponentNode
- ComponentTokenParser
- ContentNode
- ContentTokenParser
- DebugExtension
- DefaultNode
- DefaultTokenParser
- Extension
- FlashNode
- FlashTokenParser
- FrameworkNode
- FrameworkTokenParser
- Loader
- PageNode
- PageTokenParser
- PartialNode
- PartialTokenParser
- PlaceholderNode
- PlaceholderTokenParser
- PutNode
- PutTokenParser
- ScriptsNode
- ScriptsTokenParser
- StylesNode
- StylesTokenParser
-
Widgets
- ServiceProvider
-
-
System
-
Behaviors
-
Classes
-
Console
-
Controllers
-
Database
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ServiceProvider
-
-
Events
-
backend
-
ajax
-
filter
-
form
-
list
-
menu
-
page
-
user
-
-
cms
-
ajax
-
block
-
combiner
-
component
-
object
-
page
-
router
-
template
-
theme
-
-
halcyon
-
datasource
-
-
mailer
-
media
-
model
-
system
-
assets
-
console
-
mirror
-
theme
-
-
reportwidgets
-
settings
- extendConfigFile
-
-
translator
-
-
Library
-
Argon
-
Auth
-
Models
- AuthException
- Manager
-
-
Config
-
Cookie
-
Middleware
-
-
Database
-
Attach
-
Behaviors
-
Concerns
-
Connections
-
Connectors
-
Models
-
Relations
-
Schema
-
Traits
-
Updates
- README
- Builder
- Collection
- DatabaseServiceProvider
- DataFeed
- Dongle
- MemoryCache
- Model
- ModelBehavior
- ModelException
- NestedTreeScope
- Pivot
- QueryBuilder
- SortableScope
- TreeCollection
- Updater
-
-
Events
-
Exception
-
Extension
-
Filesystem
-
Flash
-
Foundation
-
Bootstrap
-
Console
-
Exception
-
Http
-
Middleware
- Kernel
-
-
Providers
- Application
- Maker
-
-
Halcyon
-
Datasource
-
Exception
-
Processors
-
Traits
- README
- Builder
- Collection
- HalcyonServiceProvider
- MemoryCacheManager
- MemoryRepository
- Model
-
-
Html
-
Mail
-
Network
-
Parse
-
Router
-
Scaffold
-
Support
-
Translation
-
- Documentation
- API
- Library
- Router
- Helper
October\Rain\Router\Helper
Source: ~/vendor/october/rain/src/Router/Helper.php
Methods that may be useful for processing routing activity
Public methods
public static string getParameterName(string $segment)
Extracts the parameter name from a URL pattern segment definition.
Parameters
- string $segment - The segment definition.
public static string getSegmentDefaultValue(string $segment)
Extracts the default parameter value from a URL pattern segment definition.
Parameters
- string $segment - The segment definition.
public static string getSegmentRegExp(string $segment)
Extracts the regular expression from a URL pattern segment definition.
Parameters
- string $segment - The segment definition.
public static string normalizeUrl(string $url)
Adds leading slash and removes trailing slash from the URL.
Parameters
- string $url - URL to normalize.
public static string parseValues(stdObject $object, array $columns, string $string)
Replaces :column_name with it's object value. Example: /some/link/:id/:name -> /some/link/1/Joe
Parameters
- stdObject $object - Object containing the data
- array $columns - Expected key names to parse
- string $string - URL template
public static string rebuildUrl(array $urlArray)
Rebuilds a URL from an array of segments.
Parameters
- array $urlArray - Array the URL segments.
public static string replaceParameters(stdObject $object, string $string)
Replaces :column_name with object value without requiring a list of names. Example: /some/link/:id/:name -> /some/link/1/Joe
Parameters
- stdObject $object - Object containing the data
- string $string - URL template
public static boolean segmentIsOptional(string $segment)
Checks whether an URL pattern segment is optional.
Parameters
- string $segment - The segment definition.
public static boolean segmentIsWildcard(string $segment)
Checks whether an URL pattern segment is a wildcard.
Parameters
- string $segment - The segment definition.
public static array segmentizeUrl(string $url)
Splits an URL by segments separated by the slash symbol.
Parameters
- string $url - URL to segmentize.