Apologies if this is very obvious for experienced addon devs, but I'm experimenting with writing more bespoke plugins rather than gluing together other people's...
I know the official way to fetch parameters is one-by-one by name with
$this->EE->TMPL->fetch_param('key'), but I'm currently writing a plugin in which I'd like to iterate over my tag's parameters without having to define in advance what those parameters are in my plugin class.
I see that I can access the tag parameters array directly via
$this->EE->TMPL->tagparams, but is it safe to do so?
As far as I can see from reading the Template parser source,
fetch_param() just does a bit of tidying up to ensure tag params are uniformly formatted and returns false if a requested param is not set, neither of which are a concern in my use case. However, I want to be sure I'm not introducing unnecessary fragility (or indeed a vulnerability) into my plugin inadvertently.