Hi Mike!
Yes, you are right about my mistake in class name and about your implementation of the code
I am so happy to see that you are learning X-Cart 5 really well. Please, keep asking questions if there is a need to. I am happy to help you with it.
By the way, add me on Skype. My Skype ID is in the signature of any my email.
As for function/method terms, if you call a code only by its name like str_replace() or preg_match() than it is a function. If you call code by the name in relation to the object/class $this->getName(), myClass::someStaticMethod() than this is a method, not function.