Method | Description | |
---|---|---|
__construct ( ) | Import the Files library | |
checkStyleSheetName ( string $strName ) : string | Check the name of an imported file | |
compileDefinition ( array $row, boolean $blnWriteToFile = false, array $vars = [], array $parent = [], boolean $export = false ) : string | Compile format definitions and return them as string | |
exportStyleSheet ( |
Export a style sheet | |
importStyleSheet ( ) : string | Return a form to choose an existing style sheet and import it | |
updateStyleSheet ( integer $intId ) | Update a particular style sheet | |
updateStyleSheets ( ) | Update all style sheets in the scripts folder |
Method | Description | |
---|---|---|
compileColor ( mixed $color, boolean $blnWriteToFile = false, array $vars = [] ) : string | Compile a color value and return a hex or rgba color | |
convertHexColor ( string $color, boolean $blnWriteToFile = false, array $vars = [] ) : array | Convert hex colors to rgb | |
createDefinition ( array $arrDefinition ) | Create a format definition and insert it into the database | |
generateBase64Image ( string $strImage, array $arrParent ) : string | boolean | Return an image as data: string | |
shortenHexColor ( string $color ) : string | Try to shorten a hex color | |
writeStyleSheet ( array $row ) | Write a style sheet to a file |
public checkStyleSheetName ( string $strName ) : string | ||
$strName | string | |
return | string |
protected createDefinition ( array $arrDefinition ) | ||
$arrDefinition | array |
public exportStyleSheet ( |
||
$dc |
public importStyleSheet ( ) : string | ||
return | string |
protected shortenHexColor ( string $color ) : string | ||
$color | string | |
return | string |
public updateStyleSheet ( integer $intId ) | ||
$intId | integer |
public updateStyleSheets ( ) |
protected writeStyleSheet ( array $row ) | ||
$row | array |