$_isRendering : boolean
Used by input() method.
Form helper library.
Overwrites CakePHP's Form Helper and adds alter hooks to every method, so plugins may alter form elements rendering cycle.
prefix(string|null $prefix) : string
Sets/Read input prefix.
$this->Form->prefix('settings:'); echo $this->Form->input('site_name'); // outputs: <input type="text" name="settings:site_name" /> echo $this->Form->prefix(); // outputs: "settings:" $this->Form->prefix(''); echo $this->Form->prefix(); // outputs: <empty string>
The prefix to be set, or leave empty to unset any previous prefix
Actual prefix always
trigger(array|string $eventName) : \Cake\Event\Event
Triggers the given event name. This method provides a shortcut for:
$this->trigger('EventName', $arg1, $arg2, ..., $argn);
You can provide a subject to use by passing an array as first arguments where
the first element is the event name and the second one is the subject, if no
subject is given
$this will be used by default:
$this->trigger(['GetTime', new MySubject()], $arg_0, $arg_1, ..., $arg_n);
You can also indicate an EventDispatcher instance to use by prefixing the
event name with
<InstanceName>::, for instance:
$this->trigger('Blog::EventName', $arg1, $arg2, ..., $argn);
This will use the EventDispacher instance named
Blog and will trigger the
EventName within that instance.
The event name to trigger
The event object that was fired
eventDispatcher(string $name) : \QuickApps\Event\EventDispatcher
Gets an instance of the given Event Dispatcher name.
$this->eventDispatcher('myDispatcher') ->trigger('MyEventName', $argument) ->result;
Name of the dispatcher to get, defaults to 'default'
triggered(string|null $eventName) : integer|array
Retrieves the number of times an event was triggered, or the complete list of events that were triggered.
The name of the event, if null returns the entire list of event that were fired