type) { case Notifications::typePointConfirmed: print strftime('%d %b %H:%M', $notification->date).' — Ваша точка "'.$notification->RefPoint->name.'" прошла модерацию.'; break; case Notifications::typeNewCommentPoint: $comment = $notification->RefComment; $point = Point::model()->getByPK($comment->parentId); print strftime('%d %b %H:%M', $notification->date).' — Новый комментарий к точке "'.$point->name.'".'; break; case Notifications::typeNewCommentArticle: $comment = $notification->RefComment; $article = Article::model()->getByPK($comment->parentId); print strftime('%d %b %H:%M', $notification->date).' — Новый комментарий к статье "'.$article->title.'".'; break; default: break; }