|
How to make a type label differ from the class name |
Type labels are retrieved from the corresponding . 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 to the class name. The initPropertyDescriptors method on the peanut class is a good place to do that.
Example: $clsDesc =& PntClassDescriptor::getInstance('Employee'); $clsDesc->setLabel('Person');
This will set the type label of the class Employee to 'Person'.
|
|