PHP Class Flarum\Core\Permission

Inheritance: extends Flarum\Database\AbstractModel
Afficher le fichier Open project: flarum/core Class Usage Examples

Protected Properties

Свойство Type Description
$table

Méthodes publiques

Méthode Description
group ( ) : BelongsTo Define the relationship with the group that this permission is for.
map ( ) : array[] Get a map of permissions to the group IDs that have them.

Méthodes protégées

Méthode Description
setKeysForSaveQuery ( Builder $query ) : Builder Set the keys for a save update query.

Method Details

group() public méthode

Define the relationship with the group that this permission is for.
public group ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

map() public static méthode

Get a map of permissions to the group IDs that have them.
public static map ( ) : array[]
Résultat array[]

setKeysForSaveQuery() protected méthode

Set the keys for a save update query.
protected setKeysForSaveQuery ( Builder $query ) : Builder
$query Illuminate\Database\Eloquent\Builder
Résultat Illuminate\Database\Eloquent\Builder

Property Details

$table protected_oe property

protected $table