class StyleSet (View source)

Methods

static StyleSet|null
getByID(int $issID)

Get a StyleSet entity given its ID.

static StyleSet
import(SimpleXMLElement $node)

Import a StyleSet entity from an XML node.

static string|null
sanitizeCssClasses(array $cssClasses)

No description

static StyleSet|null
populateFromRequest(Request $request)

If the request contains any fields that are valid to save as a style set, we return the style set object pre-save. If it's not (e.g. there's a background repeat but no actual background image, empty strings, etc...) then we return null.

Details

static StyleSet|null getByID(int $issID)

Get a StyleSet entity given its ID.

Parameters

int $issID

Return Value

StyleSet|null

static StyleSet import(SimpleXMLElement $node)

Import a StyleSet entity from an XML node.

Parameters

SimpleXMLElement $node

Return Value

StyleSet

static protected string|null sanitizeCssClasses(array $cssClasses)

No description

Parameters

array $cssClasses

Return Value

string|null

static StyleSet|null populateFromRequest(Request $request)

If the request contains any fields that are valid to save as a style set, we return the style set object pre-save. If it's not (e.g. there's a background repeat but no actual background image, empty strings, etc...) then we return null.

Parameters

Request $request

Return Value

StyleSet|null