Beispiel #1
0
        //generate server php code
        public override string CreatePhpScript(StringCollection method)
        {
            string ce;

            if (_valuePointer != null)
            {
                if (DesignUtil.IsDataFieldPointer(_valuePointer))
                {
                    ce = _valuePointer.GetPhpScriptReferenceCode(method);
                }
                else if (this.CanBeWebServerValue())
                {
                    //a server value
                    ce = _valuePointer.GetPhpScriptReferenceCode(method);
                }
                else
                {
                    //a client value uploaded
                    ce = string.Format(System.Globalization.CultureInfo.InvariantCulture, "$this->jsonFromClient->values->{0}", DataPassingCodeName);
                }
            }
            else
            {
                ce = CodeName;
            }
            return(ce);
        }