contributions/usermanagement.notifications/behaviour/commands/notifications/status.read.cmd.php
Go to the documentation of this file.00001 <?php 00002 Load::commands('generics/status.any'); 00003 00004 /** 00005 * Command to set status to read 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup Notifications 00009 */ 00010 class StatusReadNotificationsCommand extends StatusAnyCommand { 00011 /** 00012 * Change status 00013 * 00014 * @return Status 00015 */ 00016 protected function do_execute() { 00017 $ret = new Status(); 00018 Load::models('notifications'); 00019 $inst = $this->get_instance(); 00020 $inst->read_through = Notifications::READ_MARK_MANUALLY; 00021 $ret->merge(parent::do_execute()); 00022 return $ret; 00023 } 00024 }