Changed methods created yesterday to internal so we can port to 6+ nicely.

This commit is contained in:
Shannon Deminick
2013-01-30 18:58:42 +06:00
parent d5bde0d8df
commit 97556de447
4 changed files with 6 additions and 5 deletions

View File

@@ -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")]

View File

@@ -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);

View File

@@ -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(

View File

@@ -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(