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

Public Member Functions

 Like ($subject_id, $guid, $type='post', $reaction_type='like')
 
 isLiked ($subject_id, $guid, $type='post')
 
 UnLike ($subject_id, $guid, $type='post')
 
 deleteLikes ($subject_id, $type='post')
 
 deleteLikesByOwnerGuid ($owner_guid)
 
 CountLikes ($subject_id, $type='post')
 
 GetLikes ($subject_id, $type='post')
 
- 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)
 

Additional Inherited Members

- 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

◆ CountLikes()

CountLikes (   $subject_id,
  $type = 'post' 
)

Count likes

@params integer $subject_id Id of item which users liked @params string $type Subject type

Returns
bool;

◆ deleteLikes()

deleteLikes (   $subject_id,
  $type = 'post' 
)

Delte subject likes

@params integer $subject_id Id of item which users liked @params string $type Subject type

Returns
bool;

◆ deleteLikesByOwnerGuid()

deleteLikesByOwnerGuid (   $owner_guid)

Delete likes by user guid

@params integer $owner_guid Guid of user

Returns
bool;

◆ GetLikes()

GetLikes (   $subject_id,
  $type = 'post' 
)

Get likes

@params integer $subject_id Id of item which users liked @params string $type Subject type

Returns
bool;

◆ isLiked()

isLiked (   $subject_id,
  $guid,
  $type = 'post' 
)

Check if user liked item or not

@params integer $subject_id Id of item which users liked @params integer $guid Guid of user @params string $type Subject type

Returns
bool;

◆ Like()

Like (   $subject_id,
  $guid,
  $type = 'post',
  $reaction_type = 'like' 
)

Like item

@params integer $subject_id Id of item which users liked @params integer $guid Guid of user @params string $type Subject type

Returns
bool

◆ UnLike()

UnLike (   $subject_id,
  $guid,
  $type = 'post' 
)

Unlike item

@params integer $subject_id Id of item which users liked @params integer $guid Guid of user @params string $type Subject type

Returns
bool;

The documentation for this class was generated from the following file: