I'm tired of typing $this->countModules('...')
. Is there a way to make alias to that function, something similar as in JavaScript when I just do var alias = myFunction
?
I have tried assigning $this
to a global variable, and than use wrapper function and I have tried use $this->countModules as m
but none of that works.
Thanks!