public override void CreatePhpScript(StringCollection sb, StringCollection parameters, string returnReceiver) { if (_returnReceiver != null) { if (_returnReceiver.BaseClassType.GetInterface("IPhpType") != null) { IPhpType php = Activator.CreateInstance(_returnReceiver.BaseClassType) as IPhpType; string v = php.GetMethodRef(_returnReceiver.CodeName, ".ctor", sb, parameters); sb.Add(_returnReceiver.CodeName); sb.Add("="); sb.Add(v); sb.Add(";\r\n"); } } }
public void CreateActionPhpScript(string methodName, StringCollection code, StringCollection parameters, string returnReceiver) { if (ClassType != null && _type.BaseClassType.GetInterface("IPhpType") != null) { IPhpType php = Activator.CreateInstance(_type.BaseClassType) as IPhpType; string v = php.GetMethodRef(this.CodeName, methodName, code, parameters); if (string.IsNullOrEmpty(returnReceiver)) { } else { code.Add(returnReceiver); code.Add("="); } code.Add(v); code.Add(";\r\n"); } }