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

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

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

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -