7 use Elgg\Traits\Loggable;
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', [
126 $body .= $this->views->renderView(
'elements/forms/footer', [
127 'footer' => $this->getFooter(),
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
Exception that represents error in the program logic.
Keeps track of ES modules.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key='class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.