private bool Create() { int newID = -1; if (this.pageGuid == Guid.Empty) { this.pageGuid = Guid.NewGuid(); } newID = DBPageSettings.Create( this.siteID, this.parentID, this.pageName, this.pageTitle, this.skin, this.pageOrder, this.authorizedRoles, this.editRoles, this.draftEditOnlyRoles, this.createChildPageRoles, this.createChildDraftRoles, this.requireSSL, this.allowBrowserCache, this.showBreadcrumbs, this.showChildPageBreadcrumbs, this.pageMetaKeyWords, this.pageMetaDescription, this.pageMetaEncoding, this.pageMetaAdditional, this.useUrl, this.url, this.openInNewWindow, this.showChildPageMenu, this.hideMainMenu, this.includeInMenu, this.menuImage, this.changeFrequency.ToString(), this.siteMapPriority, this.pageGuid, this.parentGuid, this.hideAfterLogin, this.siteGuid, this.compiledMeta, this.compiledMetaUtc, this.includeInSiteMap, this.isClickable, this.showHomeCrumb, this.isPending, this.canonicalOverride, this.includeInSearchMap, this.enableComments); this.pageID = newID; bool result = (newID > -1); if (result) { PageCreatedEventArgs e = new PageCreatedEventArgs(); OnPageCreated(e); } return(result); }
private bool Create() { int newID = -1; if (this.PageGuid == Guid.Empty) { this.PageGuid = Guid.NewGuid(); } newID = DBPageSettings.Create( this.SiteId, this.ParentId, this.PageName, this.PageTitle, this.Skin, this.PageOrder, this.AuthorizedRoles, this.EditRoles, this.DraftEditOnlyRoles, this.DraftApprovalRoles, this.CreateChildPageRoles, this.CreateChildDraftRoles, this.RequireSsl, this.AllowBrowserCache, this.ShowBreadcrumbs, this.ShowChildPageBreadcrumbs, this.PageMetaKeyWords, this.PageMetaDescription, this.PageMetaEncoding, this.PageMetaAdditional, this.UseUrl, this.Url, this.OpenInNewWindow, this.ShowChildPageMenu, this.HideMainMenu, this.IncludeInMenu, this.MenuImage, this.ChangeFrequency.ToString(), this.SiteMapPriority, this.PageGuid, this.ParentGuid, this.HideAfterLogin, this.SiteGuid, this.CompiledMeta, this.CompiledMetaUtc, this.IncludeInSiteMap, this.IsClickable, this.ShowHomeCrumb, this.IsPending, this.CanonicalOverride, this.IncludeInSearchMap, this.EnableComments, this.IncludeInChildSiteMap, this.ExpandOnSiteMap, this.PubTeamId, this.BodyCssClass, this.MenuCssClass, this.PublishMode, this.CreatedBy, this.CreatedFromIp, this.MenuDescription, this.LinkRel, this.PageHeading, this.ShowPageHeading, this.PubDateUtc); this.PageId = newID; bool result = (newID > -1); if (result) { PageCreatedEventArgs e = new PageCreatedEventArgs(); OnPageCreated(e); } return(result); }