attributeLabels inheritance

How I can get attributeLabels from other class?

For example, I have similar class: . And in my User class I have [size="2"]attributeLabels[/size][size="2"] method with [/size]overridden labels. I want see new labels in my form (it using SignupForm class, not User class).

[size="1"]wrong topic[/size]

It’s impossible?

You can’t get it from class but you can get it from object:

$post = new Post();

$labels = $post->attributeLabels();