.

DigestNotificationsCommand Class Reference

Send a digest based upon settings. More...

Inheritance diagram for DigestNotificationsCommand:
CommandBase ICommand IAction ISerializable

List of all members.

Public Member Functions

  execute ()
  Aktually do something :).
  get_name ()
  Returns title of command.

Detailed Description

Send a digest based upon settings.

NOT transactional! Since Sending a Mail cannot be undone

Definition at line 7 of file digest.cmd.php.


Member Function Documentation

DigestNotificationsCommand::execute (  ) 

Aktually do something :).

Reimplemented from CommandBase.

Definition at line 18 of file digest.cmd.php.

00018                                   {
00019                 Load::models('notificationssettings');
00020                 $ret = new Status();
00021                 
00022                 $possible_digests = NotificationsSettings::create_possible_digest_adapter();
00023                 $possible_digests->find();
00024                 while($possible_digests->fetch()) {
00025                         // Calls notificationssettings/digest
00026                         $cmd = CommandsFactory::create_command(clone($possible_digests), 'digest', false);
00027                         $ret->merge($cmd->execute());
00028                 }
00029                 
00030                 return $ret;
00031         }
DigestNotificationsCommand::get_name (  ) 

Returns title of command.

Reimplemented from CommandBase.

Definition at line 11 of file digest.cmd.php.

00011                                    {
00012                 return 'digest';
00013         }

The documentation for this class was generated from the following file:
  • contributions/usermanagement.notifications/behaviour/commands/notifications/digest.cmd.php