PHP Class Phosphorum\Badges\Badge\GoodQuestion

Awarded one time per every question with more than 5 positive votes
Inheritance: extends Phosphorum\Badges\BadgeBase
Datei anzeigen Open project: phalcon/forum

Protected Properties

Property Type Description
$description
$name

Public Methods

Method Description
add ( Users $user, array $extra = null ) Add the badge to the user
canHave ( Users $user ) : boolean Check whether the user can have the badge
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

canHave() public method

Check whether the user can have the badge
public canHave ( Users $user ) : boolean
$user Phosphorum\Models\Users
return boolean

has() public method

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

Property Details

$description protected_oe property

protected $description

$name protected_oe property

protected $name