PHP Class Phosphorum\Badges\BadgeBase

Inheritance: implements Phosphorum\Badges\BadgeInterface
Datei anzeigen Open project: phalcon/forum

Protected Properties

Property Type Description
$fullNoBountyCategories
$noBountyCategories

Public Methods

Method 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 method

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

getDescription() public method

Returns the description of the badge
public getDescription ( ) : string
return string

getFullNoBountyCategories() public method

Returns those categories that don't have bounties
public getFullNoBountyCategories ( ) : array
return array

getName() public method

Returns the name of the badge
public getName ( ) : string
return string

getNoBountyCategories() public method

Returns those categories that don't have bounties
public getNoBountyCategories ( ) : array
return array

has() public method

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

Property Details

$fullNoBountyCategories protected_oe property

protected $fullNoBountyCategories

$noBountyCategories protected_oe property

protected $noBountyCategories