public final function get_activity_type() {
        $class = get_class($this);
        $package = stristr($class, "\\", true);
        $type = str_replace("mod_", "", $package);
        if ($type === $package) {
            throw new \coding_exception("$class does not belong to any module specific namespace");
        }
        return $type;
    }
public final function get_activity_type() {
        $class = get_class($this);
        $package = stristr($class, "\\", true);
        $type = str_replace("mod_", "", $package);
        if ($type === $package) {
            throw new \coding_exception("$class does not belong to any module specific namespace");
        }
        return $type;
    }
public final function get_activity_type ( ) { $ class = get_class ( $ this ) ; $ package = stristr ( $ class , "\\" , true ) ; $ type = str_replace ( "mod_" , "" , $ package ) ; if ( $ type === $ package ) { throw new \ coding_exception ( "$class does not belong to any module specific namespace" ) ; } return $ type ; }
Returns the activity type. No point in changing this class in children classes.

@var string The activity name (e.g. assign or quiz)
Returns the activity type . No point in changing this class in children classes .