• PHP reference
  • Models
  • Community

Users

class Models\Community\Users

Class Users.

Methods

__construct(Community $community)

Users constructor.

Parameters

boolean link(integer|User $user_id, boolean $as_manager = false, string|integer $source = null)

Link a user to this community.

Parameters

  • integer|User $user_id
  • boolean $as_manager
  • string|integer $source

Return Value

  • boolean

boolean unlink(integer|User $user_id)

Unlink a user from this community.

Parameters

  • integer|User $user_id

Return Value

  • boolean

User add(array $attributes = [])

Create a new user, by email and/or username.

Parameters

  • array $attributes

Return Value

Exceptions