function getType()
    {
        if($this->_type) {
            return $this->_type;
        }
        else {
            $myclass = get_class($this);
            return strtolower(substr($myclass, strrpos($myclass, '\\') + 1, -5));
        }
    }
function getType()
    {
        if($this->_type) {
            return $this->_type;
        }
        else {
            $myclass = get_class($this);
            return strtolower(substr($myclass, strrpos($myclass, '\\') + 1, -5));
        }
    }
function getType ( ) { if ( $ this -> _type ) { return $ this -> _type ; } else { $ myclass = get_class ( $ this ) ; return strtolower ( substr ( $ myclass , strrpos ( $ myclass , '\\' ) + 1 , - 5 ) ) ; } }
This essentially returns the field's class name without the "Field" part.
This essentially returns the field s class name without the Field part .