Elgg  Version master
pageowner.php
Go to the documentation of this file.
1 <?php
12 function elgg_get_page_owner_guid(): int {
13  return _elgg_services()->pageOwner->getPageOwnerGuid();
14 }
15 
24  return _elgg_services()->pageOwner->getPageOwnerEntity();
25 }
26 
35  $page_owner = _elgg_services()->pageOwner;
36 
37  if ($guid >= 0) {
38  $page_owner->setPageOwnerGuid($guid);
39  return;
40  }
41 
42  // removes page owner
43  $page_owner->setPageOwnerGuid(0);
44 }
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
elgg_set_page_owner_guid(int $guid)
Set the guid of the entity that owns this page.
Definition: pageowner.php:34
elgg_get_page_owner_guid()
Elgg page owner library.
Definition: pageowner.php:12
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:23
$page_owner
Definition: add.php:16
_elgg_services()
Get the global service provider.
Definition: elgglib.php:351
$guid
Reset an ElggUpgrade.
Definition: reset.php:6