-
Notifications
You must be signed in to change notification settings - Fork 11
/
View.ascx.cs
49 lines (46 loc) · 1.4 KB
/
View.ascx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using DotNetNuke.Services.Exceptions;
using System;
using DotNetNuke.Entities.Controllers;
using DotNetNuke.Entities.Host;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Entities.Modules;
namespace Dnn.WebAnalytics
{
partial class View : ModuleBase, IActionable
{
public ModuleActionCollection ModuleActions
{
get
{
ModuleActionCollection Actions = new ModuleActionCollection();
if (IsEditable)
{
Actions.Add(GetNextActionID(), "Admin", ModuleActionType.AddContent, "", "", EditUrl("Admin"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
}
return Actions;
}
}
protected new void Page_Load(Object sender, EventArgs e)
{
try
{
base.Page_Load(sender, e);
}
catch (Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex);
}
}
protected string ApiUrlBase
{
get
{
if (DotNetNuke.Application.DotNetNukeContext.Current.Application.CurrentVersion.Major < 9)
{
return "/desktopmodules/Dnn.WebAnalytics/api";
}
return "/api/Dnn.WebAnalytics";
}
}
}
}