PHP Class Phosphorum\Badges\BadgeBase

Inheritance: implements Phosphorum\Badges\BadgeInterface
Afficher le fichier Open project: phalcon/forum

Protected Properties

Свойство Type Description
$fullNoBountyCategories
$noBountyCategories

Méthodes publiques

Méthode Description
add ( Users $user, array $extra = null ) Add the badge to the user
getDescription ( ) : string Returns the description of the badge
getFullNoBountyCategories ( ) : array Returns those categories that don't have bounties
getName ( ) : string Returns the name of the badge
getNoBountyCategories ( ) : array Returns those categories that don't have bounties
has ( Users $user ) : boolean Check whether the user already have this badge

Method Details

add() public méthode

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

getDescription() public méthode

Returns the description of the badge
public getDescription ( ) : string
Résultat string

getFullNoBountyCategories() public méthode

Returns those categories that don't have bounties
public getFullNoBountyCategories ( ) : array
Résultat array

getName() public méthode

Returns the name of the badge
public getName ( ) : string
Résultat string

getNoBountyCategories() public méthode

Returns those categories that don't have bounties
public getNoBountyCategories ( ) : array
Résultat array

has() public méthode

Check whether the user already have this badge
public has ( Users $user ) : boolean
$user Phosphorum\Models\Users
Résultat boolean

Property Details

$fullNoBountyCategories protected_oe property

protected $fullNoBountyCategories

$noBountyCategories protected_oe property

protected $noBountyCategories