Exemplo n.º 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)));
 }
Exemplo n.º 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)));
 }
Exemplo n.º 3
0
 /// <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))
 {
 }