Class CssClass
Class used to generate the CSS classes that are required to use automatic notifications or site overlay for web pages.
The class has static methods that returns string representations for the CSS classes given a ticket.
Methods summary
public static
string
|
#
forSiteOverlay( string $ticket )
Converts a ticket to CSS classes needed to use site overlay.
Converts a ticket to CSS classes needed to use site overlay.
Parameters
- $ticket
- ticket for the eSales panel.
Returns
string The CSS classes to use for an element that should be displayed in eSales Managers Site tab.
Throws
|
public static
string
|
#
forClickNotification( string $ticket )
Converts a ticket to CSS classes for automatic click notifications.
Converts a ticket to CSS classes for automatic click notifications.
Parameters
- $ticket
- ticket for the eSales element.
Returns
string The CSS classes to use for automatic click notifications.
Throws
|
public static
string
|
#
forAddingToCartNotification( string $ticket )
Converts a ticket to CSS classes for automatic adding to cart notifications.
Converts a ticket to CSS classes for automatic adding to cart notifications.
Parameters
- $ticket
- ticket for the eSales product.
Returns
string The CSS classes to use for automatic adding to cart notifications.
Throws
|
public static
string
|
#
forClickNotificationAndSiteOverlay( string $ticket )
Converts a ticket to CSS classes for automatic click notifications and site overlay.
Converts a ticket to CSS classes for automatic click notifications and site overlay.
Parameters
- $ticket
- ticket for the eSales element.
Returns
string The CSS classes to use for an element that should be displayed in eSales Managers Site tab.
The element will also support automatic click notifications.
Throws
|