In PHP validation can I reference $this->element?

I won't get into the details of why I'm doing this so long story short, is there a way to make reference to (for example) $this->element from an element's validation condition (php).
 
I've done some testing and I've found that I cannot use $this but I can get the element's data with '$data'. Is there an object I can reference to get the elements name?
 
We set up $elementModel for you. So $elementModel->getFullName(true, false) would do it, which will get you the name in full table___element format.

Or $this->elementModel->getFullname(true, false) would work as well, I think.

-- hugh
 
I tried this but it doesn't appear to be working. Is there an object I have to load prior to calling for elementModel? note in my debugging I found $this is empty as well.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top