php - How to find out if class properties are private or public? -


this question has answer here:

after creating class private, protected, , public variables, how can find out private, protected, , public (from outside class)?

by way want know because want extract public model attributes set in /phalcon/mvc/model.

to clarify: not looking list of attributes, scope of every attribute.

get_class_vars() fit needs

it returns array of properties visible in current scope. in case should return public properties.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -