コード例 #1
0
 /// <summary>
 /// Gets the folder.
 /// </summary>
 /// <param name="content">The content.</param>
 /// <returns></returns>
 public static TextFolder GetFolder(this TextContent content)
 {
     return(new TextFolder(content.GetRepository(), FolderHelper.SplitFullName(content.FolderName)));
 }
コード例 #2
0
 /// <summary>
 /// Gets the folder.
 /// </summary>
 /// <param name="content">The content.</param>
 /// <returns></returns>
 public static MediaFolder GetFolder(this MediaContent content)
 {
     return(new MediaFolder(content.GetRepository(), FolderHelper.SplitFullName(content.FolderName)));
 }
コード例 #3
0
ファイル: Folder.cs プロジェクト: nguyenhuy2911/CMS
 /// <summary>
 /// Initializes a new instance of the <see cref="Folder"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="fullName">The full name.</param>
 public Folder(Repository repository, string fullName) :
     this(repository, FolderHelper.SplitFullName(fullName))
 {
 }