By way of introduction, I'm an experienced developer but new to both php and Moodle, so please forgive a rather basic question.
Currently developing a custom auth plugin and would like to create a separate class for some utility methods.
I've created /auth/org/classes/myclass.php:
class auth_plugin_org_myclass
{
function myfunction(){
function myfunction(){
return "foo";
}
}
Calling from /auth/org/auth.php:
$myc = new auth_plugin_org_myclass();
$bar = $myc->myfunction();
throws an exception "Exception - Class 'auth_plugin_lifesaving_myclass' not found"
Moodle caches have been purged (multiple times)
I can't help feeling that I'm missing something basic.