Extract App::getProfileOwner() and setProfileOwner() into AppHelper

This commit is contained in:
Art4 2024-11-06 13:36:38 +01:00
commit f0ce7ea61e
2 changed files with 32 additions and 7 deletions

View file

@ -22,10 +22,28 @@ use Friendica\Util\DateTimeFormat;
*/
final class AppHelper
{
private $profile_owner = 0;
private $timezone = '';
private $contact_id = 0;
/**
* Set the profile owner ID
*/
public function setProfileOwner(int $owner_id): void
{
$this->profile_owner = $owner_id;
}
/**
* Get the profile owner ID
*/
public function getProfileOwner(): int
{
return $this->profile_owner;
}
/**
* Set the timezone
*