PHP Class Flarum\Core\Permission

Inheritance: extends Flarum\Database\AbstractModel
显示文件 Open project: flarum/core Class Usage Examples

Protected Properties

Property Type Description
$table

Public Methods

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

Protected Methods

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

Method Details

group() public method

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

map() public static method

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

setKeysForSaveQuery() protected method

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

Property Details

$table protected_oe property

protected $table