Méthode | Description | |
---|---|---|
Add ( Models item ) : void | ||
All ( ) : IEnumerable |
||
All ( Models site ) : IEnumerable |
||
ByHtmlBlock ( Kooboo.CMS.Sites.Models.HtmlBlock htmlBlock ) : IEnumerable |
||
ByLayout ( Models layout ) : IEnumerable |
||
ByModule ( Models site, string moduleName ) : IEnumerable |
||
ByView ( Models view ) : IEnumerable |
||
ChildPages ( Models parentPage ) : IEnumerable |
||
Clear ( Kooboo.CMS.Sites.Models.Site site ) : void | ||
Copy ( Models site, string sourcePageFullName, string newPageFullName ) : Models.Page | ||
Export ( Kooboo.CMS.Sites.Models.Site site, IEnumerable |
||
ExportToDisk ( Models site ) : void | ||
Get ( Models dummy ) : Models.Page | ||
GetDraft ( Models page ) : Models.Page | ||
Import ( Models site, Kooboo.CMS.Sites.Models.Page parent, System zipStream, bool @override ) : void | ||
InitializeToDB ( Models site ) : void | ||
Localize ( Models o, Models targetSite ) : void | ||
Move ( Models site, string pageFullName, string newParent ) : void | ||
Remove ( Models item ) : void | ||
RemoveDraft ( Models page ) : void | ||
SaveAsDraft ( Models page ) : void | ||
Update ( Models @new, Models old ) : void |
Méthode | Description | |
---|---|---|
AllPagesNested ( Kooboo.CMS.Sites.Models.Site site ) : IEnumerable |
||
ClearCache ( ) : void | ||
ExportAsFileCascading ( IPageProvider filePageProvider, Kooboo.CMS.Sites.Models.Page page ) : void | ||
ExportPageCascading ( IPageProvider filePageProvider, Kooboo.CMS.Sites.Models.Page page ) : void | ||
GetCachedPageList ( ) : List |
为什么要缓存Page表呢? 1. 因为在实际使用过程中发现,如果页面数量相对比较多的时候,第一次查找页面的过程中会调用很多次ChildPages,导致请求的效率很低,时间花费很高。 2. 目前的设计已经是假设页面数量不多的前提了。所以缓该表的数据量是可以接受的。
|
|
GetPage ( Kooboo.CMS.Sites.Models.Site site, Kooboo.CMS.Sites.Models.Page parent, string pageName ) : Kooboo.CMS.Sites.Models.Page | ||
InitializePageCascading ( IPageProvider filePageProvider, Kooboo.CMS.Sites.Models.Page page ) : void | ||
InsertOrUpdate ( Models @new, Models old ) : void | ||
LocalizeWithChildPages ( SiteDbContext dbContext, Kooboo.CMS.Sites.Models.Page page, Kooboo.CMS.Sites.Models.Site targetSite ) : void | ||
MovePageRecursively ( Models site, string pageFullName, string newParent, SiteDbContext dbContext ) : void | ||
PageProvider ( ) : System | ||
QueryBySite ( Kooboo.CMS.Sites.Models.Site site ) : IEnumerable |
||
RemovePageWithChildPages ( SiteDbContext dbContext, PageEntity entity ) : void |
public ByHtmlBlock ( Kooboo.CMS.Sites.Models.HtmlBlock htmlBlock ) : IEnumerable |
||
htmlBlock | Kooboo.CMS.Sites.Models.HtmlBlock | |
Résultat | IEnumerable |
public ByLayout ( Models layout ) : IEnumerable |
||
layout | Models | |
Résultat | IEnumerable |
public ByModule ( Models site, string moduleName ) : IEnumerable |
||
site | Models | |
moduleName | string | |
Résultat | IEnumerable |
public ByView ( Models view ) : IEnumerable |
||
view | Models | |
Résultat | IEnumerable |
public ChildPages ( Models parentPage ) : IEnumerable |
||
parentPage | Models | |
Résultat | IEnumerable |
public Clear ( Kooboo.CMS.Sites.Models.Site site ) : void | ||
site | Kooboo.CMS.Sites.Models.Site | |
Résultat | void |
public Copy ( Models site, string sourcePageFullName, string newPageFullName ) : Models.Page | ||
site | Models | |
sourcePageFullName | string | |
newPageFullName | string | |
Résultat | Models.Page |
public Export ( Kooboo.CMS.Sites.Models.Site site, IEnumerable |
||
site | Kooboo.CMS.Sites.Models.Site | |
sources | IEnumerable |
|
outputStream | System | |
Résultat | void |
public GetDraft ( Models page ) : Models.Page | ||
page | Models | |
Résultat | Models.Page |
public Import ( Models site, Kooboo.CMS.Sites.Models.Page parent, System zipStream, bool @override ) : void | ||
site | Models | |
parent | Kooboo.CMS.Sites.Models.Page | |
zipStream | System | |
@override | bool | |
Résultat | void |
public InitializeToDB ( Models site ) : void | ||
site | Models | |
Résultat | void |
public Localize ( Models o, Models targetSite ) : void | ||
o | Models | |
targetSite | Models | |
Résultat | void |
public Move ( Models site, string pageFullName, string newParent ) : void | ||
site | Models | |
pageFullName | string | |
newParent | string | |
Résultat | void |
public Update ( Models @new, Models old ) : void | ||
@new | Models | |
old | Models | |
Résultat | void |