gyro/core/behaviour/commands/generics/triggerevent.cmd.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Command to trigger an event on the EventSource class 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Behaviour 00007 */ 00008 class TriggerEventCommand extends CommandBase { 00009 public function can_execute($user) { 00010 return true; 00011 } 00012 00013 public function execute() { 00014 return EventSource::Instance()->invoke_event_no_result($this->get_instance(), $this->get_params()); 00015 } 00016 } 00017 00018 ?>