PHP Класс Mpociot\Teamwork\Teamwork

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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