require_once 'path/to/MyClassName.class.php';
// send the class instance to a modx var if it hasn't been called already
if ( !isset($modx->myClass) )
{
$modx->myClass= new MyClassName;
}
$output = $modx->myClass->myMethodName($parameters);
$output .= $modx->myClass->myOtherMethodName($parameters);
return $output;