Welcome Guest, Not a member yet? Register   Sign In
return multiple values from a function
#11

[eluser]Colin Williams[/eluser]
I think I would approach it in sophistry's manner. I would simply set properties of the model object to hold the data you want, and you can write getters for these properties if you want. Take note that this is how a lot of core libraries function. This is for the reason's sophistry already explained.

For example, your model could have a last_result and a last_result_count property that you could access, instead of returning anything from the method.


Messages In This Thread
return multiple values from a function - by El Forum - 11-24-2008, 09:25 AM
return multiple values from a function - by El Forum - 11-24-2008, 09:28 AM
return multiple values from a function - by El Forum - 11-24-2008, 09:32 AM
return multiple values from a function - by El Forum - 11-24-2008, 10:31 AM
return multiple values from a function - by El Forum - 11-24-2008, 10:44 AM
return multiple values from a function - by El Forum - 11-24-2008, 10:53 AM
return multiple values from a function - by El Forum - 11-24-2008, 11:18 AM
return multiple values from a function - by El Forum - 11-24-2008, 01:18 PM
return multiple values from a function - by El Forum - 11-25-2008, 11:17 AM
return multiple values from a function - by El Forum - 11-25-2008, 11:20 AM
return multiple values from a function - by El Forum - 11-25-2008, 11:55 AM
return multiple values from a function - by El Forum - 11-25-2008, 03:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB