◆ addBlock()
Add new user to block.
@params $from Guid of user, who is blocking $to Guid of user which is going to be blocked
- Returns
- boolean @access public
◆ getBlocking()
Get list of all blocked users
- Returns
- object|boolean
◆ isBlocked()
static isBlocked |
( |
|
$usera, |
|
|
|
$userb |
|
) |
| |
|
static |
Check if loggedin user is blocked by $user.
- Parameters
-
object | $usera | From object |
object | $userb | To object |
- Returns
- boolean @access public
◆ removeBlock()
removeBlock |
( |
|
$from, |
|
|
|
$to |
|
) |
| |
Remove user block
- Parameters
-
int | $from | guid of user, who blocked other |
int | $to | guid of user which is going to be unblocked |
- Returns
- boolean @access public
◆ selfBlocked()
static selfBlocked |
( |
|
$user | ) |
|
|
static |
Check if loggedin user is block UserB.
- Parameters
-
- Returns
- boolean @access public
◆ UserBlockCheck()
static UserBlockCheck |
( |
|
$user | ) |
|
|
static |
Check if loggedin user is blocked by $user.
@params $user entity of user a
- Returns
- boolean @access public
The documentation for this class was generated from the following file:
- source/components/OssnBlock/classes/OssnBlock.php