.

TriggerEventCommand Class Reference
[Behaviour]

Command to trigger an event on the EventSource class. More...

Inheritance diagram for TriggerEventCommand:
CommandBase ICommand IAction ISerializable

List of all members.

Public Member Functions

  can_execute ($user)
  Returns TRUE, if the command can be executed by given user.
  execute ()
  Executes commands.

Detailed Description

Command to trigger an event on the EventSource class.

Author:
Gerd Riesselmann

Definition at line 8 of file triggerevent.cmd.php.


Member Function Documentation

TriggerEventCommand::can_execute ( user  ) 

Returns TRUE, if the command can be executed by given user.

Reimplemented from CommandBase.

Definition at line 9 of file triggerevent.cmd.php.

00009                                            {
00010                 return true;
00011         }
TriggerEventCommand::execute (  ) 

Executes commands.

Returns:
Status

Reimplemented from CommandBase.

Definition at line 13 of file triggerevent.cmd.php.

00013                                   {
00014                 return EventSource::Instance()->invoke_event_no_result($this->get_instance(), $this->get_params());
00015         }       

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