mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Add commonly used member properties to SessionHelper class #2279
This commit is contained in:
parent
796f14571b
commit
8b4818a767
1 changed files with 26 additions and 0 deletions
|
|
@ -12,7 +12,23 @@ class SessionHelper
|
|||
* Instance properties.
|
||||
*/
|
||||
public $member_srl = 0;
|
||||
public $user_id;
|
||||
public $user_name;
|
||||
public $nick_name;
|
||||
public $email_address;
|
||||
public $phone_number;
|
||||
public $homepage;
|
||||
public $blog;
|
||||
public $birthday;
|
||||
public $denied;
|
||||
public $status;
|
||||
public $is_admin = 'N';
|
||||
public $is_site_admin;
|
||||
public $profile_image;
|
||||
public $image_name;
|
||||
public $image_mark;
|
||||
public $signature;
|
||||
public $description;
|
||||
public $group_list = array();
|
||||
public $menu_list = array();
|
||||
|
||||
|
|
@ -98,4 +114,14 @@ class SessionHelper
|
|||
{
|
||||
return $this->group_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the profile image URL, if it exists.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProfileImage(): string
|
||||
{
|
||||
return isset($this->profile_image->src) ? $this->profile_image->src : '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue