- When you need methods for the iner logic of a script, but who is not intend to be trigger by user, then consider add a suffix
_
to your function name. Then this method will be filtered in the scripts output withpml -l script
. - Whe your script becomes too complicated, you should consider making a model/module.