Esempio 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)));
 }
Esempio 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)));
 }
Esempio 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))
 {
 }