PageController
class PageController extends Controller
Traits
Properties
protected array | $routes | Additional Netflex page routes | from BaseController |
protected array | $dispatchesEvents | The event map. | from HasEvents |
protected array | $observables | User exposed observable events. | from HasEvents |
static Dispatcher | $dispatcher | Event dispatcher instance | from HasEvents |
static protected array | $traitInitializers | The array of trait initializers that will be called on each new instance. | from HasEvents |
static protected array | $booted | The array of booted instances. | from HasEvents |
Methods
Remove an observable event name.
Fire a custom event for the given event.
Set the event dispatcher instance.
Execute a callback without firing any events.
Details
in
BaseController at line 28
getRoutes()
in
BaseController at line 92
Response
fallbackIndex()
in
HasEvents at line 56
protected void
bootIfNotBooted()
Check if we needs to be booted and if so, do it.
in
HasEvents at line 73
static protected void
boot()
Bootstrap traits.
in
HasEvents at line 83
static protected void
bootTraits()
Boot all of the bootable traits.
in
HasEvents at line 108
protected void
initializeTraits()
Initialize any initializable traits.
in
HasEvents at line 123
static void
observe(object|array|string $classes)
Register observers.
in
HasEvents at line 140
protected void
registerObserver(object|string $class)
Register a single observer.
in
HasEvents at line 180
array
getObservableEvents()
Get the observable event names.
in
HasEvents at line 197
$this
setObservableEvents(array $observables)
Set the observable event names.
in
HasEvents at line 210
void
addObservableEvents(array|mixed $observables)
Add an observable event name.
in
HasEvents at line 224
void
removeObservableEvents(array|mixed $observables)
Remove an observable event name.
in
HasEvents at line 239
static protected void
registerEvent(string $event, Closure|string $callback)
Register a event with the dispatcher.
in
HasEvents at line 255
protected mixed
fireEvent(string $event, bool $halt = true)
Fire the given event.
in
HasEvents at line 287
protected mixed|null
fireCustomEvent(string $event, string $method)
Fire a custom event for the given event.
in
HasEvents at line 306
protected mixed
filterEventResults(mixed $result)
Filter the event results.
in
HasEvents at line 322
static void
flushEventListeners()
Remove all of the event listeners.
in
HasEvents at line 344
static Dispatcher
getEventDispatcher()
Get the event dispatcher instance.
in
HasEvents at line 355
static void
setEventDispatcher(Dispatcher $dispatcher)
Set the event dispatcher instance.
in
HasEvents at line 365
static void
unsetEventDispatcher()
Unset the event dispatcher.
in
HasEvents at line 376
static mixed
withoutEvents(callable $callback)
Execute a callback without firing any events.
in
Controller at line 12
__construct()
in
Controller at line 24
static void
booting(Closure|string $callback)
Register an updated model event with the dispatcher.
in
Controller at line 35
static void
booted(Closure|string $callback)
Register an updated model event with the dispatcher.