コード例 #1
0
 static function comment_updated($original, $new)
 {
     try {
         if ($new->state == "published" && $original->state != "published") {
             notification::send_comment_published($new);
         }
     } catch (Exception $e) {
         Kohana_Log::add("error", "@todo notification_event::comment_updated() failed");
         Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
     }
 }
コード例 #2
0
 static function comment_updated($item)
 {
     if ($item->state == "published" && $item->original("state") != "published") {
         notification::send_comment_published($new);
     }
 }
コード例 #3
0
 static function comment_updated($original, $new)
 {
     if ($new->state == "published" && $original->state != "published") {
         notification::send_comment_published($new);
     }
 }