Quick search:

How to make a type label differ from the class name

Type labels are retrieved from the corresponding classDescriptor. You can set them by getting a reference to the classDescriptor and then call its method setLabel. If there is no type label set, it defaults to the class name. The initPropertyDescriptors method on the peanut class is a good place to do that.

$clsDesc =& PntClassDescriptor::getInstance('Employee');

This will set the type label of the class Employee to 'Person'.