PHP 클래스 UserController, vanilla

저자: ramon
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$Form Gdn_Form
$Uses Models to automatically instantiate.

공개 메소드들

메소드 설명
add ( ) Create a user.
applicantCount ( ) Show how many applicants are in the queue.
applicants ( ) Show applicants queue.
approve ( integer $UserID = '' ) Approve a user application.
authenticate ( )
autoComplete ( ) Autocomplete a username.
ban ( type $UserID, $Unban = false ) Ban a user and optionally delete their content.
browse ( mixed $Keywords = '', integer $Page = '', string $Order = '' ) Page thru user list.
decline ( integer $UserID = '' ) Decline a user application.
delete ( integer $UserID = '', string $Method = '' ) Delete a user account.
delete2 ( )
deleteContent ( $UserID )
edit ( integer $UserID ) Edit a user account.
emailAvailable ( string $Email = '' ) Determine whether user can register with this email address.
index ( mixed $Keywords = '', integer $Page = '', string $Order = '' ) User management list.
initialize ( ) Highlight menu path. Automatically run on every use.
merge ( )
save ( )
sso ( boolean $UserID = false )
summary ( string $SortField = 'DateLastActive', string $SortDirection = 'desc', integer $Limit = 30, integer $Offset ) Convenience function for listing users. At time of this writing, it is being used by wordpress widgets to display recently active users.
tagSearch ( $q, integer $limit = 10 ) JSON output of a username search.
usernameAvailable ( string $Name = '' ) Determine whether user can register with this username.
verify ( $UserID, $Verified )

보호된 메소드들

메소드 설명
_getFilter ( ) Get filter from current request.
_orderUrl ( string $Field ) : string Build URL to order users by value passed.

비공개 메소드들

메소드 설명
handleApplicant ( string $Action, integer $UserID ) : boolean Handle a user application.

메소드 상세

_getFilter() 보호된 메소드

Get filter from current request.
부터: 2.0.0
protected _getFilter ( )

_orderUrl() 보호된 메소드

Build URL to order users by value passed.
부터: 2.0.0
protected _orderUrl ( string $Field ) : string
$Field string Column to order users by.
리턴 string URL of user list with orderby query appended.

add() 공개 메소드

Create a user.
부터: 2.0.0
public add ( )

applicantCount() 공개 메소드

Show how many applicants are in the queue.
부터: 2.0.0
public applicantCount ( )

applicants() 공개 메소드

Show applicants queue.
부터: 2.0.0
public applicants ( )

approve() 공개 메소드

Approve a user application.
부터: 2.0.0
public approve ( integer $UserID = '' )
$UserID integer Unique ID.

authenticate() 공개 메소드

public authenticate ( )

autoComplete() 공개 메소드

Autocomplete a username.
부터: 2.0.0
public autoComplete ( )

ban() 공개 메소드

Ban a user and optionally delete their content.
부터: 2.1
public ban ( type $UserID, $Unban = false )
$UserID type

browse() 공개 메소드

Page thru user list.
부터: 2.0.0
public browse ( mixed $Keywords = '', integer $Page = '', string $Order = '' )
$Keywords mixed Term or list of terms to limit search.
$Page integer Page number.
$Order string Sort order.

decline() 공개 메소드

Decline a user application.
부터: 2.0.0
public decline ( integer $UserID = '' )
$UserID integer Unique ID.

delete() 공개 메소드

Delete a user account.
부터: 2.0.0
public delete ( integer $UserID = '', string $Method = '' )
$UserID integer Unique ID.
$Method string Type of deletion to do (delete, keep, or wipe).

delete2() 공개 메소드

public delete2 ( )

deleteContent() 공개 메소드

public deleteContent ( $UserID )
$UserID

edit() 공개 메소드

Edit a user account.
부터: 2.0.0
public edit ( integer $UserID )
$UserID integer Unique ID.

emailAvailable() 공개 메소드

Determine whether user can register with this email address.
부터: 2.0.0
public emailAvailable ( string $Email = '' )
$Email string Email address to be checked.

index() 공개 메소드

User management list.
부터: 2.0.0
public index ( mixed $Keywords = '', integer $Page = '', string $Order = '' )
$Keywords mixed Term or array of terms to filter list of users.
$Page integer Page number.
$Order string Sort order for list.

initialize() 공개 메소드

Highlight menu path. Automatically run on every use.
부터: 2.0.0
public initialize ( )

merge() 공개 메소드

public merge ( )

save() 공개 메소드

public save ( )

sso() 공개 메소드

public sso ( boolean $UserID = false )
$UserID boolean

summary() 공개 메소드

Convenience function for listing users. At time of this writing, it is being used by wordpress widgets to display recently active users.
부터: 2.0.?
public summary ( string $SortField = 'DateLastActive', string $SortDirection = 'desc', integer $Limit = 30, integer $Offset )
$SortField string The field to sort users with. Defaults to DateLastActive. Other options are: DateInserted, Name.
$SortDirection string The direction to sort the users.
$Limit integer The number of users to show.
$Offset integer The offset to start listing users at.

tagSearch() 공개 메소드

JSON output of a username search.
public tagSearch ( $q, integer $limit = 10 )
$limit integer

usernameAvailable() 공개 메소드

Determine whether user can register with this username.
부터: 2.0.0
public usernameAvailable ( string $Name = '' )
$Name string Username to be checked.

verify() 공개 메소드

public verify ( $UserID, $Verified )
$UserID
$Verified

프로퍼티 상세

$Form 공개적으로 프로퍼티

public Gdn_Form $Form
리턴 Gdn_Form

$Uses 공개적으로 프로퍼티

Models to automatically instantiate.
public $Uses