PHP 클래스 TitanFrameworkCSS

저자: Benjamin Intal
파일 보기 프로젝트 열기: gambitph/titan-framework 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

Class constructor
부터: 1.2
public __construct ( TitanFramework $frameworkInstance ) : void
$frameworkInstance TitanFramework an instance of the framework object
리턴 void

_generateMissingCSS() 공개 메소드

When the no options are saved yet (e.g. new install) create a CSS, called internally
부터: 1.4.1
public _generateMissingCSS ( ) : void
리턴 void

addCSS() 공개 메소드

Adds a CSS string to the list for CSS generation
부터: 1.2
public addCSS ( string $cssString ) : void
$cssString string string CSS, can contain SaSS variables of optionIDs
리턴 void

enqueueCSS() 공개 메소드

Enqueues the generated CSS. Used IF the CSS file was successfully generated
부터: 1.2
public enqueueCSS ( ) : void
리턴 void

generateCSS() 공개 메소드

Generates a CSS string of all the options
부터: 1.2
public generateCSS ( ) : string
리턴 string A CSS string of all the values

generateMissingCSS() 공개 메소드

When the no options are saved yet (e.g. new install) create a CSS
부터: 1.4.1
public generateMissingCSS ( ) : void
리턴 void

generateSaveCSS() 공개 메소드

..' ) function.
부터: 1.3
public generateSaveCSS ( ) : void
리턴 void

getOptionsWithCSS() 공개 메소드

Gathers all options with IDs for generation of CSS rules
부터: 1.2
public getOptionsWithCSS ( TitanFrameworkOption $option ) : void
$option TitanFrameworkOption The option which was just added
리턴 void

printCSS() 공개 메소드

Prints the styles in the head tag. Used IF the CSS file could not be generated
부터: 1.2
public printCSS ( ) : void
리턴 void