public static PhpReference Unserialize(PHP.Core.Reflection.DTypeDesc caller, PhpBytes bytes) { if (bytes == null || bytes.Length == 0) { return(new PhpReference(false)); } LibraryConfiguration config = LibraryConfiguration.GetLocal(ScriptContext.CurrentContext); return(config.Serialization.DefaultSerializer.Deserialize(bytes, caller)); }
protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields) { if (IsAssociated) { return(new DOMEntity(XmlEntity)); } else { return(new DOMEntity()); } }
protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields) { if (IsAssociated) { return(new DOMDocumentType(XmlDocumentType)); } else { return(new DOMDocumentType(this._qualifiedName, this._publicId, this._systemId)); } }
protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields) { if (IsAssociated) { return(new DOMText(XmlText)); } else { return(CreateDOMText(_value)); } }
protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields) { if (IsAssociated) { return(new DOMComment(XmlComment)); } else { DOMComment copy = new DOMComment(); copy.__construct(this._value); return(copy); } }
public static bool IsCallable(PHP.Core.Reflection.DTypeDesc caller, object variable, bool syntaxOnly, out string callableName) { PhpCallback callback = PHP.Core.Convert.ObjectToCallback(variable, true); if (callback == null || callback.IsInvalid) { callableName = PHP.Core.Convert.ObjectToString(variable); return(false); } callableName = ((IPhpConvertible)callback).ToString(); return(syntaxOnly ? true : callback.Bind(true, caller, null)); }
protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields) { if (IsAssociated) { return(new DOMEntityReference(XmlEntityReference)); } else { DOMEntityReference copy = new DOMEntityReference(); copy.__construct(this._name); return(copy); } }
protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields) { return(new DOMCharacterData()); }
public PDO(ScriptContext /*!*/ context, PHP.Core.Reflection.DTypeDesc caller) : base(context, caller) { }
public static PhpBytes Serialize(PHP.Core.Reflection.DTypeDesc caller, object variable) { LibraryConfiguration config = LibraryConfiguration.GetLocal(ScriptContext.CurrentContext); return(config.Serialization.DefaultSerializer.Serialize(variable, caller)); }
public static bool IsCallable(PHP.Core.Reflection.DTypeDesc caller, object variable, bool syntaxOnly) { return(Operators.IsCallable(variable, caller, syntaxOnly)); }
public static bool IsCallable(PHP.Core.Reflection.DTypeDesc caller, object variable) { return(IsCallable(caller, variable, false)); }
protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields) { return(new DOMDocumentFragment(XmlDocumentFragment)); }