Beispiel #1
0
 public static void CreatePhpScript(IProperty SetProperty, string v, StringCollection sb, StringCollection parameters)
 {
     if (DesignUtil.IsSessionVariable(SetProperty))
     {
         string code = string.Format(CultureInfo.InvariantCulture, "$this->WebAppPhp->SetSessionVariable('{0}',{1});\r\n", SetProperty.Name, v);
         sb.Add(code);
     }
     else
     {
         string left = SetProperty.GetPhpScriptReferenceCode(sb);
         string code = string.Format(CultureInfo.InvariantCulture, "{0}={1};\r\n", left, v);
         sb.Add(code);
     }
 }