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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -