OPEN SOURCE SOCIAL NETWORK 6.6
|
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='') |
CountLikes | ( | $subject_id, | |
$type = 'post' |
|||
) |
Count likes
@params integer $subject_id Id of item which users liked @params string $type Subject type
deleteLikes | ( | $subject_id, | |
$type = 'post' |
|||
) |
Delte subject likes
@params integer $subject_id Id of item which users liked @params string $type Subject type
deleteLikesByOwnerGuid | ( | $owner_guid | ) |
Delete likes by user guid
@params integer $owner_guid Guid of user
GetLikes | ( | $subject_id, | |
$type = 'post' |
|||
) |
Get likes
@params integer $subject_id Id of item which users liked @params string $type Subject type
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
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
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