OPEN SOURCE SOCIAL NETWORK 6.6
Loading...
Searching...
No Matches
OssnBlock Class Reference
Inheritance diagram for OssnBlock:
OssnEntities OssnDatabase OssnBase OssnSession

Public Member Functions

 addBlock ($from, $to)
 
 removeBlock ($from, $to)
 
- Public Member Functions inherited from OssnEntities
 add ()
 
 get_entity ()
 
 save ()
 
 get_entities ()
 
 AddedEntityGuid ()
 
 updateEntity ()
 
 deleteByOwnerGuid ($guid, $type)
 
 deleteEntity ($guid='')
 
 searchEntities (array $params=array())
 
 canChange ($user='')
 
 destruct ()
 
- Public Member Functions inherited from OssnDatabase
 __construct ()
 
 Connect ()
 
 insert ($params)
 
 statement ($query)
 
 execute ($values=array())
 
 update ($params=array())
 
 select ($params, $multi='')
 
 fetch ($data=false)
 
 delete ($params)
 
 getLastEntry ()
 
 constructWheres (array $array, $operator="AND")
 
 generateLimit ($data_limit=false, $page_limit=false, $offset=false)
 
 clearVars ()
 
 __destruct ()
 
- Public Member Functions inherited from OssnBase
 getGUID ()
 
 getID ()
 
 getParam ($param)
 
 isParam ($param)
 
 __call ($method, $args)
 

Static Public Member Functions

static UserBlockCheck ($user)
 
static selfBlocked ($user)
 
static isBlocked ($usera, $userb)
 
static getBlocking ()
 
- Static Public Member Functions inherited from OssnSession
static start ()
 
static assign ($name='', $value='')
 
static unassign ($name='')
 
static isSession ($name='')
 
static getSession ($name='')
 

Member Function Documentation

◆ addBlock()

addBlock (   $from,
  $to 
)

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()

static getBlocking ( )
static

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$useraFrom object
object$userbTo object
Returns
boolean @access public

◆ removeBlock()

removeBlock (   $from,
  $to 
)

Remove user block

Parameters
int$fromguid of user, who blocked other
int$toguid 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
$userentity of user B
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: