PHP Класс Phosphorum\Badges\Badge\Expert

More than 10 accepted answers in specific categories
Наследование: extends Phosphorum\Badges\BadgeBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$description
$name
$query

Открытые методы

Метод Описание
add ( Users $user, array $extra = null ) Add the badge to the user
canHave ( Users $user ) : boolean Check whether the user can have the badge
getExpertQuery ( Users $user )
has ( Users $user ) : boolean Check whether the user already have this badge

Описание методов

add() публичный Метод

Add the badge to the user
public add ( Users $user, array $extra = null )
$user Phosphorum\Models\Users
$extra array

canHave() публичный Метод

Check whether the user can have the badge
public canHave ( Users $user ) : boolean
$user Phosphorum\Models\Users
Результат boolean

getExpertQuery() публичный Метод

public getExpertQuery ( Users $user )
$user Phosphorum\Models\Users

has() публичный Метод

Check whether the user already have this badge
public has ( Users $user ) : boolean
$user Phosphorum\Models\Users
Результат boolean

Описание свойств

$description защищенное свойство

protected $description

$name защищенное свойство

protected $name

$query защищенное свойство

protected $query