private function get_real_class($obj) {
        $classname = get_class($obj);

        if (preg_match('@\\\\([\w]+)$@', $classname, $matches)) {
            $classname = $matches[1];
        }

        return $classname;
    }
private function get_real_class($obj) {
        $classname = get_class($obj);

        if (preg_match('@\\\\([\w]+)$@', $classname, $matches)) {
            $classname = $matches[1];
        }

        return $classname;
    }
private function get_real_class ( $ obj ) { $ classname = get_class ( $ obj ) ; if ( preg_match ( '@\\\\([\w]+)$@' , $ classname , $ matches ) ) { $ classname = $ matches [ 1 ] ; } return $ classname ; }
Obtains an object class name without namespaces
@param $obj
@return string
Obtains an object class name without namespaces