Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }