19 protected bool $rendering =
false;
78 'sticky_enabled' =>
false,
80 'sticky_ignored_fields' => [],
85 'elgg-form-' . preg_replace(
'/[^a-z0-9]/i',
'-', $action)],
95 $this->esm->import(
'input/form-ajax');
110 $this->rendering =
true;
118 $body = $this->views->renderView(
'elements/forms/body', [
120 'action_name' => $action,
126 $body .= $this->views->renderView(
'elements/forms/footer', [
127 'footer' => $this->getFooter(),
128 'action_name' => $action,
134 $this->rendering =
false;
153 if (!$this->rendering) {
154 throw new LogicException(
'Form footer can only be set and retrieved during form rendering, anywhere in elgg_view_form() call stack (e.g. form view, extending views, or view events)');
167 if (!$this->rendering) {
168 throw new LogicException(
'Form footer can only be set and retrieved during form rendering, anywhere in elgg_view_form() call stack (e.g. form view, extending views, or view events)');
if(!elgg_view_exists("plugins/{$plugin_id}/settings")) $form_vars
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
Keeps track of ES modules.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
trait Loggable
Enables adding a logger.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Exception that represents error in the program logic.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.