\PatternController

Controller to handle search requests Initializes controllers for different search modes

Summary

Methods
Properties
Constants
getCreatePattern()
postPatternSearch()
getInterval()
No public properties found
No constants found
setupLayout()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getCreatePattern()

getCreatePattern() : \Illuminate\View\View

Helper function clear cache and return pattern-creation-view

Returns

\Illuminate\View\View —

pattern-creation-view

postPatternSearch()

postPatternSearch() : \Illuminate\Http\RedirectResponse

Function to pass patterns to corresponding Controllers, receive results and place both, pattern and results, in cache

Returns

\Illuminate\Http\RedirectResponse —

route to search results

getInterval()

getInterval(object  $n) : integer

Helper function to calculate the interval of a given note

Parameters

object $n

note object without calculated interval

Returns

integer —

calculated interval

setupLayout()

setupLayout() : void

Setup the layout used by the controller.