Question
Nesting Objects
I am looking for advice on how to nest objected created from
cfcs...
The place I have seen this sdone is in the fusebox framwork in the following:
#myFusebox.getCurrentCircuit().getAlias()#
What I would like to do is create an object called called users from a users.cfc with methods such as listUsers() and findUser(userID)...
Ex. #users.findUser(34)#
Then from there I want to next another object (object might not be the correct term) or set of functions that deal with the user specified such as getName() and getEmail()...
Ex. #users.findUser(34).getName()#
Ex. #users.findUser(34).getEmail()#
Can someone explain to me how this can be done? Thanks!
The place I have seen this sdone is in the fusebox framwork in the following:
#myFusebox.getCurrentCircuit().getAlias()#
What I would like to do is create an object called called users from a users.cfc with methods such as listUsers() and findUser(userID)...
Ex. #users.findUser(34)#
Then from there I want to next another object (object might not be the correct term) or set of functions that deal with the user specified such as getName() and getEmail()...
Ex. #users.findUser(34).getName()#
Ex. #users.findUser(34).getEmail()#
Can someone explain to me how this can be done? Thanks!