Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Notifications::get_view_classname( string $trigger, string $prefix = null )

Get the classname for the view of a given notification based off it’s trigger


Parameters Parameters

$trigger

(string) (Required) Trigger id (eg: lesson_complete).

$prefix

(string) (Optional) Default = 'LLMS'.

Default value: null


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/notifications/class.llms.notifications.php

	 * @return string
	 */
	private function get_view_classname( $trigger, $prefix = null ) {

		$prefix = $prefix ? $prefix : 'LLMS';
		$name   = str_replace( ' ', '_', ucwords( str_replace( '_', ' ', $trigger ) ) );
		return sprintf( '%1$s_Notification_View_%2$s', $prefix, $name );


Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0
3.24.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.