PHP Class Xpressengine\User\Models\UserGroup

Author: XE Developers ([email protected])
Inheritance: extends Xpressengine\Database\Eloquent\DynamicModel, implements Xpressengine\User\GroupInterface
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Méthodes publiques

Свойство Type Description
$fillable
$incrementing

Protected Properties

Свойство Type Description
$connection
$dynamic use dynamic query
$table

Méthodes publiques

Méthode Description
addUser ( Xpressengine\User\UserInterface $user ) : static add User to this group
exceptUser ( Xpressengine\User\UserInterface $user ) : static except User
getCountAttribute ( ) : integer get user count
getUserCountAttribute ( ) : integer get user count
userCountRelation ( ) : mixed set relationship for user count
users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany set relationship with user groups

Method Details

addUser() public méthode

add User to this group
public addUser ( Xpressengine\User\UserInterface $user ) : static
$user Xpressengine\User\UserInterface user
Résultat static

exceptUser() public méthode

except User
public exceptUser ( Xpressengine\User\UserInterface $user ) : static
$user Xpressengine\User\UserInterface user
Résultat static

getCountAttribute() public méthode

get user count
Deprecation: use getUserCountAttribute instead
public getCountAttribute ( ) : integer
Résultat integer

getUserCountAttribute() public méthode

get user count
public getUserCountAttribute ( ) : integer
Résultat integer

userCountRelation() public méthode

set relationship for user count
public userCountRelation ( ) : mixed
Résultat mixed

users() public méthode

set relationship with user groups
public users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany

Property Details

$connection protected_oe property

protected $connection

$dynamic protected_oe property

use dynamic query
protected $dynamic

$fillable public_oe property

public $fillable

$incrementing public_oe property

public $incrementing

$table protected_oe property

protected $table