Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Public Member Functions | |
__construct () | |
Initialize formatter. | |
customProperty ($name, $value) | |
Return custom property assignment differs in that you have to keep spaces in the value as is. | |
format (OutputBlock $block, SourceMapGenerator $sourceMapGenerator=null) | |
Entry point to formatting a block. | |
property ($name, $value) | |
Return property assignment. | |
Public Attributes | |
string | $assignSeparator |
string | $break |
string | $close |
string | $indentChar |
int | $indentLevel |
bool | $keepSemicolons |
string | $open |
string | $tagSeparator |
Protected Member Functions | |
block (OutputBlock $block) | |
Output non-empty block. | |
blockChildren (OutputBlock $block) | |
Output block children. | |
blockLines (OutputBlock $block) | |
Output lines inside a block. | |
blockSelectors (OutputBlock $block) | |
Output block selectors. | |
indentStr () | |
Return indentation (whitespace) | |
testEmptyChildren ($block) | |
Test and clean safely empty children. | |
write ($str) | |
Output content. | |
Protected Attributes | |
ScssPhp ScssPhp Formatter OutputBlock | $currentBlock |
int | $currentColumn |
int | $currentLine |
ScssPhp ScssPhp SourceMap SourceMapGenerator null | $sourceMapGenerator |
string | $strippedSemicolon |
Base formatter.
|
abstract |
Initialize formatter.
@api
Reimplemented in ScssPhp\ScssPhp\Formatter\Compact, ScssPhp\ScssPhp\Formatter\Compressed, ScssPhp\ScssPhp\Formatter\Crunched, ScssPhp\ScssPhp\Formatter\Debug, ScssPhp\ScssPhp\Formatter\Expanded, and ScssPhp\ScssPhp\Formatter\Nested.
|
protected |
Output non-empty block.
ScssPhp\ScssPhp\Formatter\OutputBlock | $block |
void |
Reimplemented in ScssPhp\ScssPhp\Formatter\Debug, and ScssPhp\ScssPhp\Formatter\Nested.
|
protected |
Output block children.
ScssPhp\ScssPhp\Formatter\OutputBlock | $block |
void |
Reimplemented in ScssPhp\ScssPhp\Formatter\Debug.
|
protected |
Output lines inside a block.
ScssPhp\ScssPhp\Formatter\OutputBlock | $block |
void |
Reimplemented in ScssPhp\ScssPhp\Formatter\Compressed, ScssPhp\ScssPhp\Formatter\Crunched, ScssPhp\ScssPhp\Formatter\Debug, ScssPhp\ScssPhp\Formatter\Expanded, and ScssPhp\ScssPhp\Formatter\Nested.
|
protected |
Output block selectors.
ScssPhp\ScssPhp\Formatter\OutputBlock | $block |
void |
Reimplemented in ScssPhp\ScssPhp\Formatter\Compressed, ScssPhp\ScssPhp\Formatter\Crunched, and ScssPhp\ScssPhp\Formatter\Debug.
ScssPhp\ScssPhp\Formatter::customProperty | ( | $name, | |
$value ) |
Return custom property assignment differs in that you have to keep spaces in the value as is.
@api
string | $name | |
mixed | $value |
string |
ScssPhp\ScssPhp\Formatter::format | ( | OutputBlock | $block, |
SourceMapGenerator | $sourceMapGenerator = null ) |
Entry point to formatting a block.
@api
ScssPhp\ScssPhp\Formatter\OutputBlock | $block | An abstract syntax tree |
ScssPhp\ScssPhp\SourceMap\SourceMapGenerator | null | $sourceMapGenerator | Optional source map generator |
string |
|
protected |
Return indentation (whitespace)
string |
Reimplemented in ScssPhp\ScssPhp\Formatter\Compact, ScssPhp\ScssPhp\Formatter\Debug, ScssPhp\ScssPhp\Formatter\Expanded, and ScssPhp\ScssPhp\Formatter\Nested.
ScssPhp\ScssPhp\Formatter::property | ( | $name, | |
$value ) |
Return property assignment.
@api
string | $name | |
mixed | $value |
string |
|
protected |
Test and clean safely empty children.
ScssPhp\ScssPhp\Formatter\OutputBlock | $block |
bool |
|
protected |
Output content.
string | $str |
void |