Метод | Описание | |
---|---|---|
__construct ( TitanFramework $frameworkInstance ) : void | Class constructor | |
_generateMissingCSS ( ) : void | When the no options are saved yet (e.g. new install) create a CSS, called internally | |
addCSS ( string $cssString ) : void | Adds a CSS string to the list for CSS generation | |
enqueueCSS ( ) : void | Enqueues the generated CSS. Used IF the CSS file was successfully generated | |
generateCSS ( ) : string | Generates a CSS string of all the options | |
generateMissingCSS ( ) : void | When the no options are saved yet (e.g. new install) create a CSS | |
generateSaveCSS ( ) : void | Generates a the CSS file containing all the rules assigned to options, or created using the TitanFramework->createCSS( '. | |
getOptionsWithCSS ( TitanFrameworkOption $option ) : void | Gathers all options with IDs for generation of CSS rules | |
printCSS ( ) : void | Prints the styles in the head tag. Used IF the CSS file could not be generated |
Метод | Описание | |
---|---|---|
formCSSVariables ( string $id, $type, string $value, mixes $key = false, string $cssString = '' ) : string | Forms CSS rules containing SaSS variables | |
getCSSFilePath ( ) : string | Returns the path of the generated CSS file | |
getCSSFileURL ( ) : string | Returns the URL of the generated CSS file | |
getCSSSlug ( ) : string | Generates a unique slug for our CSS generation | |
writeCSS ( $parsedCSS, $cssFilename ) : boolean | Writes the CSS file |
public __construct ( TitanFramework $frameworkInstance ) : void | ||
$frameworkInstance | TitanFramework | an instance of the framework object |
Результат | void |
public _generateMissingCSS ( ) : void | ||
Результат | void |
public enqueueCSS ( ) : void | ||
Результат | void |
public generateCSS ( ) : string | ||
Результат | string | A CSS string of all the values |
public generateMissingCSS ( ) : void | ||
Результат | void |
public getOptionsWithCSS ( TitanFrameworkOption $option ) : void | ||
$option | TitanFrameworkOption | The option which was just added |
Результат | void |