Documentation

CssColorModuleValueTrait

Module value checks for output classes that use CSS colors

Table of Contents

Methods

moduleValueIsValid()  : bool
note: we're not necessarily validating the several values, just checking the general syntax note: css4 colors are not included
getDefaultModuleValue()  : string
prepareModuleValue()  : string

Methods

moduleValueIsValid()

note: we're not necessarily validating the several values, just checking the general syntax note: css4 colors are not included

public static moduleValueIsValid(mixed $value) : bool
Parameters
$value : mixed
Tags
todo:

XSS proof

see
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
implements

\chillerlan\QRCode\Output\QROutputInterface::moduleValueIsValid()

inheritDoc
Return values
bool

getDefaultModuleValue()

protected getDefaultModuleValue(bool $isDark) : string
Parameters
$isDark : bool
Tags
implements

\chillerlan\QRCode\Output\QROutputAbstract::getDefaultModuleValue()

inheritDoc
Return values
string

prepareModuleValue()

protected prepareModuleValue(mixed $value) : string
Parameters
$value : mixed
Tags
implements

\chillerlan\QRCode\Output\QROutputAbstract::prepareModuleValue()

inheritDoc
Return values
string

        
On this page

Search results