zend resources vs object properties

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
witheredOldMale
Forum Newbie
Posts: 5
Joined: Wed Apr 22, 2009 1:49 pm

zend resources vs object properties

Post by witheredOldMale »

If only a known number and types of member variables need to be stored in a php object, can they be be declared as object properties with get and set functions, instead of as resources? In our php extension code everywhere objects are registered as resources but there is a need them as expose public members so I’m thinking of making them properties instead of resources. Isn’t that the right approach?

Thanks
witheredOldMale
Post Reply