Welcome Guest, Not a member yet? Register   Sign In
What is the best way to write "delete" functions in a model?
#4

[eluser]Jelmer[/eluser]
I do call them delete() and update(), but a little bit more logical might be delete_by_id($id) and update_by_id($id).

Other functions I name for their function, for example: remove_expired_autologins() which will remove all autologin keys in a login library that are too old.


Messages In This Thread
What is the best way to write "delete" functions in a model? - by El Forum - 09-07-2010, 04:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB