Свойство | Тип | Описание | |
---|---|---|---|
$CanEditPhotos | Can the current user edit the profile user's photo? | ||
$CurrentTab | Name of current tab. | ||
$EditMode | Is the page in "edit" mode or not. | ||
$Form | Gdn_Form | ||
$ProfileTabs | List of available tabs. | ||
$User | User data to use in building profile. | ||
$Uses | Models to automatically instantiate. |
Свойство | Тип | Описание | |
---|---|---|---|
$_TabApplication | Application for current tab. | ||
$_TabController | Controller for current tab. | ||
$_TabView | View for current tab. | ||
$_UserInfoRetrieved | Whether data has been stored in $this->User yet. |
Метод | Описание | |
---|---|---|
__construct ( ) | Prep properties. | |
_setBreadcrumbs ( $Name = null, $Url = null ) | ||
activity ( mixed $UserReference = '', string $Username = '', integer $UserID = '', $Page = '' ) | Show activity feed for this user. | |
addProfileTab ( mixed $TabName, string $TabUrl = '', string $CssClass = '', string $TabHtml = '' ) | Adds a tab (or array of tabs) to the profile tab collection ($this->ProfileTabs). | |
addSideMenu ( string $CurrentUrl = '' ) | Adds the option menu to the panel asset. | |
buildEditMenu ( SideMenuModule &$Module, string $CurrentUrl = '' ) | ||
buildProfile ( ) : boolean | Build the user profile. | |
clear ( mixed $UserID = '' ) | Clear user's current status message. | |
connections ( integer | string $UserReference = '', string $Username = '' ) | Lists the connections to other sites. | |
count ( string $Column, integer $UserID = false ) | Generic way to get count via UserModel->ProfileCount(). | |
deleteInvitation ( integer $InvitationID ) | Delete an invitation that has already been accepted. | |
disconnect ( string $UserReference = '', string $Username = '', $Provider ) | ||
edit ( mixed $UserReference = '', $Username = '', $UserID = '' ) | Edit user account. | |
editMode ( $Switch ) | ||
get ( integer $UserID = false ) | Render basic data about user. | |
getProfileUrl ( string | integer | null $UserReference = null, integer | null $UserID = null ) : string | ||
getUserInfo ( $UserReference = '', string $Username = '', integer $UserID = '', boolean $CheckPermissions = false ) : boolean | Retrieve the user to be manipulated. Defaults to current user. | |
index ( mixed $User = '', string $Username = '', integer $UserID = '', $Page = false ) | Default profile page. | |
initialize ( ) | Adds JS, CSS, & modules. Automatically run on every use. | |
invitations ( $UserReference = '', $Username = '', $UserID = '' ) | Manage current user's invitations. | |
multi ( type $UserID ) | Fetch multiple users | |
noMobile ( string $type = 'desktop' ) | Set 'NoMobile' cookie for current user to prevent use of mobile theme. | |
notifications ( integer $Page = false ) | Show notifications for current user. | |
notificationsPopin ( ) | ||
password ( ) | Set new password for current user. | |
picture ( mixed $userReference = '', string $username = '', string $userID = '' ) | Set user's photo (avatar). | |
preference ( string $Key = false ) | Gets or sets a user's preference. This method is meant for ajax calls. | |
preferences ( mixed $UserReference = '', string $Username = '', integer $UserID = '' ) | Edit user's preferences (mostly notification settings). | |
profileUrl ( mixed $UserReference = null, string $UserID = null ) : string | Build URL to user's profile. | |
removePicture ( mixed $UserReference = '', string $Username = '', string $tk = '', $deliveryType = '' ) | Remove the user's photo. | |
sendInvite ( integer $InvitationID = '' ) | Let user send an invitation. | |
setTabView ( string $CurrentTab, string $View = '', string $Controller = 'Profile', string $Application = 'Dashboard' ) | Define & select the current tab in the tab menu. Sets $this->_CurrentTab. | |
thumbnail ( mixed $UserReference = '', string $Username = '' ) | Set user's thumbnail (crop & center photo). | |
uninvite ( integer $InvitationID ) | Revoke an invitation. |
Метод | Описание | |
---|---|---|
_removeEmailFilter ( $Value ) | ||
_removeEmailPreferences ( $Data ) |
Метод | Описание | |
---|---|---|
deleteAvatars ( string $avatar = '' ) | Deletes uploaded avatars in the profile size format. | |
isUploadedAvatar ( string $avatar ) : boolean | Test whether a path is a full url, which gives us an indication whether it's an upload or not. | |
saveAvatars ( string $source, array $thumbOptions, Gdn_UploadImage | null $upload = null ) : boolean | Saves the avatar to /uploads in two sizes: p* : The profile-sized image, which is constrained by Garden.Profile.MaxWidth and Garden.Profile.MaxHeight. |
protected static _removeEmailPreferences ( $Data ) |
public addProfileTab ( mixed $TabName, string $TabUrl = '', string $CssClass = '', string $TabHtml = '' ) | ||
$TabName | mixed | Tab name (or array of tab names) to add to the profile tab collection. |
$TabUrl | string | URL the tab should point to. |
$CssClass | string | Class property to apply to tab. |
$TabHtml | string | Overrides tab's HTML. |
public addSideMenu ( string $CurrentUrl = '' ) | ||
$CurrentUrl | string | Path to highlight. |
public buildEditMenu ( SideMenuModule &$Module, string $CurrentUrl = '' ) | ||
$Module | SideMenuModule | |
$CurrentUrl | string |
public buildProfile ( ) : boolean | ||
Результат | boolean | Always true. |
public deleteInvitation ( integer $InvitationID ) | ||
$InvitationID | integer |
public disconnect ( string $UserReference = '', string $Username = '', $Provider ) | ||
$UserReference | string | |
$Username | string | |
$Provider |
public initialize ( ) |
public invitations ( $UserReference = '', $Username = '', $UserID = '' ) |
public noMobile ( string $type = 'desktop' ) | ||
$type | string | The type of mobile device. This can be one of the following: - desktop: Force the desktop theme. - mobile: Force the mobile theme. - tablet: Force the tablet theme (desktop). - app: Force the app theme (app). - 1: Unset the force cookie and use the user agent to determine the theme. |
public notifications ( integer $Page = false ) | ||
$Page | integer | Number to skip (paging). |
public preference ( string $Key = false ) | ||
$Key | string | The name of the preference. |
public sendInvite ( integer $InvitationID = '' ) | ||
$InvitationID | integer | Unique identifier. |
public setTabView ( string $CurrentTab, string $View = '', string $Controller = 'Profile', string $Application = 'Dashboard' ) | ||
$CurrentTab | string | Name of tab to highlight. |
$View | string | View name. Defaults to index. |
$Controller | string | Controller name. Defaults to Profile. |
$Application | string | Application name. Defaults to Dashboard. |
public $CanEditPhotos |