예제 #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();
 }
예제 #5
0
        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();
 }