2011-01-18 13:55:19 -10:00
|
|
|
|
using System;
|
|
|
|
|
|
using umbraco.cms.businesslogic.macro;
|
2011-01-18 06:14:06 -10:00
|
|
|
|
using umbraco.interfaces;
|
|
|
|
|
|
|
|
|
|
|
|
namespace umbraco.MacroEngines {
|
|
|
|
|
|
|
2011-01-21 05:22:49 -10:00
|
|
|
|
public abstract class DynamicNodeContext : BaseContext<DynamicNode> {
|
2011-01-18 06:14:06 -10:00
|
|
|
|
|
2011-01-21 05:22:49 -10:00
|
|
|
|
public override void SetMembers(MacroModel macro, INode node) {
|
2011-01-18 13:55:19 -10:00
|
|
|
|
if (macro == null)
|
|
|
|
|
|
throw new ArgumentNullException("macro");
|
|
|
|
|
|
if (node == null)
|
|
|
|
|
|
throw new ArgumentNullException("node");
|
2011-01-21 05:22:49 -10:00
|
|
|
|
CurrentModel = new DynamicNode(node);
|
|
|
|
|
|
base.SetMembers(macro, node);
|
2011-01-18 06:14:06 -10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|