NotifyUsersCommand Class Reference
Send a notification to user. More...
Inheritance diagram for
NotifyUsersCommand:
Public Member Functions |
|
get_name () | |
Returns title of command. |
|
Protected Member Functions |
|
do_execute () | |
Aktually do something :). |
Detailed Description
Send a notification to user.
Definition at line 5 of file notify.cmd.php.
Member Function Documentation
NotifyUsersCommand::do_execute | ( | ) | [protected] |
Aktually do something :).
Reimplemented from CommandTransactional.
Definition at line 16 of file notify.cmd.php.
00016 { 00017 $ret = new Status(); 00018 00019 Load::models('notifications', 'notificationsexceptions'); 00020 $user = $this->get_instance(); 00021 $params = $this->get_params(); 00022 $created = false; 00023 if (!NotificationsExceptions::excluded($user->id, Arr::get_item($params, 'source', ''), Arr::get_item($params, 'source_id', ''))) { 00024 $ret->merge(Notifications::create($user, $params, $created)); 00025 } 00026 return $ret; 00027 }
NotifyUsersCommand::get_name | ( | ) |
Returns title of command.
Reimplemented from CommandBase.
Definition at line 9 of file notify.cmd.php.
The documentation for this class was generated from the following file:
- contributions/usermanagement.notifications/behaviour/commands/users/notify.cmd.php