Extract App::getProfileOwner() and setProfileOwner() into AppHelper
This commit is contained in:
parent
b5317f8e46
commit
f0ce7ea61e
2 changed files with 32 additions and 7 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue