00001 #include "singlecontext.h" 00002 00003 SingleContext::SingleContext(RuleContext* isuperContext) : RuleContext(isuperContext->rules, isuperContext->nameSpace), superContext(isuperContext){}; 00004 00005 SingleContext::SingleContext(RuleList &iruleList, RuleContext* isuperContext) : 00006 RuleContext(iruleList, isuperContext->nameSpace), superContext(isuperContext){}; 00007 00008 void SingleContext::generateVariableNames(const Node::VariableList &vlist, Node::Assignment &phpAssign, Node::Assignment &tplAssign){ 00009 superContext->generateVariableNames(vlist,phpAssign,tplAssign); 00010 }; 00011 00012 const string SingleContext::getVariableNamePrefix(){ 00013 return superContext->getVariableNamePrefix(); 00014 }; 00015 00016 const string SingleContext::getVariableNameSufix(const bool stripControlVariableDollar){ 00017 return superContext->getVariableNameSufix(stripControlVariableDollar); 00018 }; 00019 00020 const string SingleContext::generateVariableName(){ 00021 return superContext->generateVariableName(); 00022 }; 00023 00024 void SingleContext::registerSmartyVariable(const string &variable){ 00025 superContext->registerSmartyVariable(variable); 00026 }; 00027 00028 void SingleContext::processSmartyAssign(SmartyAssign *smartyAssign){ 00029 superContext->processSmartyAssign(smartyAssign); 00030 }; 00031 00032 void SingleContext::processTemplate(Node* tpl) const { 00033 superContext->processTemplate(tpl); 00034 }; 00035