예제 #1
0
 /// <summary>
 /// Returns true if content item is deleted and currently contained in the recycle bin.
 /// </summary>
 /// <param name="contentItem">Content item</param>
 public static bool IsInRecycleBin(DocumentTypeBase contentItem)
 {
     return(contentItem.Path.Contains(string.Format(",{0},", Constants.UmbracoRecycleBinId)));
 }
예제 #2
0
 internal static object GetPropertyValue(DocumentTypeBase entity, PropertyInfo propInfo,
                                         DocumentTypePropertyAttribute propAttr)
 {
     return(GetPropertyValue(entity.Source, propInfo, propAttr));
 }
예제 #3
0
 /// <summary>
 /// Updates or adds the content item using current user. If content item already exists, it updates it.
 /// If content item doesn't exists, it creates new content item.
 /// NOTE: Set the ParentId property of this item.
 /// </summary>
 /// <param name="contentItem">Content item to update/add</param>
 public static void Save(DocumentTypeBase contentItem)
 {
     Save(contentItem, true);
 }
예제 #4
0
 internal static object GetPropertyValue(DocumentTypeBase entity, PropertyInfo propInfo)
 {
     return(GetPropertyValue(entity, propInfo, null));
 }