|
| | add ($type, $poster_guid, $subject_guid, $item_guid=null, $notification_owner='') |
| |
| | notifyParticipant ($partcipate, $vars) |
| |
| | get ($guid_two='', $unread=false, $limit=false, $count=false) |
| |
| | countNotification ($guid) |
| |
| | getbyGUID ($guid='') |
| |
| | setViewed ($guid) |
| |
| | deleteUserNotifications ($user) |
| |
| | clearAll ($guid) |
| |
| | deleteNotification (array $params=array()) |
| |
| | searchNotifications (array $params=array()) |
| |
| | toTemplate () |
| |
| | __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 () |
| |
| | getGUID () |
| |
| | getID () |
| |
| | getParam ($param) |
| |
| | isParam ($param) |
| |
| | __call ($method, $args) |
| |
◆ add()
| add |
( |
|
$type, |
|
|
|
$poster_guid, |
|
|
|
$subject_guid, |
|
|
|
$item_guid = null, |
|
|
|
$notification_owner = '' |
|
) |
| |
Add notification to database
- Parameters
-
| integer | $subject_id | Id of item which user comment |
| integer | $poster_guid | Guid of item poster |
| integer | $item_guid, | Guid of item |
| integer | $notification_owner, | Guid of notification owner |
- Returns
- boolean;
◆ clearAll()
◆ countNotification()
| countNotification |
( |
|
$guid | ) |
|
Count user notification
- Parameters
-
| integer | $guid | count user notifications |
- Returns
- integer;
◆ deleteNotification()
| deleteNotification |
( |
array |
$params = array() | ) |
|
Delete a notifications
- Parameters
-
| array | $params | A wheres clause |
- Returns
- boolean
◆ deleteUserNotifications()
| deleteUserNotifications |
( |
|
$user | ) |
|
Delete user notifications
- Parameters
-
- Returns
- boolean;
◆ get()
| get |
( |
|
$guid_two = '', |
|
|
|
$unread = false, |
|
|
|
$limit = false, |
|
|
|
$count = false |
|
) |
| |
Get notifications
- Parameters
-
| integer | $guid_two | User guid |
| integer | $poster_guid | Guid of item poster; |
- Returns
- array
◆ getbyGUID()
Get notitication by guid
- Parameters
-
| integer | $guid | Notification guid |
- Returns
- object;
◆ notifyParticipant()
| notifyParticipant |
( |
|
$partcipate, |
|
|
|
$vars |
|
) |
| |
Add notification participant
- Parameters
-
| integer | $partcipate | User guid who you wanted to notify |
| array | $vars | Option values |
- Returns
- boolean
◆ searchNotifications()
| searchNotifications |
( |
array |
$params = array() | ) |
|
Search Notifcations
- Parameters
-
| array | $params | A valid options in format, |
| string | $params,['type'] | Notification type |
| string | $params,['owner_guid'] | Notification owner guid |
| string | $params,['poster_guid'] | Notification poster guid |
| string | $params,['subject_guid'] | Notifcation subject guid |
| string | $params,['item_created'] | Notifcation time_created |
| string | $params,['item_guid'] | Notifcation item guid |
| string | $params,['count'] | If you wanted to count then true |
| string | $params,['viewed'] | If viewed true, if not then false |
| string | $params,['guid'] | Notifcation guid |
| string | $params,['order_by'] | Order list , default ASC guid |
reutrn array|false;
◆ setViewed()
Mark notification as viewd
- Parameters
-
| integer | $guid | Notification guid |
- Returns
- object;
◆ toTemplate()
Make notifcation item to output view
- Returns
- string|false
The documentation for this class was generated from the following file:
- source/components/OssnNotifications/classes/OssnNotifications.php