Example #1
0
 public static function execut_notice($foreign_table, $foreign_id, $type_key, $member_id_from, $notice_member_ids)
 {
     if (!$notice_member_ids) {
         return;
     }
     $obj_notice = Model_Notice::check_and_create($foreign_table, $foreign_id, Site_Util::get_notice_type($type_key));
     Model_NoticeMemberFrom::check_and_create($obj_notice->id, $member_id_from);
     foreach ($notice_member_ids as $notice_member_id) {
         Site_Util::update_notice_status2unread($notice_member_id, $obj_notice->id);
     }
 }