示例#1
0
 public AdminController() {
     sectionService = new ContentSectionService();
     postService = new ContentPostService();
     tempPostService = new ContentTempPostService();
     ntService = new NotificationService();
     msgService = new MessageService();
 }
示例#2
0
 public MicroblogService()
 {
     feedService = new FeedService();
     nfService = new NotificationService();
     friendService = new FriendService();
     followerService = new FollowerService();
 }
示例#3
0
        public NotificationController()
        {
            notificationService = new NotificationService();
            friendService = new FriendService();

            this.LayoutControllerType = typeof( MsgController );
        }
示例#4
0
 public UserService()
 {
     currencyService = new CurrencyService();
     roleService = new SiteRoleService();
     userIncomeService = new UserIncomeService();
     ntService = new NotificationService();
     hashTool = new HashTool();
 }
        private string getSiteNotification() {

            if (ctx.viewer.obj.Id != SiteRole.Administrator.Id) return "";

            int newCount = new NotificationService().GetUnReadCount( Site.Instance.Id, typeof( Site ).FullName );
            if (newCount <= 0) return "";

            User user = (User)ctx.viewer.obj;

            String lnk = Link.To( user, new Users.Admin.SiteNfController().List );
            return string.Format( "<a href=\"{0}\">通知(<span id=\"siteNotificationText\">{1}</span>)</a>", lnk, newCount );
        }
示例#6
0
        public ForumPostService()
        {
            forumService = new ForumService();
            categoryService = new ForumCategoryService();
            boardService = new ForumBoardService();
            topicService = new ForumTopicService();
            userService = new UserService();
            forumLogService = new ForumLogService();
            rateService = new ForumRateService();
            attachmentService = new AttachmentService();
            msgService = new MessageService();

            incomeService = new UserIncomeService();

            notificationService = new NotificationService();
            microblogService = new MicroblogService();
        }
示例#7
0
 public FriendService()
 {
     notificationService = new NotificationService();
     userService = new UserService();
 }
示例#8
0
 public FeedService()
 {
     friendService = new FriendService();
     followerService = new FollowerService();
     nfService = new NotificationService();
 }
示例#9
0
 public ShareService()
 {
     fs = new FriendService();
     feedService = new FeedService();
     nfService = new NotificationService();
 }
示例#10
0
 public OpenCommentService()
 {
     nfService = new NotificationService();
 }
示例#11
0
 public FeedbackService()
 {
     nfService = new NotificationService();
     microblogService = new MicroblogService();
 }
 public MicroblogCommentService()
 {
     nfService = new NotificationService();
 }
示例#13
0
 public PageController()
 {
     pageService = new PageService();
     userService = new UserService();
     nfService = new NotificationService();
 }
示例#14
0
 public FeedbackService()
 {
     feedService = new FeedService();
     nfService = new NotificationService();
 }