public virtual PhpArray getProperties(int filter) { var result = new PhpArray(8); foreach (var p in _tinfo.GetDeclaredProperties()) { var pinfo = new ReflectionProperty(p); if (filter == 0 || ((int)pinfo.getModifiers() | filter) != 0) { result.Add(PhpValue.FromClass(pinfo)); } } return(result); }
public override PhpArray getProperties(int filter) { var result = new PhpArray(8); foreach (var p in _tinfo.GetDeclaredProperties().Concat(_tinfo.GetRuntimeProperties(_instance))) { var pinfo = new ReflectionProperty(p); if (filter == 0 || ((int)pinfo.getModifiers() | filter) != 0) { result.Add(PhpValue.FromClass(pinfo)); } } return(result); }