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

            this.LayoutControllerType = typeof( MsgController );
        }
Ejemplo n.º 4
0
 public UserService()
 {
     currencyService = new CurrencyService();
     roleService = new SiteRoleService();
     userIncomeService = new UserIncomeService();
     ntService = new NotificationService();
     hashTool = new HashTool();
 }
Ejemplo n.º 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 );
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 7
0
 public FriendService()
 {
     notificationService = new NotificationService();
     userService = new UserService();
 }
Ejemplo n.º 8
0
 public FeedService()
 {
     friendService = new FriendService();
     followerService = new FollowerService();
     nfService = new NotificationService();
 }
Ejemplo n.º 9
0
 public ShareService()
 {
     fs = new FriendService();
     feedService = new FeedService();
     nfService = new NotificationService();
 }
Ejemplo n.º 10
0
 public OpenCommentService()
 {
     nfService = new NotificationService();
 }
Ejemplo n.º 11
0
 public FeedbackService()
 {
     nfService = new NotificationService();
     microblogService = new MicroblogService();
 }
 public MicroblogCommentService()
 {
     nfService = new NotificationService();
 }
Ejemplo n.º 13
0
 public PageController()
 {
     pageService = new PageService();
     userService = new UserService();
     nfService = new NotificationService();
 }
Ejemplo n.º 14
0
 public FeedbackService()
 {
     feedService = new FeedService();
     nfService = new NotificationService();
 }