PHP 클래스 Mpociot\Teamwork\Teamwork

파일 보기 프로젝트 열기: mpociot/teamwork 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$app Illuminate\Foundation\Application Laravel application

공개 메소드들

메소드 설명
__construct ( Illuminate\Foundation\Application $app ) Create a new Teamwork instance.
acceptInvite ( Mpociot\Teamwork\TeamInvite $invite )
denyInvite ( Mpociot\Teamwork\TeamInvite $invite )
getInviteFromAcceptToken ( $token ) : mixed
getInviteFromDenyToken ( $token ) : mixed
hasPendingInvite ( $email, Team | array | integer $team ) : boolean Checks if the given email address has a pending invite for the provided Team
inviteToTeam ( string | User $user, null | Team $team = null, callable $success = null ) Invite an email adress to a team.
user ( ) Get the currently authenticated user or null.

메소드 상세

__construct() 공개 메소드

Create a new Teamwork instance.
public __construct ( Illuminate\Foundation\Application $app )
$app Illuminate\Foundation\Application

acceptInvite() 공개 메소드

public acceptInvite ( Mpociot\Teamwork\TeamInvite $invite )
$invite Mpociot\Teamwork\TeamInvite

denyInvite() 공개 메소드

public denyInvite ( Mpociot\Teamwork\TeamInvite $invite )
$invite Mpociot\Teamwork\TeamInvite

getInviteFromAcceptToken() 공개 메소드

public getInviteFromAcceptToken ( $token ) : mixed
$token
리턴 mixed

getInviteFromDenyToken() 공개 메소드

public getInviteFromDenyToken ( $token ) : mixed
$token
리턴 mixed

hasPendingInvite() 공개 메소드

Checks if the given email address has a pending invite for the provided Team
public hasPendingInvite ( $email, Team | array | integer $team ) : boolean
$email
$team Team | array | integer
리턴 boolean

inviteToTeam() 공개 메소드

Either provide a email address or an object with an email property. If no team is given, the current_team_id will be used instead.
public inviteToTeam ( string | User $user, null | Team $team = null, callable $success = null )
$user string | User
$team null | Team
$success callable

user() 공개 메소드

Get the currently authenticated user or null.
public user ( )

프로퍼티 상세

$app 공개적으로 프로퍼티

Laravel application
public Application,Illuminate\Foundation $app
리턴 Illuminate\Foundation\Application