Elgg  Version 5.1
Go to the documentation of this file.
1 <?php
29 function elgg_set_context(string $context): bool {
30  return _elgg_services()->request->getContextStack()->set($context);
31 }
41 function elgg_get_context(): ?string {
42  return _elgg_services()->request->getContextStack()->peek();
43 }
52 function elgg_push_context(string $context): void {
53  _elgg_services()->request->getContextStack()->push($context);
54 }
62 function elgg_pop_context(): ?string {
63  return _elgg_services()->request->getContextStack()->pop();
64 }
78 function elgg_in_context(string $context): bool {
79  return _elgg_services()->request->getContextStack()->contains($context);
80 }
88 function elgg_get_context_stack(): array {
89  return _elgg_services()->request->getContextStack()->toArray();
90 }
99 function elgg_set_context_stack(array $stack): void {
100  _elgg_services()->request->getContextStack()->fromArray($stack);
101 }
Definition: add.php:8
elgg_in_context(string $context)
Check if this context exists anywhere in the stack.
Definition: context.php:78
elgg_set_context_stack(array $stack)
Set the entire context stack.
Definition: context.php:99
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
Definition: LICENSE.txt:215
Get the current context.
Definition: context.php:41
Removes and returns the top context string from the stack.
Definition: context.php:62
elgg_set_context(string $context)
Elgg context library.
Definition: context.php:29
elgg_push_context(string $context)
Push a context onto the top of the stack.
Definition: context.php:52
Get the global service provider.
Definition: elgglib.php:346
Get the entire context stack (e.g.
Definition: context.php:88