예제 #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))
 {
 }