Changed methods created yesterday to internal so we can port to 6+ nicely.
This commit is contained in:
@@ -28,4 +28,5 @@ using System.Security;
|
||||
[assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]
|
||||
|
||||
[assembly: InternalsVisibleTo("Umbraco.Tests")]
|
||||
[assembly: InternalsVisibleTo("umbraco.MacroEngines")]
|
||||
[assembly: InternalsVisibleTo("umbraco.MacroEngines")]
|
||||
[assembly: InternalsVisibleTo("umbraco.webservices")]
|
||||
|
||||
@@ -602,7 +602,7 @@ namespace umbraco
|
||||
/// This means the node gets unpublished from the website.
|
||||
/// </summary>
|
||||
/// <param name="doc">The document</param>
|
||||
public virtual void ClearDocumentCache(Document doc)
|
||||
internal void ClearDocumentCache(Document doc)
|
||||
{
|
||||
var e = new DocumentCacheEventArgs();
|
||||
FireBeforeClearDocumentCache(doc, e);
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace umbraco
|
||||
/// marked unpublished by setting the publish property on the document object to false
|
||||
/// </summary>
|
||||
/// <param name="document">The Document to be unpublished</param>
|
||||
public static void UnPublishSingleNode(Document document)
|
||||
internal static void UnPublishSingleNode(Document document)
|
||||
{
|
||||
if (UmbracoSettings.UseDistributedCalls)
|
||||
dispatcher.Remove(
|
||||
@@ -232,7 +232,7 @@ namespace umbraco
|
||||
/// which means we have to re-look up the document in the db again when we already have it, this should save on a few
|
||||
/// dozen sql calls when publishing.
|
||||
/// </remarks>
|
||||
public static void UpdateDocumentCache(Document doc)
|
||||
internal static void UpdateDocumentCache(Document doc)
|
||||
{
|
||||
if (UmbracoSettings.UseDistributedCalls)
|
||||
dispatcher.Refresh(
|
||||
|
||||
@@ -1541,7 +1541,7 @@ where published = 1 And nodeId = @nodeId And trashed = 0", SqlHelper.CreateParam
|
||||
/// Returns all descendants that are published on the front-end (hava a full published path)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<Document> GetPublishedDescendants()
|
||||
internal IEnumerable<Document> GetPublishedDescendants()
|
||||
{
|
||||
var documents = new List<Document>();
|
||||
using (var dr = SqlHelper.ExecuteReader(
|
||||
|
||||
Reference in New Issue
Block a user