diff --git a/.editorconfig b/.editorconfig new file mode 100755 index 00000000..13d8091b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +# top-most EditorConfig file +root = true +# 4 space indentation +[*] +end_of_line = lf +[*.php] +indent_style = tab +indent_size = 4 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index efa45b40..6d88fef0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,6 +5,7 @@ /tool/ export-ignore /composer.lock export-ignore /composer.phar export-ignore +/.editorconfig export-ignore /.gitignore export-ignore /.gitattributes export-ignore /.phpunit.result.cache export-ignore @@ -20,5 +21,10 @@ /docs/** linguist-vendored /tool/** linguist-vendored /benchmark/** linguist-vendored - +# +# do not replace lf by crlf +*.css text +*.php text +*.json text +text eol=lf diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index dd950187..cab33c6a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,35 +2,33 @@ name: CI on: push: - branches: [ master, php56-backport ] + branches: [ php56-backport ] pull_request: - branches: [ master, php56-backport ] + branches: [ php56-backport ] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Validate composer.json and composer.lock - run: composer validate --strict + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '5.6' + extensions: mbstring, xml, curl + tools: phpunit, composer - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- + - name: Validate composer.json and composer.lock + run: composer validate --strict - - name: Install dependencies - run: composer install --prefer-dist --no-progress + - name: Install dependencies + run: composer install --prefer-dist --no-progress - # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" - # Docs: https://getcomposer.org/doc/articles/scripts.md + # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" + # Docs: https://getcomposer.org/doc/articles/scripts.md - - name: Run test suite - run: composer run-script test + - name: Run test suite + run: composer run-script test diff --git a/.gitignore b/.gitignore index 1ca213ff..19f6020f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,15 @@ -composer.phar -#composer.lock -phpunit.phar +/composer.phar +/composer.lock +/phpunit.phar phpunit phpdocumentor.sh benchmark/ -vendor/ -test/debug.txt -.idea/ -.git/ -.phpunit.result.cache -xpath.txt -parsing.txt -test/color.php -test/*.json +/vendor/ +/test/debug.txt +/test/*.php +/test/*.css +/.idea/ +/.git/ +/.phpunit.result.cache +/xpath.txt +/parsing.txt diff --git a/README.md b/README.md index 369ac1d6..27052721 100644 --- a/README.md +++ b/README.md @@ -1,705 +1,719 @@ -CSS (A CSS parser and minifier written in PHP) - ---- - -[![CI](https://github.com/tbela99/css/actions/workflows/php.yml/badge.svg)](https://github.com/tbela99/css/actions/workflows/php.yml) ![Current version](https://img.shields.io/badge/dynamic/json?label=current%20version&query=version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ftbela99%2Fcss%2Fmaster%2Fpackage.json) [![Packagist](https://poser.pugx.org/tbela99/css/downloads)](https://packagist.org/packages/tbela99/css) [![Documentation](https://img.shields.io/badge/dynamic/json?label=documentation&query=version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ftbela99%2Fcss%2Fmaster%2Fpackage.json)](https://tbela99.github.io/css) [![Known Vulnerabilities](https://snyk.io/test/github/tbela99/gzip/badge.svg)](https://snyk.io/test/github/tbela99/css) - -A CSS parser, beautifier and minifier written in PHP. It supports the following features - -## Features - -- multibyte characters encoding -- sourcemap -- CSS Nesting module -- partially implemented CSS Syntax module level 3 -- partial CSS validation -- CSS colors module level 4- parse and render CSS -- optimize css: - - merge duplicate rules - - remove duplicate declarations - - remove empty rules - - compute css shorthand (margin, padding, outline, border-radius, font, background) - - process @import document to reduce the number of HTTP requests - - remove @charset directive -- query api with xpath like or class name syntax -- traverser api to transform the css and ast -- command line utility - -## Installation - -install using [Composer](https://getcomposer.org/) - -```bash -$ composer require "tbela99/css:dev-php56-backport" -``` - -## Requirements - -This library requires: -- PHP version >= 5.6 -- mbstring extension -- - -## Usage: - -```css -h1 { - color: green; - color: blue; - color: black; -} - -h1 { - color: #000; - color: aliceblue; -} -``` - -PHP Code - -```php - -use \TBela\CSS\Parser; - -$parser = new Parser(); -$parser->setContent(' -h1 { - color: green; - color: blue; - color: black; -} - -h1 { - color: #000; - color: aliceblue; -}'); - -echo $parser->parse(); -``` - -Result - -```css -h1 { - color: #f0f8ff; -} -``` - -Parse the css file and generate the AST - -```php - -use \TBela\CSS\Parser; -use \TBela\CSS\Renderer; - -$parser = new Parser($css); -$element = $parser->parse(); - -// append an existing css file -$parser->append('https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css'); - -// append css string -$parser->appendContent($css_string); - -// pretty print css -$css = (string) $element; - -// minified output -$renderer = new Renderer([ - 'compress' => true, - 'convert_color' => 'hex', - 'css_level' => 4, - 'sourcemap' => true, - 'allow_duplicate_declarations' => false - ]); - -// fast -$css = $renderer->renderAst($parser); -// or -$css = $renderer->renderAst($parser->getAst()); -// slow -$css = $renderer->render($element); - -// generate sourcemap -> css/all.css.map -$renderer->save($element, 'css/all.css'); - -// save as json -file_put_contents('style.json', json_encode($element)); -``` - -Load the AST and generate css code - -```php - -use \TBela\CSS\Renderer; -// fastest way to render css -$beautify = (new Renderer())->renderAst($parser->setContent($css)->getAst()); -// or -$beautify = (new Renderer())->renderAst($parser->setContent($css)); - -// or -$css = (new Renderer())->renderAst(json_decode(file_get_contents('style.json'))); -``` - -```php - -use \TBela\CSS\Renderer; - -$ast = json_decode(file_get_contents('style.json')); - -$renderer = new Renderer([ - 'convert_color' => true, - 'compress' => true, // minify the output - 'remove_empty_nodes' => true // remove empty css classes -]); - -$css = $renderer->renderAst($ast); -``` - -## Sourcemap generation - -```php -$renderer = new Renderer([ - 'sourcemap' => true - ]); - -// call save and specify the file name -// generate sourcemap -> css/all.css.map -$renderer->save($element, 'css/all.css'); -``` - -## The CSS Query API - -Example: get all background and background-image declarations that contain an image url - -```php - -$element = Element::fromUrl('https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css'); - -foreach ($element->query('[@name=background][@value*="url("]|[@name=background-image][@value*="url("]') as $p) { - - echo "$p\n"; -} - -``` - -result - -```css -.form-select { - background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c -/svg%3e") -} -.form-check-input:checked[type=checkbox] { - background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/s -vg%3e") -} - -... -``` - -Example: Extract Font-src declaration - -CSS source - -```css -@font-face { - font-family: "Bitstream Vera Serif Bold"; - src: url("/static/styles/libs/font-awesome/fonts/fontawesome-webfont.fdf491ce5ff5.woff"); -} - -body { - background-color: green; - color: #fff; - font-family: Arial, Helvetica, sans-serif; -} -h1 { - color: #fff; - font-size: 50px; - font-family: Arial, Helvetica, sans-serif; - font-weight: bold; -} - -@media print { - @font-face { - font-family: MaHelvetica; - src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), - url(MgOpenModernaBold.ttf); - font-weight: bold; - } - body { - font-family: "Bitstream Vera Serif Bold", serif; - } - p { - font-size: 12px; - color: #000; - text-align: left; - } - - @font-face { - font-family: Arial, MaHelvetica; - src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), - url(MgOpenModernaBold.ttf); - font-weight: bold; - } -} -``` - -PHP source - -```php - -use \TBela\CSS\Parser; - -$parser = new Parser(); - -$parser->setContent($css); - -$stylesheet = $parser->parse(); - -// get @font-face nodes by class names -$nodes = $stylesheet->queryByClassNames('@font-face, .foo .bar'); - -// or - -// get all src properties in a @font-face rule -$nodes = $stylesheet->query('@font-face/src'); - -echo implode("\n", array_map('trim', $nodes)); -``` - -result - -```css -@font-face { - src: url("/static/styles/libs/font-awesome/fonts/fontawesome-webfont.fdf491ce5ff5.woff"); -} -@media print { - @font-face { - src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), - url(MgOpenModernaBold.ttf); - } -} -@media print { - @font-face { - src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), - url(MgOpenModernaBold.ttf); - } -} -``` - -render optimized css - -```php - -$stylesheet->setChildren(array_map(function ($node) { return $node->copy()->getRoot(); }, $nodes)); -$stylesheet->deduplicate(); - -echo $stylesheet; -``` - -result - -```css -@font-face { - src: url(/static/styles/libs/font-awesome/fonts/fontawesome-webfont.fdf491ce5ff5.woff) -} -@media print { - @font-face { - src: local("Helvetica Neue Bold"), local(HelveticaNeue-Bold), url(MgOpenModernaBold.ttf) - } -} -``` - -## CSS Nesting - -```css -table.colortable { - & td { - text-align:center; - &.c { text-transform:uppercase } - &:first-child, &:first-child + td { border:1px solid black } - } - - -& th {text-align:center; -background:black; -color:white; -} -} -``` - -render CSS nesting - -```php - -use TBela\CSS\Parser; - -echo new Parser($css); - -``` -result - -```css -table.colortable { - & td { - text-align: center; - &.c { - text-transform: uppercase - } - &:first-child, - &:first-child+td { - border: 1px solid #000 - } - } - & th { - text-align: center; - background: #000; - color: #fff - } -} - -``` - -convert nesting CSS to older representation - -```php - -use TBela\CSS\Parser; -use \TBela\CSS\Renderer; - -$renderer = new Renderer( ['legacy_rendering' => true]); -echo $renderer->renderAst(new Parser($css)); - -``` - -result - -```css - -table.colortable td { - text-align: center -} -table.colortable td.c { - text-transform: uppercase -} -table.colortable td:first-child, -table.colortable td:first-child+td { - border: 1px solid #000 -} -table.colortable th { - text-align: center; - background: #000; - color: #fff -} - -``` - -## The Traverser Api - -The traverser will iterate over all the nodes and process them with the callbacks provided. -It will return a new tree -Example using ast - -```php - -use TBela\CSS\Ast\Traverser; -use TBela\CSS\Parser; -use TBela\CSS\Renderer; - -$parser = (new Parser())->load('ast/media.css'); -$traverser = new Traverser(); -$renderer = new Renderer(['remove_empty_nodes' => true]); - -$ast = $parser->getAst(); - -// remove @media print -$traverser->on('enter', function ($node) { - - if ($node->type == 'AtRule' && $node->name == 'media' && $node->value == 'print') { - - return Traverser::IGNORE_NODE; - } -}); - -$newAst = $traverser->traverse($ast); -echo $renderer->renderAst($newAst); -``` - -Example using an Element instance - -```php - -use TBela\CSS\Ast\Traverser; -use TBela\CSS\Parser; -use TBela\CSS\Renderer; - -$parser = (new Parser())->load('ast/media.css'); -$traverser = new Traverser(); -$renderer = new Renderer(['remove_empty_nodes' => true]); - -$element = $parser->parse(); - -// remove @media print -$traverser->on('enter', function ($node) { - - if ($node->type == 'AtRule' && $node->name == 'media' && $node->value == 'print') { - - return Traverser::IGNORE_NODE; - } -}); - -$newElement = $traverser->traverse($element); -echo $renderer->renderAst($newElement); -``` - -## Build a CSS Document - -```php - -use \TBela\CSS\Element\Stylesheet; - -$stylesheet = new Stylesheet(); - -$rule = $stylesheet->addRule('div'); - -$rule->addDeclaration('background-color', 'white'); -$rule->addDeclaration('color', 'black'); - -echo $stylesheet; - -``` - -output - -```css -div { - background-color: #fff; - color: #000; -} -``` - -```php - -$media = $stylesheet->addAtRule('media', 'print'); -$media->append($rule); - -``` - -output - -```css -@media print { - div { - background-color: #fff; - color: #000; - } -} -``` - -```php -$div = $stylesheet->addRule('div'); - -$div->addDeclaration('max-width', '100%'); -$div->addDeclaration('border-width', '0px'); - -``` - -output - -```css -@media print { - div { - background-color: #fff; - color: #000; - } -} -div { - max-width: 100%; - border-width: 0; -} -``` - -```php - -$media->append($div); - -``` - -output - -```css -@media print { - div { - background-color: #fff; - color: #000; - } - div { - max-width: 100%; - border-width: 0; - } -} -``` - -```php - -$stylesheet->insert($div, 0); -``` - -output - -```css -div { - max-width: 100%; - border-width: 0; -} -@media print { - div { - background-color: #fff; - color: #000; - } -} -``` -Adding existing css -```php - -// append css string -$stylesheet->appendCss($css_string); -// append css file -$stylesheet->append('style/main.css'); -// append url -$stylesheet->append('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css'); - - -``` - -## Performance - -parsing and rendering ast is 3x faster than parsing an element. - -```php - -use \TBela\CSS\Element\Parser; -use \TBela\CSS\Element\Renderer; - -$parser = new Parser($css); - -// parse and render -echo (string) $parser; - -// or render minified css -$renderer = new Renderer(['compress' => true]); -echo $renderer->renderAst($parser->getAst()); - -// slower - will build an Element -echo $renderer->render($parser->parse()); -``` -## Parser Options - -- flatten_import: process @import directive and import the content into the css document. default to false. -- allow_duplicate_rules: allow duplicated rules. By default duplicate rules except @font-face are merged -- allow_duplicate_declarations: allow duplicated declarations in the same rule. -- capture_errors: silently capture parse error if true, otherwise throw a parse exception. Default to true - -## Renderer Options - -- remove_comments: remove comments. -- preserve_license: preserve comments starting with '/*!' -- compress: minify output, will also remove comments -- remove_empty_nodes: do not render empty css nodes -- compute_shorthand: compute shorthand declaration -- charset: preserve @charset. default to false -- glue: the line separator character. default to '\n' -- indent: character used to pad lines in css, default to a space character -- convert_color: convert colors to a format between _hex_, _hsl_, _rgb_, _hwb_ and _device-cmyk_ -- css_level: produce CSS color level 3 or 4. default to _4_ -- allow_duplicate_declarations: allow duplicate declarations. -- legacy_rendering: convert nesting css. default false - -## Command line utility - -the command line utility is located at './cli/css-parser' - -```bash - -$ ./cli/css-parser -h - -Usage: -$ css-parser [OPTIONS] [PARAMETERS] - --h print help ---help print extended help - -parse options: - --e, --capture-errors ignore parse error - --f, --file css file or url - --m, --flatten-import process @import - --d, --parse-allow-duplicate-declarations allow duplicate declaration - --p, --parse-allow-duplicate-rules allow duplicate rule - -render options: - --a, --ast dump ast as JSON - --S, --charset remove @charset - --c, --compress minify output - --u, --compute-shorthand compute shorthand properties - --l, --css-level css color module - --G, --legacy-rendering legacy rendering - --o, --output output file name - --L, --preserve-license preserve license comments - --C, --remove-comments remove comments - --E, --remove-empty-nodes remove empty nodes - --r, --render-duplicate-declarations render duplicate declarations - --s, --sourcemap generate sourcemap, require -o - -``` - -### Minify inline css - -```bash -$ ./cli/css-parser 'a, div {display:none} b {}' -c -# -$ echo 'a, div {display:none} b {}' | ./cli/css-parser -c -``` - -### Minify css file - -```bash -$ ./cli/css-parser -f nested.css -c -# -$ ./cli/css-parser -f 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css' -c -``` - -### Dump ast - -```bash -$ ./cli/css-parser -f nested.css -f 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css' -c -a -# -$ ./cli/css-parser 'a, div {display:none} b {}' -c -a -# -$ echo 'a, div {display:none} b {}' | ./cli/css-parser -c -a -``` - -The full [documentation](https://tbela99.github.io/css) can be found [here](https://tbela99.github.io/css) - ---- - -Thanks to [Jetbrains](https://jetbrains.com) for providing a free PhpStorm license - -This was originally a PHP port of https://github.com/reworkcss/css +CSS (A CSS parser and minifier written in PHP) + +--- + +[![CI](https://github.com/tbela99/css/actions/workflows/php.yml/badge.svg)](https://github.com/tbela99/css/actions/workflows/php.yml) ![Current version](https://img.shields.io/badge/dynamic/json?label=current%20version&query=version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ftbela99%2Fcss%2Fmaster%2Fpackage.json) [![Packagist](https://poser.pugx.org/tbela99/css/downloads)](https://packagist.org/packages/tbela99/css) [![Documentation](https://img.shields.io/badge/dynamic/json?label=documentation&query=version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ftbela99%2Fcss%2Fmaster%2Fpackage.json)](https://tbela99.github.io/css) [![Known Vulnerabilities](https://snyk.io/test/github/tbela99/gzip/badge.svg)](https://snyk.io/test/github/tbela99/css) + +A CSS parser, beautifier and minifier written in PHP. It supports the following features + +## Features + +- multibyte characters encoding +- sourcemap +- multiprocessing: process large CSS input very fast +- CSS Nesting module +- partially implemented CSS Syntax module level 3 +- partial CSS validation +- CSS colors module level 4 +- parse and render CSS +- optimize css: + - merge duplicate rules + - remove duplicate declarations + - remove empty rules + - compute css shorthand (margin, padding, outline, border-radius, font, background) + - process @import document to reduce the number of HTTP requests + - remove @charset directive +- query api with xpath like or class name syntax +- traverser api to transform the css and ast +- command line utility + +## Installation + +install using [Composer](https://getcomposer.org/) + +```bash +$ composer require "tbela99/css:dev-php56-backport" +``` + +## Requirements + +This library requires: +- PHP version >= 5.6 +- mbstring extension + +## Usage: + +```css +h1 { + color: green; + color: blue; + color: black; +} + +h1 { + color: #000; + color: aliceblue; +} +``` + +PHP Code + +```php + +use \TBela\CSS\Parser; + +$parser = new Parser(); + +$parser->setContent(' +h1 { + color: green; + color: blue; + color: black; +} + +h1 { + color: #000; + color: aliceblue; +}'); + +echo $parser->parse(); +``` + +Result + +```css +h1 { + color: #f0f8ff; +} +``` + +Parse the css file and generate the AST + +```php + +use \TBela\CSS\Parser; +use \TBela\CSS\Renderer; + +$parser = new Parser($css); +$element = $parser->parse(); + +// append an existing css file +$parser->append('https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css'); + +// append css string +$parser->appendContent($css_string); + +// pretty print css +$css = (string) $element; + +// minified output +$renderer = new Renderer([ + 'compress' => true, + 'convert_color' => 'hex', + 'css_level' => 4, + 'sourcemap' => true, + 'allow_duplicate_declarations' => false + ]); + +// fast +$css = $renderer->renderAst($parser); +// or +$css = $renderer->renderAst($parser->getAst()); +// slow +$css = $renderer->render($element); + +// generate sourcemap -> css/all.css.map +$renderer->save($element, 'css/all.css'); + +// save as json +file_put_contents('style.json', json_encode($element)); +``` + +Load the AST and generate css code + +```php + +use \TBela\CSS\Renderer; +// fastest way to render css +$beautify = (new Renderer())->renderAst($parser->setContent($css)->getAst()); +// or +$beautify = (new Renderer())->renderAst($parser->setContent($css)); + +// or +$css = (new Renderer())->renderAst(json_decode(file_get_contents('style.json'))); +``` + +```php + +use \TBela\CSS\Renderer; + +$ast = json_decode(file_get_contents('style.json')); + +$renderer = new Renderer([ + 'convert_color' => true, + 'compress' => true, // minify the output + 'remove_empty_nodes' => true // remove empty css classes +]); + +$css = $renderer->renderAst($ast); +``` + +## Sourcemap generation + +```php +$renderer = new Renderer([ + 'sourcemap' => true + ]); + +// call save and specify the file name +// generate sourcemap -> css/all.css.map +$renderer->save($element, 'css/all.css'); +``` + +## The CSS Query API + +Example: get all background and background-image declarations that contain an image url + +```php + +$element = Element::fromUrl('https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css'); + +foreach ($element->query('[@name=background][@value*="url("]|[@name=background-image][@value*="url("]') as $p) { + + echo "$p\n"; +} + +``` + +result + +```css +.form-select { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c +/svg%3e") +} +.form-check-input:checked[type=checkbox] { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/s +vg%3e") +} + +... +``` + +Example: Extract Font-src declaration + +CSS source + +```css +@font-face { + font-family: "Bitstream Vera Serif Bold"; + src: url("/static/styles/libs/font-awesome/fonts/fontawesome-webfont.fdf491ce5ff5.woff"); +} + +body { + background-color: green; + color: #fff; + font-family: Arial, Helvetica, sans-serif; +} +h1 { + color: #fff; + font-size: 50px; + font-family: Arial, Helvetica, sans-serif; + font-weight: bold; +} + +@media print { + @font-face { + font-family: MaHelvetica; + src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), + url(MgOpenModernaBold.ttf); + font-weight: bold; + } + body { + font-family: "Bitstream Vera Serif Bold", serif; + } + p { + font-size: 12px; + color: #000; + text-align: left; + } + + @font-face { + font-family: Arial, MaHelvetica; + src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), + url(MgOpenModernaBold.ttf); + font-weight: bold; + } +} +``` + +PHP source + +```php + +use \TBela\CSS\Parser; + +$parser = new Parser(); + +$parser->setContent($css); + +$stylesheet = $parser->parse(); + +// get @font-face nodes by class names +$nodes = $stylesheet->queryByClassNames('@font-face, .foo .bar'); + +// or + +// get all src properties in a @font-face rule +$nodes = $stylesheet->query('@font-face/src'); + +echo implode("\n", array_map('trim', $nodes)); +``` + +result + +```css +@font-face { + src: url("/static/styles/libs/font-awesome/fonts/fontawesome-webfont.fdf491ce5ff5.woff"); +} +@media print { + @font-face { + src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), + url(MgOpenModernaBold.ttf); + } +} +@media print { + @font-face { + src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), + url(MgOpenModernaBold.ttf); + } +} +``` + +render optimized css + +```php + +$stylesheet->setChildren(array_map(function ($node) { return $node->copy()->getRoot(); }, $nodes)); +$stylesheet->deduplicate(); + +echo $stylesheet; +``` + +result + +```css +@font-face { + src: url(/static/styles/libs/font-awesome/fonts/fontawesome-webfont.fdf491ce5ff5.woff) +} +@media print { + @font-face { + src: local("Helvetica Neue Bold"), local(HelveticaNeue-Bold), url(MgOpenModernaBold.ttf) + } +} +``` + +## CSS Nesting + +```css +table.colortable { + & td { + text-align:center; + &.c { text-transform:uppercase } + &:first-child, &:first-child + td { border:1px solid black } + } + + +& th { +text-align:center; +background:black; +color:white; +} +} +``` + +render CSS nesting + +```php + +use TBela\CSS\Parser; + +echo new Parser($css); + +``` +result + +```css +table.colortable { + & td { + text-align: center; + &.c { + text-transform: uppercase + } + &:first-child, + &:first-child+td { + border: 1px solid #000 + } + } + & th { + text-align: center; + background: #000; + color: #fff + } +} + +``` + +convert nesting CSS to older representation + +```php + +use TBela\CSS\Parser; +use \TBela\CSS\Renderer; + +$renderer = new Renderer( ['legacy_rendering' => true]); +echo $renderer->renderAst(new Parser($css)); + +``` + +result + +```css + +table.colortable td { + text-align: center +} +table.colortable td.c { + text-transform: uppercase +} +table.colortable td:first-child, +table.colortable td:first-child+td { + border: 1px solid #000 +} +table.colortable th { + text-align: center; + background: #000; + color: #fff +} + +``` + +## The Traverser Api + +The traverser will iterate over all the nodes and process them with the callbacks provided. +It will return a new tree +Example using ast + +```php + +use TBela\CSS\Ast\Traverser; +use TBela\CSS\Parser; +use TBela\CSS\Renderer; + +$parser = (new Parser())->load('ast/media.css'); +$traverser = new Traverser(); +$renderer = new Renderer(['remove_empty_nodes' => true]); + +$ast = $parser->getAst(); + +// remove @media print +$traverser->on('enter', function ($node) { + + if ($node->type == 'AtRule' && $node->name == 'media' && $node->value == 'print') { + + return Traverser::IGNORE_NODE; + } +}); + +$newAst = $traverser->traverse($ast); +echo $renderer->renderAst($newAst); +``` + +Example using an Element instance + +```php + +use TBela\CSS\Ast\Traverser; +use TBela\CSS\Parser; +use TBela\CSS\Renderer; + +$parser = (new Parser())->load('ast/media.css'); +$traverser = new Traverser(); +$renderer = new Renderer(['remove_empty_nodes' => true]); + +$element = $parser->parse(); + +// remove @media print +$traverser->on('enter', function ($node) { + + if ($node->type == 'AtRule' && $node->name == 'media' && $node->value == 'print') { + + return Traverser::IGNORE_NODE; + } +}); + +$newElement = $traverser->traverse($element); +echo $renderer->renderAst($newElement); +``` + +## Build a CSS Document + +```php + +use \TBela\CSS\Element\Stylesheet; + +$stylesheet = new Stylesheet(); + +$rule = $stylesheet->addRule('div'); + +$rule->addDeclaration('background-color', 'white'); +$rule->addDeclaration('color', 'black'); + +echo $stylesheet; + +``` + +output + +```css +div { + background-color: #fff; + color: #000; +} +``` + +```php + +$media = $stylesheet->addAtRule('media', 'print'); +$media->append($rule); + +``` + +output + +```css +@media print { + div { + background-color: #fff; + color: #000; + } +} +``` + +```php +$div = $stylesheet->addRule('div'); + +$div->addDeclaration('max-width', '100%'); +$div->addDeclaration('border-width', '0px'); + +``` + +output + +```css +@media print { + div { + background-color: #fff; + color: #000; + } +} +div { + max-width: 100%; + border-width: 0; +} +``` + +```php + +$media->append($div); + +``` + +output + +```css +@media print { + div { + background-color: #fff; + color: #000; + } + div { + max-width: 100%; + border-width: 0; + } +} +``` + +```php + +$stylesheet->insert($div, 0); +``` + +output + +```css +div { + max-width: 100%; + border-width: 0; +} +@media print { + div { + background-color: #fff; + color: #000; + } +} +``` +Adding existing css +```php + +// append css string +$stylesheet->appendCss($css_string); +// append css file +$stylesheet->append('style/main.css'); +// append url +$stylesheet->append('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css'); + + +``` + +## Performance + +parsing and rendering ast is 3x faster than parsing an element. + +```php + +use \TBela\CSS\Element\Parser; +use \TBela\CSS\Element\Renderer; + +$parser = new Parser($css); + +// parse and render +echo (string) $parser; + +// or render minified css +$renderer = new Renderer(['compress' => true]); +echo $renderer->renderAst($parser->getAst()); + +// slower - will build an Element +echo $renderer->render($parser->parse()); +``` +## Parser Options + +- flatten_import: process @import directive and import the content into the css document. default to false. +- allow_duplicate_rules: allow duplicated rules. By default, duplicate rules except @font-face are merged +- allow_duplicate_declarations: allow duplicated declarations in the same rule. +- capture_errors: silently capture parse error if true, otherwise throw a parse exception. Default to true + +## Renderer Options + +- remove_comments: remove comments. +- preserve_license: preserve comments starting with '/*!' +- compress: minify output, will also remove comments +- remove_empty_nodes: do not render empty css nodes +- compute_shorthand: compute shorthand declaration +- charset: preserve @charset. default to false +- glue: the line separator character. default to '\n' +- indent: character used to pad lines in css, default to a space character +- convert_color: convert colors to a format between _hex_, _hsl_, _rgb_, _hwb_ and _device-cmyk_ +- css_level: produce CSS color level 3 or 4. default to _4_ +- allow_duplicate_declarations: allow duplicate declarations. +- legacy_rendering: convert nesting css. default false + +## Command line utility + +the command line utility is located at './cli/css-parser' + +```bash +$ ./cli/css-parser -h + +Usage: +$ css-parser [OPTIONS] [PARAMETERS] + +-v, --version print version number +-h print help +--help print extended help + +Parse options: + +-e, --capture-errors ignore parse error + +-f, --file input css file or url + +-m, --flatten-import process @import + +-I, --input-format input format: json (ast), serialize (PHP serialized ast) + +-d, --parse-allow-duplicate-declarations allow duplicate declaration + +-p, --parse-allow-duplicate-rules allow duplicate rule + +-P, --parse-children-process maximum children process + +-M, --parse-multi-processing enable multi-processing parser + +Render options: + +-a, --ast dump ast as JSON + +-S, --charset remove @charset + +-c, --compress minify output + +-u, --compute-shorthand compute shorthand properties + +-t, --convert-color convert colors + +-l, --css-level css color module + +-G, --legacy-rendering convert nested css syntax + +-o, --output output file name + +-F, --output-format output export format. string (css), json (ast), serialize (PHP serialized ast), json-array, serialize-array, requires --input-format + +-L, --preserve-license preserve license comments + +-C, --remove-comments remove comments + +-E, --remove-empty-nodes remove empty nodes + +-r, --render-allow-duplicate-declarations render duplicate declarations + +-R, --render-multi-processing enable multi-processing renderer + +-s, --sourcemap generate sourcemap, requires --file +``` + +### Minify inline css + +```bash +$ ./cli/css-parser 'a, div {display:none} b {}' -c +# +$ echo 'a, div {display:none} b {}' | ./cli/css-parser -c +``` + +### Minify css file + +```bash +$ ./cli/css-parser -f nested.css -c +# +$ ./cli/css-parser -f 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css' -c +``` + +### Dump ast + +```bash +$ ./cli/css-parser -f nested.css -f 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css' -c -a +# +$ ./cli/css-parser 'a, div {display:none} b {}' -c -a +# +$ echo 'a, div {display:none} b {}' | ./cli/css-parser -c -a +``` + +The full [documentation](https://tbela99.github.io/css) can be found [here](https://tbela99.github.io/css) + +--- + +Thanks to [Jetbrains](https://jetbrains.com) for providing a free PhpStorm license + +This was originally a PHP port of https://github.com/reworkcss/css diff --git a/benchmark/css.php b/benchmark/css.php index d051e3dc..c3d5cb7a 100755 --- a/benchmark/css.php +++ b/benchmark/css.php @@ -19,4 +19,5 @@ 'allow_duplicate_declarations' => true ]; -$css = file_get_contents($argv[$compress ? 2 : 1]); \ No newline at end of file +$filename = $argv[$compress ? 2 : 1]; +$css = file_get_contents($filename); \ No newline at end of file diff --git a/benchmark/parseast.php b/benchmark/parseast.php index 6a1b6434..26eddb52 100755 --- a/benchmark/parseast.php +++ b/benchmark/parseast.php @@ -13,4 +13,4 @@ $parser = (new Parser($css, $options)); -$ast = $parser->getAst(); \ No newline at end of file +//$ast = $parser->getAst(); \ No newline at end of file diff --git a/benchmark/render.php b/benchmark/render.php index 69bbb6ea..1ab92ee5 100755 --- a/benchmark/render.php +++ b/benchmark/render.php @@ -1,15 +1,16 @@ #!/usr/bin/php render($stylesheet); \ No newline at end of file +echo Renderer::fromString($css, $options, $options); \ No newline at end of file diff --git a/benchmark/renderast.php b/benchmark/renderast.php index 1240690c..a1efc197 100755 --- a/benchmark/renderast.php +++ b/benchmark/renderast.php @@ -8,8 +8,8 @@ ob_clean(); /** - * @var stdClass $ast + * @var \TBela\CSS\Parser $parser * @var array $options */ -echo (new Renderer($options))->renderAst($ast); \ No newline at end of file +echo (new Renderer($options))->renderAst($parser); \ No newline at end of file diff --git a/bin/benchmark.sh b/bin/benchmark.sh index e93a7a65..2fb3e5cc 100755 --- a/bin/benchmark.sh +++ b/bin/benchmark.sh @@ -207,7 +207,7 @@ echo 'Rendering performance (Uncompressed)' # #benchmark "file${hpad}\tsize${hpad}\telement${hpad}\t\tsabber${hpad}\t\tast" "./render.php" "./renderSabberWorm.php" "./renderast.php" # "element" involves an additional step to turn ast into element class instance, which is always slower and not fair ... -benchmark "file${hpad}\tsize${hpad}\t\tsabber${hpad}\t\tast" "./renderSabberWorm.php" "./renderast.php" +benchmark "file${hpad}\tsize${hpad}\t\tsabber${hpad}\t\tast\t\tRenderer::fromString" "./renderSabberWorm.php" "./renderast.php" "./render.php" echo "" echo 'Rendering performance (Compressed)' @@ -215,7 +215,7 @@ echo 'Rendering performance (Compressed)' # #benchmark "file${hpad}\tsize${hpad}\telement${hpad}\t\tsabber${hpad}\t\tast" "./render.php -c" "./renderSabberWorm.php -c" "./renderast.php -c" # "element" involves an additional step to turn ast into element class instance, which is always slower and not fair ... -benchmark "file${hpad}\tsize${hpad}\t\tsabber${hpad}\t\tast" "./renderSabberWorm.php -c" "./renderast.php -c" +benchmark "file${hpad}\tsize${hpad}\t\tsabber${hpad}\t\tast\t\tRenderer::fromString" "./renderSabberWorm.php -c" "./renderast.php -c" "./render.php -c" echo "" #pad="\t\t" @@ -225,7 +225,7 @@ echo 'Size (Uncompressed)' # #getsize "file\t${hpad}size${hpad}\telement${hpad}\t\tsabber${hpad}\t\tast" "./render.php" "./renderSabberWorm.php" "./renderast.php" # "element" involves an additional step to turn ast into element class instance, which is always slower and not fair ... -getsize "file\t${hpad}size${hpad}\t\tsabber${hpad}\t\tast" "./renderSabberWorm.php" "./renderast.php" +getsize "file\t${hpad}size${hpad}\t\tsabber${hpad}\t\tast\t\tRenderer::fromString" "./renderSabberWorm.php" "./renderast.php" "./render.php" echo "" echo 'Size (Compressed)' @@ -233,4 +233,4 @@ echo 'Size (Compressed)' # #getsize "file\t${hpad}size${hpad}\telement${hpad}\t\tsabber${hpad}\t\tast" "./render.php -c" "./renderSabberWorm.php -c" "./renderast.php -c" # "element" involves an additional step to turn ast into element class instance, which is always slower and not fair ... -getsize "file\t${hpad}size${hpad}\t\tsabber${hpad}\t\tast" "./renderSabberWorm.php -c" "./renderast.php -c" +getsize "file\t${hpad}size${hpad}\t\tsabber${hpad}\t\tast\t\tRenderer::fromString" "./renderSabberWorm.php -c" "./renderast.php -c" "./render.php -c" diff --git a/bin/runtest.sh b/bin/runtest.sh index 09475da2..59c2524b 100755 --- a/bin/runtest.sh +++ b/bin/runtest.sh @@ -1,17 +1,15 @@ #!/bin/sh # # to run run a particular test, give the file name without extension as a parameter -## $ ./runtest.sh Render Path Ast -# to exclude specific tests, prepend '-' in front of the test name -## $ ./runtest.sh -Minify -Ast +## ./runtest.sh Render Ast Sourcemap +# to run all specific tests, prepend '-' in front of the test name to exclude +## ./runtest.sh -Minify -Ast -Sourcemap # to run all the tests with no argument ## ./runtest.sh #set -x ## DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P) cd "$DIR/../test/" -[ ! -f "../phpunit-5.phar" ] && - wget -O ../phpunit-5.phar https://phar.phpunit.de/phpunit-5.phar && - chmod +x ../phpunit-5.phar + php56=`command -v php5.6 2>/dev/null` if [ -z "$php56" ]; then @@ -29,7 +27,7 @@ if [ -z "$php56" ]; then sudo apt-get install -y python-software-properties sudo add-apt-repository -y ppa:ondrej/php sudo apt-get update -y - sudo apt-get install -y php5.6 php7.4 + sudo apt-get install -y php5.6 fi @@ -48,6 +46,12 @@ fi # ;; # esac fi +if [ ! -f "../vendor/bin/phpunit" ]; then + echo "please go to "$(dirname "$DIR")" and run 'composer install'" + exit 1 +fi + +unset DIR # # #../phpunit.phar --bootstrap autoload.php src/*.php @@ -60,10 +64,26 @@ fail() { exit 1 } +run() { + + # + # set -x + $php56 -dmemory_limit=512M ../vendor/bin/phpunit -v --enforce-time-limit --colors=always --bootstrap autoload.php --testdox --fail-on-risky "$@" + # set +x +} + +testName() { + + fname=$(basename "$1" | awk -F . '{print $1}') + + # strip the Test suffix + echo ""${fname%Test} +} + # # cd ../test -pwd +#pwd # # if [ $# -gt 0 ]; then @@ -74,9 +94,12 @@ if [ $# -gt 0 ]; then for file in $(ls src/*.php); do fname=$(basename "$file" | awk -F . '{print $1}') + # strip the Test suffix + fname=""${fname%Test} + case "$@" in *-$fname*) continue ;; - *) $php56 -dmemory_limit=256M ../phpunit-5.phar --colors=always --bootstrap autoload.php --testdox "$file" || fail "$file" ;; + *) run "$file" || fail "$file" ;; esac done ;; @@ -84,20 +107,21 @@ if [ $# -gt 0 ]; then for file in $(ls src/*.php); do fname=$(basename "$file" | awk -F . '{print $1}') + # strip the Test suffix + fname=""${fname%Test} case "$@" in - *$fname*) - echo "$fname" + *$fname*) - $php56 -dmemory_limit=256M ../phpunit-5.phar --colors=always --bootstrap autoload.php --testdox "$file" || fail "$file" + run "$file" || fail "$file" ;; esac done ;; esac else - # no argument - for file in $(ls src/*.php); do - $php56 -dmemory_limit=256M ../phpunit-5.phar --colors=always --bootstrap autoload.php --testdox "$file" || fail "$file" - done + # no argument + for file in $(ls src/*.php); do + run "$file" || fail "$file" + done fi diff --git a/cli/css-parser b/cli/css-parser index 9deb7931..cae7ab5f 100755 --- a/cli/css-parser +++ b/cli/css-parser @@ -1,16 +1,19 @@ -#!/bin/php +#!/usr/bin/env php - setStrict(true); - - $cli->addGroup('parse', "parse options:\n"); - $cli->add('capture-errors', 'ignore parse error', 'bool', 'e', false, false, null, null, 'parse'); - $cli->add('flatten-import', 'process @import', 'bool', 'm', false, false, null, null, 'parse'); - $cli->add('parse-allow-duplicate-rules', 'allow duplicate rule', 'bool', 'p',false, false, null, null, 'parse'); - $cli->add('parse-allow-duplicate-declarations', 'allow duplicate declaration', 'auto', 'd',false, false, null, null,'parse'); - $cli->add('file', 'css file or url', 'string', 'f', true, false, null, null, 'parse'); - - $cli->addGroup('render', "render options:\n"); - $cli->add('css-level', 'css color module', 'int', 'l', false, false, 4, [3, 4], 'render'); - $cli->add('charset', 'remove @charset', 'bool', 'S',false, false, true, null, 'render'); - $cli->add('compress', 'minify output', 'bool', 'c',false, false, null, null, 'render'); - $cli->add('sourcemap', 'generate sourcemap, require -o', 'bool', 's',false, false, null, null, 'render'); - $cli->add('remove-comments', 'remove comments', 'bool', 'C',false, false, null, null, 'render'); - $cli->add('preserve-license', 'preserve license comments', 'bool', 'L',false, false, null, null, 'render'); - $cli->add('legacy-rendering', 'legacy rendering', 'bool', 'G',false, false, null, null, 'render'); - $cli->add('compute-shorthand', 'compute shorthand properties', 'bool', 'u',false, false, null, null, 'render'); - $cli->add('remove-empty-nodes', 'remove empty nodes', 'bool', 'E',false, false, null, null, 'render'); - $cli->add('render-duplicate-declarations', 'render duplicate declarations', 'bool', 'r',false, false, null, null, 'render'); - $cli->add('output', 'output file name', 'string', 'o',false, false, null, null, 'render'); - $cli->add('ast', 'dump ast as JSON', 'bool', 'a',false, false, null, null, 'render'); - - $cli->parse(); + setStrict(true)-> + add('version', 'print version number', Option::BOOL, 'v', false) + ->addGroup('internal', "internal commands are used by the multithreading feature:\n", true) + ->add('parse-ast-src', 'src value of the ast nodes', Option::STRING, null,false, false, null, [], null, 'internal') + ->add('parse-ast-position-index', 'initial index position of the ast nodes', Option::INT, null,false, false, null, [], null, 'internal') + ->add('parse-ast-position-line', 'initial line number of the ast nodes', Option::INT, null,false, false, null, [], null, 'internal') + ->add('parse-ast-position-column', 'initial column number of the ast nodes', Option::INT, null, false,false, null, [], null, 'internal') + ->addGroup('parse', "Parse options:\n") + ->add('capture-errors', 'ignore parse error', Option::BOOL, 'e', false, false, null, [], null, 'parse') + ->add('flatten-import', 'process @import', Option::BOOL, 'm', false, false, null, [], null, 'parse') + ->add('parse-allow-duplicate-rules', 'allow duplicate rule', Option::BOOL, 'p', false, false, null, [], null, 'parse') + ->add('parse-allow-duplicate-declarations', 'allow duplicate declaration', Option::AUTO, 'd', false, false, null, [], null, 'parse') + ->add('file', 'input css file or url', Option::STRING, 'f', true, false, null, [], null, 'parse') + ->add('parse-multi-processing', 'enable multi-processing parser', Option::BOOL, 'M', false, false, true, [], null, 'parse') + ->add('parse-children-process', 'maximum children process', Option::INT, 'P', false, false, 20, [], null, 'parse') + ->add('input-format', 'input format: json (ast), serialize (PHP serialized ast)', Option::STRING, 'I', false, false, Option::STRING, [Option::STRING, 'json', 'serialize'], null, 'parse') + ->addGroup('render', "Render options:\n") + ->add('css-level', 'css color module', Option::INT, 'l', false, false, 4, [3, 4], null, 'render') + ->add('charset', 'remove @charset', Option::BOOL, 'S', false, false, false, [], null, 'render') + ->add('compress', 'minify output', Option::BOOL, 'c', false, false, null, [], null, 'render') + ->add('sourcemap', 'generate sourcemap', Option::BOOL, 's', false, false, null, [], 'file', 'render') + ->add('remove-comments', 'remove comments', Option::BOOL, 'C', false, false, null, [], null, 'render') + ->add('preserve-license', 'preserve license comments', Option::BOOL, 'L', false, false, null, [], null, 'render') + ->add('legacy-rendering', 'convert nested css syntax', Option::BOOL, 'G', false, false, null, [], null, 'render') + ->add('compute-shorthand', 'compute shorthand properties', Option::BOOL, 'u', false, false, null, [], null, 'render') + ->add('remove-empty-nodes', 'remove empty nodes', Option::BOOL, 'E', false, false, null, [], null, 'render') + ->add('render-allow-duplicate-declarations', 'render duplicate declarations', Option::BOOL, 'r', false, false, null, [], null, 'render') + ->add('convert-color', 'convert colors', Option::AUTO, 't', false, false, null, [true, false, 'hex', 'rgb', 'rgba', 'hsl', 'hsla', 'hwb', 'device-cmyk'], null, 'render') + ->add('output', 'output file name', Option::STRING, 'o', false, false, null, [], null, 'render') + ->add('ast', 'dump ast as JSON', Option::BOOL, 'a', false, false, null, [], null,'render') + ->add('output-format', "output export format. string (css), json (ast), serialize (PHP serialized ast), json-array, serialize-array", Option::STRING, 'F', false, false, Option::STRING, [Option::STRING, 'json', 'serialize', 'json-array', 'serialize-array'], 'input-format', 'render') + ->add('render-multi-processing', "enable multi-processing renderer", Option::BOOL, 'R', false, false, true, [], null, 'render') + ->parse(); $parseOptions = []; $renderOptions = []; @@ -69,8 +81,22 @@ try { $groups = $cli->getGroups(); $args = $cli->getArguments(); - $pipeIn = !posix_isatty(STDIN); - $pipeOut = !posix_isatty(STDOUT); + if (isset($args['version'])) { + + $data = json_decode(file_get_contents(__DIR__ . '/../package.json'), JSON_OBJECT_AS_ARRAY); + $metadata = json_decode(file_get_contents(__DIR__ . '/../composer.json'), JSON_OBJECT_AS_ARRAY); + + echo sprintf("%s (version %s) +Copyright (C) %s %s. +Dual licensed under MIT or LGPL v3\n", $exe, $data['version'], date('Y'), implode(', ', array_map(function ($author) { + + return $author['name']; + }, $metadata['authors']))); + exit (0); + } + + $pipeIn = !stream_isatty(STDIN); + $pipeOut = !stream_isatty(STDOUT); $inFile = $pipeIn ? STDIN : (isset($args['file']) ? $args['file'] : null); $outFile = $pipeOut ? STDOUT : (isset($args['output']) ? $args['output'] : STDOUT); @@ -84,7 +110,7 @@ try { if (!empty($args['_'])) { - fwrite(STDERR, "> notice: ignoring inline css\n"); + fwrite(STDERR, "> notice: ignoring inline css\n".json_encode($args['_'], JSON_PRETTY_PRINT)."\n"); } } @@ -93,11 +119,6 @@ try { fwrite(STDERR, "> notice: ignoring parameter --output\n"); } - if (isset($args['sourcemap']) && $outFile == STDOUT) { - - throw new InvalidArgumentException(sprintf("%s: --sourcemap requires --file parameter\nTry '%s --help'", $exe, $exe)); - } - foreach (array_keys($groups['parse']['arguments']) as $key) { if (isset($args[$key])) { @@ -110,74 +131,194 @@ try { if (isset($args[$key])) { - $renderOptions[str_replace(['parse-', '-'], ['', '_'], $key)] = $args[$key]; + $renderOptions[str_replace(['render-', '-'], ['', '_'], $key)] = $args[$key]; } } - $parser = new Parser('', $parseOptions); + foreach (array_keys($groups['internal']['arguments']) as $key) { - if ($inFile) { + if (isset($args[$key])) { - if ($inFile == STDIN) { + if (\str_starts_with($key, 'parse-')) { - $parser->appendContent(file_get_contents('php://stdin')); - } else { + $parseOptions[str_replace(['parse-', '-'], ['', '_'], $key)] = $args[$key]; + } else if (\str_starts_with($key, 'render-')) { - foreach ((array)$inFile as $file) { + $renderOptions[str_replace(['render-', '-'], ['', '_'], $key)] = $args[$key]; + } + } + } + + function read_input(array $parseOptions, $inFile) + { - $parser->load($file); + if ($inFile == STDIN) { + + $data = file_get_contents('php://stdin'); + + switch ($parseOptions['input_format']) { + case 'serialize': + yield unserialize($data); + break; + case 'json': + yield json_decode($data); + break; + default: + yield $data; + break; } } - } else if (!empty($args['_'])) { - $parser->appendContent(implode('', $args['_'])); - } else { + else { - // no input - exit(0); + foreach ((array)$inFile as $file) { + + if (!preg_match('#^(https?:)?//#', $file) && is_file($file)) { + + $data = file_get_contents($file); + + } + else { + + $data = Parser\Helper::fetchContent($file); + } + + switch($parseOptions['input_format']) { + case 'serialize': + yield $file =>unserialize($data); + break; + case 'json': + yield $file =>json_decode($data); + break; + default: + yield $file =>$data; + break; + }; + } + } } - if ($outFile) { + $ast = []; + $parser = new Parser('', $parseOptions); + + if ($parseOptions['input_format'] == Option::STRING) { - if (!empty($args['ast'])) { + if ($inFile) { - if ($outFile == STDOUT) { + if ($inFile == STDIN) { - fwrite($outFile, json_encode($parser->getAst(), empty($renderOptions['compress']) ? JSON_PRETTY_PRINT : 0)); + $parser->appendContent(file_get_contents('php://stdin')); } else { - file_put_contents($outFile, json_encode($parser->getAst(), empty($renderOptions['compress']) ? JSON_PRETTY_PRINT : 0)); + foreach ((array)$inFile as $file) { + + $parser->load($file); + } } + } else if (!empty($args['_'])) { + $parser->appendContent(implode('', $args['_'])); } else { - $renderer = new \TBela\CSS\Renderer($renderOptions); + // no input + exit(0); + } - if ($outFile == STDOUT) { + $ast = [$parser->getAst()]; + } - fwrite($outFile, $renderer->renderAst($parser)); - } else { + else { - $renderer->save($parser, $outFile); + // ast + foreach (read_input($parseOptions, $inFile) as $data) { + + $ast[] = $data; // $renderer->renderAst($data); + } + } + + if (empty($ast)) { + + exit(0); + } + + $parser->setContent(''); + + $root = (new Parser())->getAst(); + + $root->children = $ast; + $renderer = new Renderer($renderOptions); + + if ($outFile != STDOUT) { + + $renderer->save($root, $outFile); + } + + else if (in_array($renderOptions['output_format'], ['json-array', 'serialize-array'])) { + + $output = []; + + foreach ($root->children as $node) { + + $nodes = $node->type == 'Stylesheet' ? $node->children : [$node]; + + foreach ($nodes as $nod) { + + $css = $renderer->renderAst($nod); + + if (isset($output[$css])) { + + unset($output[$css]); + } + + $output[$css] = $css; } } + + fwrite($outFile, $renderOptions['output_format'] == 'serialize-array' ? serialize($output) : json_encode($output, empty($renderOptions['compress']) ? JSON_PRETTY_PRINT : 0)); + } + + else { + + $message = ''; + + switch ($renderOptions['output_format']) { + case 'json': + $message = json_encode(count($ast) == 1 ? $ast[0] : $root, empty($renderOptions['compress']) ? JSON_PRETTY_PRINT : 0); + break; + case 'serialize': + $message = serialize(count($ast) == 1 ? $ast[0] : $root); + break; + default: + $message = $renderer->renderAst($root); + break; + } + + fwrite($outFile, $message); } + + } catch (ValueError $e) { fwrite(STDERR, $e->getMessage() . "\n"); - exit($e->getCode()); -} catch (UnexpectedValueException $e) { + $code = $e->getCode(); + exit($code == 0 ? 1 : $code); +} +catch (UnexpectedValueException $e) { fwrite(STDERR, $e->getMessage() . "\n"); - exit($e->getCode()); -} catch (InvalidArgumentException $e) { + $code = $e->getCode(); + exit($code == 0 ? 1 : $code); +} +catch (InvalidArgumentException $e) { fwrite(STDERR, $e->getMessage() . "\n"); - exit($e->getCode()); + $code = $e->getCode(); + exit($code == 0 ? 1 : $code); } catch (MissingParameterException $e) { fwrite(STDERR, sprintf("%s: %s\nTry '%s --help'\n", $exe, $e->getMessage(), $exe)); - exit($e->getCode()); + $code = $e->getCode(); + exit($code == 0 ? 1 : $code); } catch (Exception $e) { fwrite(STDERR, $e->getMessage() . "\n"); diff --git a/cli/css-parser.bat b/cli/css-parser.bat new file mode 100644 index 00000000..e6e7c64d --- /dev/null +++ b/cli/css-parser.bat @@ -0,0 +1,2 @@ +@ECHO OFF +php "%~dp0/css-parser" %* diff --git a/composer.json b/composer.json index d152e3f2..5daebd31 100644 --- a/composer.json +++ b/composer.json @@ -1,48 +1,53 @@ -{ - "name": "tbela99/css", - "description": "A CSS parser and minifier written in PHP", - "type": "library", - "keywords": [ - "CSS", - "parser", - "minifier", - "beautifier", - "AST", - "PHP" - ], - "homepage": "https://github.com/tbela99/css", - "license": "MIT", - "authors": [ - { - "name": "Thierry Bela", - "homepage": "https://tbela.net", - "role": "Developer" - } - ], - "archive": { - "exclude": [ - "*.sh", - "*.phar", - "test/", - "tool/", - "docs/", - "bin/" - ] - }, - "autoload": { - "psr-4": { - "TBela\\CSS\\": "src" - } - }, - "require": { - "php": ">=5.6.40", - "ext-json": "*", - "ext-curl": "*", - "ext-mbstring": "*", - "axy/sourcemap": "^0.1.5", - "symfony/polyfill-mbstring": "^1.19" - }, - "scripts": { - "test": "./bin/runtest.sh" - } -} +{ + "name": "tbela99/css", + "description": "A CSS parser and minifier written in PHP", + "type": "library", + "keywords": [ + "CSS", + "parser", + "minifier", + "beautifier", + "Ast", + "PHP" + ], + "homepage": "https://github.com/tbela99/css", + "license": ["MIT", "LGPL-3.0-or-later"], + "authors": [ + { + "name": "Thierry Bela", + "homepage": "https://tbela.net", + "role": "Developer" + } + ], + "bin": ["cli/css-parser"], + "archive": { + "exclude": [ + "*.sh", + "*.phar", + "test/", + "tool/", + "docs/", + "bin/" + ] + }, + "autoload": { + "psr-4": { + "TBela\\CSS\\": "src" + } + }, + "suggest": { + "ext-curl": "*" + }, + "require": { + "php": ">=5.6.40", + "ext-json": "*", + "axy/sourcemap": "^0.1.5", + "symfony/process": "^3.4" + }, + "scripts": { + "test": "./bin/runtest.sh" + }, + "require-dev": { + "phpunit/phpunit": "^5.7" + } +} diff --git a/composer.lock b/composer.lock deleted file mode 100644 index edc45d6e..00000000 --- a/composer.lock +++ /dev/null @@ -1,277 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "c356beb5d226ffd541ad5114862c4ca5", - "packages": [ - { - "name": "axy/backtrace", - "version": "1.0.7", - "source": { - "type": "git", - "url": "https://github.com/axypro/backtrace.git", - "reference": "c6c7d0f3497a07ae934f9e8511cbc2286db311c5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/axypro/backtrace/zipball/c6c7d0f3497a07ae934f9e8511cbc2286db311c5", - "reference": "c6c7d0f3497a07ae934f9e8511cbc2286db311c5", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "axy\\backtrace\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Oleg Grigoriev", - "email": "go.vasac@gmail.com" - } - ], - "description": "Tracing in PHP", - "homepage": "https://github.com/axypro/backtrace", - "keywords": [ - "Backtrace", - "debug", - "exception", - "trace" - ], - "time": "2019-02-02T15:52:44+00:00" - }, - { - "name": "axy/codecs-base64vlq", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/axypro/codecs-base64vlq.git", - "reference": "53a1957f2cb773c6533ac615b3f1ac59e40e13cc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/axypro/codecs-base64vlq/zipball/53a1957f2cb773c6533ac615b3f1ac59e40e13cc", - "reference": "53a1957f2cb773c6533ac615b3f1ac59e40e13cc", - "shasum": "" - }, - "require": { - "axy/errors": "~1.0.1", - "php": ">=5.4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "axy\\codecs\\base64vlq\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Oleg Grigoriev", - "email": "go.vasac@gmail.com" - } - ], - "description": "Codec for VLQ (variable-length quantity) Base64 algorithm", - "homepage": "https://github.com/axypro/codecs-base64vlq", - "keywords": [ - "Source map", - "VLQ", - "Variable length quantity", - "base64", - "codec" - ], - "time": "2015-11-23T07:08:52+00:00" - }, - { - "name": "axy/errors", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/axypro/errors.git", - "reference": "2c64374ae2b9ca51304c09b6b6acc275557fc34f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/axypro/errors/zipball/2c64374ae2b9ca51304c09b6b6acc275557fc34f", - "reference": "2c64374ae2b9ca51304c09b6b6acc275557fc34f", - "shasum": "" - }, - "require": { - "axy/backtrace": "~1.0.2", - "php": ">=5.4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "axy\\errors\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Oleg Grigoriev", - "email": "go.vasac@gmail.com" - } - ], - "description": "Exceptions in PHP", - "homepage": "https://github.com/axypro/errors", - "keywords": [ - "error", - "exception" - ], - "time": "2019-02-02T18:26:18+00:00" - }, - { - "name": "axy/sourcemap", - "version": "0.1.5", - "source": { - "type": "git", - "url": "https://github.com/axypro/sourcemap.git", - "reference": "95a52df5a08c3a011031dae2e79390134e28467c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/axypro/sourcemap/zipball/95a52df5a08c3a011031dae2e79390134e28467c", - "reference": "95a52df5a08c3a011031dae2e79390134e28467c", - "shasum": "" - }, - "require": { - "axy/codecs-base64vlq": "~1.0.0", - "axy/errors": "~1.0.1", - "ext-json": "*", - "php": ">=5.4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "axy\\sourcemap\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Oleg Grigoriev", - "email": "go.vasac@gmail.com" - } - ], - "description": "Work with JavaScript/CSS Source Map", - "homepage": "https://github.com/axypro/sourcemap", - "keywords": [ - "Source map", - "css", - "javascript", - "sourcemap" - ], - "time": "2020-08-20T09:49:44+00:00" - }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.19.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b5f7b932ee6fa802fc792eabd77c4c88084517ce", - "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.19-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-23T09:01:57+00:00" - } - ], - "packages-dev": [], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": ">=5.6.40", - "ext-json": "*", - "ext-curl": "*", - "ext-mbstring": "*" - }, - "platform-dev": [], - "plugin-api-version": "1.1.0" -} diff --git a/docs/README.md b/docs/README.md index 669e5e4f..e8f50164 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,6 +10,7 @@ A CSS parser, beautifier and minifier written in PHP. It supports the following - multibyte characters encoding - sourcemap +- multiprocessing: process large CSS input very fast - CSS Nesting module - partially implemented CSS Syntax module level 3 - partial CSS validation @@ -31,13 +32,13 @@ A CSS parser, beautifier and minifier written in PHP. It supports the following install using [Composer](https://getcomposer.org/) ```bash -$ composer require tbela99/css +$ composer require "tbela99/css:dev-php56-backport" ``` ## Requirements -- PHP version >= 8.0 on master branch. -- PHP version >= 5.6 supported in [this branch](https://github.com/tbela99/css/tree/php56-backport) +This library requires: +- PHP version >= 5.6 - mbstring extension ## Usage: @@ -188,15 +189,15 @@ result ```css .form-select { - background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c -/svg%3e") -} -.form-check-input:checked[type=checkbox] { - background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/s -vg%3e") -} + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c + /svg%3e") + } + .form-check-input:checked[type=checkbox] { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/s + vg%3e") + } -... + ... ``` Example: Extract Font-src declaration @@ -225,7 +226,7 @@ h1 { @font-face { font-family: MaHelvetica; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), - url(MgOpenModernaBold.ttf); + url(MgOpenModernaBold.ttf); font-weight: bold; } body { @@ -240,7 +241,7 @@ h1 { @font-face { font-family: Arial, MaHelvetica; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), - url(MgOpenModernaBold.ttf); + url(MgOpenModernaBold.ttf); font-weight: bold; } } @@ -278,13 +279,13 @@ result @media print { @font-face { src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), - url(MgOpenModernaBold.ttf); + url(MgOpenModernaBold.ttf); } } @media print { @font-face { src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), - url(MgOpenModernaBold.ttf); + url(MgOpenModernaBold.ttf); } } ``` @@ -306,9 +307,9 @@ result src: url(/static/styles/libs/font-awesome/fonts/fontawesome-webfont.fdf491ce5ff5.woff) } @media print { - @font-face { - src: local("Helvetica Neue Bold"), local(HelveticaNeue-Bold), url(MgOpenModernaBold.ttf) - } + @font-face { + src: local("Helvetica Neue Bold"), local(HelveticaNeue-Bold), url(MgOpenModernaBold.ttf) + } } ``` @@ -316,18 +317,18 @@ result ```css table.colortable { - & td { +& td { text-align:center; - &.c { text-transform:uppercase } - &:first-child, &:first-child + td { border:1px solid black } - } +&.c { text-transform:uppercase } +&:first-child, &:first-child + td { border:1px solid black } +} & th { -text-align:center; -background:black; -color:white; -} + text-align:center; + background:black; + color:white; + } } ``` @@ -344,22 +345,22 @@ result ```css table.colortable { - & td { - text-align: center; - &.c { +& td { + text-align: center; +&.c { text-transform: uppercase - } - &:first-child, - &:first-child+td { - border: 1px solid #000 - } } - & th { - text-align: center; - background: #000; - color: #fff +&:first-child, +&:first-child+td { + border: 1px solid #000 } } +& th { + text-align: center; + background: #000; + color: #fff + } +} ``` @@ -380,19 +381,19 @@ result ```css table.colortable td { - text-align: center + text-align: center } table.colortable td.c { - text-transform: uppercase + text-transform: uppercase } table.colortable td:first-child, table.colortable td:first-child+td { - border: 1px solid #000 + border: 1px solid #000 } table.colortable th { - text-align: center; - background: #000; - color: #fff + text-align: center; + background: #000; + color: #fff } ``` @@ -599,7 +600,7 @@ echo $renderer->render($parser->parse()); ## Parser Options - flatten_import: process @import directive and import the content into the css document. default to false. -- allow_duplicate_rules: allow duplicated rules. By default duplicate rules except @font-face are merged +- allow_duplicate_rules: allow duplicated rules. By default, duplicate rules except @font-face are merged - allow_duplicate_declarations: allow duplicated declarations in the same rule. - capture_errors: silently capture parse error if true, otherwise throw a parse exception. Default to true @@ -623,53 +624,64 @@ echo $renderer->render($parser->parse()); the command line utility is located at './cli/css-parser' ```bash - $ ./cli/css-parser -h Usage: $ css-parser [OPTIONS] [PARAMETERS] +-v, --version print version number -h print help --help print extended help -parse options: +Parse options: -e, --capture-errors ignore parse error --f, --file css file or url +-f, --file input css file or url -m, --flatten-import process @import +-I, --input-format input format: json (ast), serialize (PHP serialized ast) + -d, --parse-allow-duplicate-declarations allow duplicate declaration -p, --parse-allow-duplicate-rules allow duplicate rule -render options: +-P, --parse-children-process maximum children process + +-M, --parse-multi-processing enable multi-processing parser + +Render options: + +-a, --ast dump ast as JSON + +-S, --charset remove @charset --a, --ast dump ast as JSON +-c, --compress minify output --S, --charset remove @charset +-u, --compute-shorthand compute shorthand properties --c, --compress minify output +-t, --convert-color convert colors --u, --compute-shorthand compute shorthand properties +-l, --css-level css color module --l, --css-level css color module +-G, --legacy-rendering convert nested css syntax --G, --legacy-rendering legacy rendering +-o, --output output file name --o, --output output file name +-F, --output-format output export format. string (css), json (ast), serialize (PHP serialized ast), json-array, serialize-array, requires --input-format --L, --preserve-license preserve license comments +-L, --preserve-license preserve license comments --C, --remove-comments remove comments +-C, --remove-comments remove comments --E, --remove-empty-nodes remove empty nodes +-E, --remove-empty-nodes remove empty nodes --r, --render-duplicate-declarations render duplicate declarations +-r, --render-allow-duplicate-declarations render duplicate declarations --s, --sourcemap generate sourcemap, require -o +-R, --render-multi-processing enable multi-processing renderer +-s, --sourcemap generate sourcemap, requires --file ``` ### Minify inline css @@ -683,7 +695,7 @@ $ echo 'a, div {display:none} b {}' | ./cli/css-parser -c ### Minify css file ```bash -$ ./cli/css-parser -f nested.css -f 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css' -c +$ ./cli/css-parser -f nested.css -c # $ ./cli/css-parser -f 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css' -c ``` @@ -691,7 +703,7 @@ $ ./cli/css-parser -f 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15. ### Dump ast ```bash -$ ./cli/css-parser -f nested.css -c -a +$ ./cli/css-parser -f nested.css -f 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css' -c -a # $ ./cli/css-parser 'a, div {display:none} b {}' -c -a # diff --git a/docs/api/html/annotated.html b/docs/api/html/annotated.html index 8214dbc3..a717d59f 100644 --- a/docs/api/html/annotated.html +++ b/docs/api/html/annotated.html @@ -86,119 +86,148 @@
Here are the classes, structs, unions and interfaces with brief descriptions:
-
[detail level 1234]
+
[detail level 12345]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 NTBela
 NCSS
 NAst
 NElement
 NEvent
 NExceptions
 NInterfaces
 NParser
 NProperty
 NQuery
 NValue
 CColor
 CCompiler
 CElement
 CParser
 CRenderer
 CValue
 NCli
 NElement
 NEvent
 NExceptions
 NInterfaces
 NParser
 NProcess
 NProperty
 NQuery
 NValue
 CColor
 CElement
 CParser
 CRenderer
 CValue
diff --git a/docs/api/html/classes.html b/docs/api/html/classes.html index c21fc027..739b7a10 100644 --- a/docs/api/html/classes.html +++ b/docs/api/html/classes.html @@ -85,179 +85,213 @@
Class Index
-
a | b | c | d | e | f | h | i | l | n | o | p | q | r | s | t | u | v | w
+
a | b | c | d | e | f | h | i | l | m | n | o | p | q | r | s | t | u | v | w
- - - - - - + + - - - - - - - + - - - - + - + - - - + + + - + - + + - + - - + - - - - + + + - + - - + + - + - - + + - + - - + + - - + + + - + - - + - + - + + - - - + + + + - + - - + - + - - + + - + - - + + - - - - + + + - + - - + + + + + + - - - + + + + - + - - + + + - + - - - + + - - + + - - - - + + + + + + + + + + + + + + + + + + + - - - + + + - + + + + + + + + + + + + - - + + + + + + + + + + + + +
  a  
Value\CssUrl (TBela\CSS)   
  n  
-
Renderer (TBela\CSS)   TokenSelectorValueAttributeFunctionComment (TBela\CSS\Query)   
  d  
+
Element\Declaration (TBela\CSS)   Value\LineHeight (TBela\CSS)   
  r  
Element\Rule (TBela\CSS)   TokenSelectorValueAttributeFunctionContains (TBela\CSS\Query)   
Element\AtRule (TBela\CSS)   Value\Number (TBela\CSS)   Element\RuleList (TBela\CSS)    TokenSelectorValueAttributeFunctionEmpty (TBela\CSS\Query)   
  b  
+
DuplicateArgumentException (TBela\CSS\Cli\Exceptions)   
  m  
Element\Declaration (TBela\CSS)   
  o  
-
RuleListInterface (TBela\CSS\Interfaces)    TokenSelectorValueAttributeFunctionEndswith (TBela\CSS\Query)   
  e  
+
Args (TBela\CSS\Cli)   
  e  
Element\RuleSet (TBela\CSS)   RenderableInterface (TBela\CSS\Interfaces)    TokenSelectorValueAttributeFunctionEquals (TBela\CSS\Query)   
Value\Background (TBela\CSS)   ObjectInterface (TBela\CSS\Interfaces)   
  s  
-
Element\AtRule (TBela\CSS)   MissingParameterException (TBela\CSS\Cli\Exceptions)   RenderablePropertyInterface (TBela\CSS\Interfaces)    TokenSelectorValueAttributeFunctionGeneric (TBela\CSS\Query)   
Value\BackgroundAttachment (TBela\CSS)   
AtRule (TBela\CSS\Parser\Validator)    Element (TBela\CSS)   Value\Operator (TBela\CSS)   
  n  
+
Renderer (TBela\CSS)    TokenSelectorValueAttributeFunctionNot (TBela\CSS\Query)   
Value\BackgroundClip (TBela\CSS)   
  b  
+
ElementInterface (TBela\CSS\Interfaces)   Value\Outline (TBela\CSS)   Value\Separator (TBela\CSS)   Element\Rule (TBela\CSS)    TokenSelectorValueAttributeIndex (TBela\CSS\Query)   
Value\BackgroundColor (TBela\CSS)   Evaluator (TBela\CSS\Query)   Value\OutlineColor (TBela\CSS)   Value\Set (TBela\CSS)   
Evaluator (TBela\CSS\Query)   NestingAtRule (TBela\CSS\Parser\Validator)   Rule (TBela\CSS\Parser\Validator)    TokenSelectorValueAttributeSelector (TBela\CSS\Query)   
Value\BackgroundImage (TBela\CSS)   
Value\Background (TBela\CSS)    Event (TBela\CSS\Event)   Value\OutlineStyle (TBela\CSS)   Value\ShortHand (TBela\CSS)   Element\NestingAtRule (TBela\CSS)   Element\RuleList (TBela\CSS)    TokenSelectorValueAttributeString (TBela\CSS\Query)   
Value\BackgroundOrigin (TBela\CSS)   
Value\BackgroundAttachment (TBela\CSS)    EventInterface (TBela\CSS\Event)   Value\OutlineWidth (TBela\CSS)   Parser\SourceLocation (TBela\CSS)   NestingMedialRule (TBela\CSS\Parser\Validator)   RuleListInterface (TBela\CSS\Interfaces)    TokenSelectorValueAttributeTest (TBela\CSS\Query)   
Value\BackgroundPosition (TBela\CSS)   
Value\BackgroundClip (TBela\CSS)   
  f  
  p  
-
Element\Stylesheet (TBela\CSS)   Element\NestingMediaRule (TBela\CSS)   Element\RuleSet (TBela\CSS)    TokenSelectorValueInterface (TBela\CSS\Query)   
Value\BackgroundRepeat (TBela\CSS)   Parser\SyntaxError (TBela\CSS)   
Value\BackgroundColor (TBela\CSS)   NestingRule (TBela\CSS\Parser\Validator)   
  s  
+
TokenSelectorValueSeparator (TBela\CSS\Query)   
Value\BackgroundSize (TBela\CSS)   
Value\BackgroundImage (TBela\CSS)    Value\Font (TBela\CSS)   ParsableInterface (TBela\CSS\Interfaces)   
  t  
-
Element\NestingRule (TBela\CSS)    TokenSelectorValueString (TBela\CSS\Query)   
  c  
-
Value\BackgroundOrigin (TBela\CSS)    Value\FontFamily (TBela\CSS)   Parser (TBela\CSS\Query)   Value\Number (TBela\CSS)   Value\Separator (TBela\CSS)    TokenSelectorValueWhitespace (TBela\CSS\Query)   
Value\FontSize (TBela\CSS)   Parser (TBela\CSS)   Token (TBela\CSS\Query)   
Value\BackgroundPosition (TBela\CSS)   Value\FontSize (TBela\CSS)   
  o  
+
Value\ShortHand (TBela\CSS)    TokenWhitespace (TBela\CSS\Query)   
Color (TBela\CSS)   
Value\BackgroundRepeat (TBela\CSS)    Value\FontStretch (TBela\CSS)   Parser\Position (TBela\CSS)   TokenInterface (TBela\CSS\Query)   Parser\SourceLocation (TBela\CSS)    Traverser (TBela\CSS\Ast)   
Value\Color (TBela\CSS)   
Value\BackgroundSize (TBela\CSS)    Value\FontStyle (TBela\CSS)   Property (TBela\CSS\Property)   TokenList (TBela\CSS\Query)   ObjectInterface (TBela\CSS\Interfaces)   Element\Stylesheet (TBela\CSS)   
  u  
Value\Comment (TBela\CSS)   
  c  
+
Value\FontVariant (TBela\CSS)   PropertyList (TBela\CSS\Property)   TokenSelect (TBela\CSS\Query)   Value\Operator (TBela\CSS)   Parser\SyntaxError (TBela\CSS)   
Element\Comment (TBela\CSS)   Value\FontWeight (TBela\CSS)   PropertyMap (TBela\CSS\Property)   TokenSelectInterface (TBela\CSS\Query)   
Value\FontWeight (TBela\CSS)   Option (TBela\CSS\Cli)   
  t  
+
Value\Unit (TBela\CSS)   
Comment (TBela\CSS\Property)   
Color (TBela\CSS)   
  h  
PropertySet (TBela\CSS\Property)   TokenSelector (TBela\CSS\Query)   Value\Outline (TBela\CSS)   UnknownParameterException (TBela\CSS\Cli\Exceptions)   
Value\Color (TBela\CSS)   Value\OutlineColor (TBela\CSS)   Token (TBela\CSS\Query)   
  v  
Compiler (TBela\CSS)   
  q  
-
TokenSelectorInterface (TBela\CSS\Query)   
Element\Comment (TBela\CSS)   Helper (TBela\CSS\Process)   Value\OutlineStyle (TBela\CSS)   TokenInterface (TBela\CSS\Query)   
Config (TBela\CSS\Property)   
Comment (TBela\CSS\Parser\Validator)    Parser\Helper (TBela\CSS)   TokenSelectorValue (TBela\CSS\Query)   Value (TBela\CSS)   Value\OutlineWidth (TBela\CSS)   TokenList (TBela\CSS\Query)   ValidatorInterface (TBela\CSS\Interfaces)   
Value\CssAttribute (TBela\CSS)   
Comment (TBela\CSS\Property)   
  i  
QueryInterface (TBela\CSS\Query)   TokenSelectorValueAttribute (TBela\CSS\Query)   
  w  
+
  p  
TokenSelect (TBela\CSS\Query)   Value (TBela\CSS)   
Value\CSSFunction (TBela\CSS)   
  r  
+
Value\Comment (TBela\CSS)   TokenSelectInterface (TBela\CSS\Query)   
  w  
TokenSelectorValueAttributeExpression (TBela\CSS\Query)   
Value\CssParenthesisExpression (TBela\CSS)   IOException (TBela\CSS\Exceptions)   TokenSelectorValueAttributeFunction (TBela\CSS\Query)   
Config (TBela\CSS\Property)   InvalidAtRule (TBela\CSS\Parser\Validator)   ParsableInterface (TBela\CSS\Interfaces)   TokenSelector (TBela\CSS\Query)   
Value\CssAttribute (TBela\CSS)   InvalidComment (TBela\CSS\Parser\Validator)   Parser (TBela\CSS)   TokenSelectorInterface (TBela\CSS\Query)    Value\Whitespace (TBela\CSS)   
Value\CssFunction (TBela\CSS)   Value\InvalidComment (TBela\CSS)   Parser (TBela\CSS\Query)   TokenSelectorValue (TBela\CSS\Query)   
Value\CssParenthesisExpression (TBela\CSS)   Value\InvalidCssFunction (TBela\CSS)   Pool (TBela\CSS\Process)   TokenSelectorValueAttribute (TBela\CSS\Query)   
Value\CssSrcFormat (TBela\CSS)   
  l  
-
RenderableInterface (TBela\CSS\Interfaces)   TokenSelectorValueAttributeFunctionBeginswith (TBela\CSS\Query)   Value\InvalidCssString (TBela\CSS)   Parser\Position (TBela\CSS)   TokenSelectorValueAttributeExpression (TBela\CSS\Query)   
Value\CssString (TBela\CSS)   RenderablePropertyInterface (TBela\CSS\Interfaces)   InvalidDeclaration (TBela\CSS\Parser\Validator)   Property (TBela\CSS\Property)   TokenSelectorValueAttributeFunction (TBela\CSS\Query)   
Value\CssUrl (TBela\CSS)   InvalidRule (TBela\CSS\Parser\Validator)   PropertyList (TBela\CSS\Property)   TokenSelectorValueAttributeFunctionBeginswith (TBela\CSS\Query)   
  d  
+
InvalidTokenInterface (TBela\CSS\Interfaces)   PropertyMap (TBela\CSS\Property)    TokenSelectorValueAttributeFunctionColor (TBela\CSS\Query)   
Value\LineHeight (TBela\CSS)   
IOException (TBela\CSS\Exceptions)   PropertySet (TBela\CSS\Property)   TokenSelectorValueAttributeFunctionComment (TBela\CSS\Query)   
Declaration (TBela\CSS\Parser\Validator)   
  l  
+
  q  
+
TokenSelectorValueAttributeFunctionContains (TBela\CSS\Query)   
Parser\Lexer (TBela\CSS)   QueryInterface (TBela\CSS\Query)   
-
a | b | c | d | e | f | h | i | l | n | o | p | q | r | s | t | u | v | w
+
a | b | c | d | e | f | h | i | l | m | n | o | p | q | r | s | t | u | v | w
diff --git a/docs/api/html/d0/d20/classTBela_1_1CSS_1_1Value_1_1CSSFunction-members.html b/docs/api/html/d0/d15/classTBela_1_1CSS_1_1Value_1_1InvalidComment-members.html similarity index 57% rename from docs/api/html/d0/d20/classTBela_1_1CSS_1_1Value_1_1CSSFunction-members.html rename to docs/api/html/d0/d15/classTBela_1_1CSS_1_1Value_1_1InvalidComment-members.html index c8626391..c13bd0c9 100644 --- a/docs/api/html/d0/d20/classTBela_1_1CSS_1_1Value_1_1CSSFunction-members.html +++ b/docs/api/html/d0/d15/classTBela_1_1CSS_1_1Value_1_1InvalidComment-members.html @@ -62,7 +62,7 @@
@@ -82,44 +82,47 @@
-
TBela\CSS\Value\CSSFunction Member List
+
TBela\CSS\Value\InvalidComment Member List
-

This is the complete list of members for TBela\CSS\Value\CSSFunction, including all inherited members.

+

This is the complete list of members for TBela\CSS\Value\InvalidComment, including all inherited members.

- - - - - - - - - + + + + + + + + + + + - - - - - + + + + + - + - + - - - - + + + + +
$cache (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$dataTBela\CSS\Valueprotected
$defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
$keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
__construct($data)TBela\CSS\Valueprotected
__destruct()TBela\CSS\Value
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic
getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getHash()TBela\CSS\Value\CSSFunction
__construct(object $data)TBela\CSS\Valueprotected
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
doRecover(object $data)TBela\CSS\Value\InvalidCommentstatic
equals(array $value, array $otherValue)TBela\CSS\Valuestatic
escape($value)TBela\CSS\Valuestatic
format($string, ?array &$comments=null)TBela\CSS\Valuestatic
getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(Value $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic
getType(string $token)TBela\CSS\Valueprotectedstatic
getValue()TBela\CSS\Value\CSSFunction
getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(object $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
keywords()TBela\CSS\Valuestatic
match(string $type)TBela\CSS\Value
match(object $data, string $type)TBela\CSS\Valuestatic
matchDefaults($token)TBela\CSS\Valueprotectedstatic
matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic
parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic
parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
render(array $options=[])TBela\CSS\Value\CSSFunction
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Value\CSSFunctionprotectedstatic
render(array $options=[])TBela\CSS\Value\InvalidComment
renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Valueprotectedstatic
diff --git a/docs/api/html/d0/d18/classTBela_1_1CSS_1_1Value_1_1Color.html b/docs/api/html/d0/d18/classTBela_1_1CSS_1_1Value_1_1Color.html index 905976ac..78d51e25 100644 --- a/docs/api/html/d0/d18/classTBela_1_1CSS_1_1Value_1_1Color.html +++ b/docs/api/html/d0/d18/classTBela_1_1CSS_1_1Value_1_1Color.html @@ -84,7 +84,6 @@
Public Member Functions | Static Public Member Functions | -Protected Member Functions | Static Protected Member Functions | List of all members
@@ -108,21 +107,13 @@ - - - - - - - - @@ -133,6 +124,10 @@

Public Member Functions

 getHash ()
 
 match ($type)
 
 render (array $options=[])
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 toObject ()
 
 __toString ()
+ + + + @@ -149,31 +144,38 @@ static  + + + + - - + + + + + + + + + + - - - - - - -

Static Public Member Functions

static match (object $data, $type)
 
static doRender (object $data, array $options=[])
 
static rgba2string ($data, array $options=[])
 
rgba2cmyk_values (array $rgba_values, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
- - - + + + + + +

-Protected Member Functions

 __construct ($data)
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
@@ -184,15 +186,18 @@ - - - - - - + + + + + +

Static Protected Member Functions

 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ + + @@ -210,9 +215,9 @@ static array 

Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
$cache = []
 
-

Constructor & Destructor Documentation

- -

◆ __construct()

+

Member Function Documentation

+ +

◆ doRender()

-

Member Function Documentation

- -

◆ getHash()

+ +

◆ match()

+ + + + + +
- + - - + + -
TBela\CSS\Value\Color::getHash static TBela\CSS\Value\Color::match ()object $data,
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

- -
- - -

◆ match()

- -
-
- - - + + - + + + + +
TBela\CSS\Value\Color::match (  $type)$type 
)
+
+static

@inheritDoc

@@ -331,7 +346,7 @@

TBela\CSS\Event\Event +TBela\CSS\Process\Pool TBela\CSS\Ast\Traverser

@@ -114,7 +115,7 @@  
The documentation for this interface was generated from the following file:
diff --git a/docs/api/html/d0/d24/interfaceTBela_1_1CSS_1_1Event_1_1EventInterface.png b/docs/api/html/d0/d24/interfaceTBela_1_1CSS_1_1Event_1_1EventInterface.png index 980c943b..3df2767b 100644 Binary files a/docs/api/html/d0/d24/interfaceTBela_1_1CSS_1_1Event_1_1EventInterface.png and b/docs/api/html/d0/d24/interfaceTBela_1_1CSS_1_1Event_1_1EventInterface.png differ diff --git a/docs/api/html/d0/d59/classTBela_1_1CSS_1_1Cli_1_1Args-members.html b/docs/api/html/d0/d59/classTBela_1_1CSS_1_1Cli_1_1Args-members.html new file mode 100644 index 00000000..3a2ee76e --- /dev/null +++ b/docs/api/html/d0/d59/classTBela_1_1CSS_1_1Cli_1_1Args-members.html @@ -0,0 +1,119 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Cli\Args Member List
+
+
+ +

This is the complete list of members for TBela\CSS\Cli\Args, including all inherited members.

+ + + + + + + + + + + + + + + + + + +
$alias (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Argsprotected
$args (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Argsprotected
$argv (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Argsprotected
$flags (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Argsprotected
$groups (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Argsprotected
$settings (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Argsprotected
$strict (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Argsprotected
__construct(array $argv) (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Args
add(string $name, string $description, string $type, array|string $alias=null, $multiple=true, $required=false, $defaultValue=null, ?array $options=[], array|string|null $dependsOn=null, $group='default')TBela\CSS\Cli\Args
addGroup(string $group, string $description, bool $internal=false) (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Args
getArguments() (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Args
getGroups() (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Args
help($extended=false) (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Args
parseFlag(string &$name, array &$dynamicArgs)TBela\CSS\Cli\Argsprotected
printGroupHelp(array $group, bool $extended) (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Argsprotected
setDescription(string $description) (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Args
setStrict(bool $strict) (defined in TBela\CSS\Cli\Args)TBela\CSS\Cli\Args
+
+ + + + diff --git a/docs/api/html/d0/d76/classTBela_1_1CSS_1_1Value_1_1Whitespace-members.html b/docs/api/html/d0/d76/classTBela_1_1CSS_1_1Value_1_1Whitespace-members.html index 15e09b68..c92abb96 100644 --- a/docs/api/html/d0/d76/classTBela_1_1CSS_1_1Value_1_1Whitespace-members.html +++ b/docs/api/html/d0/d76/classTBela_1_1CSS_1_1Value_1_1Whitespace-members.html @@ -93,33 +93,36 @@ $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\Whitespace - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic - getValue()TBela\CSS\Value\Whitespace + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + getValue()TBela\CSS\Value\Whitespace + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\Whitespace - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Value\Whitespaceprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Value\Whitespaceprotectedstatic diff --git a/docs/api/html/d0/d88/classTBela_1_1CSS_1_1Property_1_1PropertyMap.html b/docs/api/html/d0/d88/classTBela_1_1CSS_1_1Property_1_1PropertyMap.html index c951e468..efeb914b 100644 --- a/docs/api/html/d0/d88/classTBela_1_1CSS_1_1Property_1_1PropertyMap.html +++ b/docs/api/html/d0/d88/classTBela_1_1CSS_1_1Property_1_1PropertyMap.html @@ -95,6 +95,12 @@ Public Member Functions  __construct (string $shorthand, array $config)   +has ($property) +  +remove ($property) +   set (string $name, $value, ?array $leadingcomments=null, ?array $trailingcomments=null)    getProperties () @@ -284,17 +290,13 @@

Parameters
- + + +
string$name
Set | string$value
array | string$value
array | null$leadingcomments
array | null$trailingcomments
Returns
PropertyMap
-
Exceptions
- - -
-
-
@@ -334,7 +336,7 @@

Parameters
- +
string$name
Value\Set | string$value
string$value
@@ -343,7 +345,7 @@

static reduce (array $tokens, array $options=[])   - Static Public Member Functions inherited from TBela\CSS\Value +static renderTokens (array $tokens, array $options=[], $join=null) +  +static match (object $data, string $type) +  static getClassName (string $type)   static getInstance ($data)   -static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='') -  +static equals (array $value, array $otherValue) +  +static format ($string, ?array &$comments=null) +  +static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static escape ($value) +  static keywords ()   -static getNumericValue (?Value $value, array $options=[]) -  -static getRGBValue (Value $value) -  -static getAngleValue (?Value $value, array $options=[]) -  +static getNumericValue (?object $value, array $options=[]) +  +static getRGBValue (object $value) +  +static getAngleValue (?object $value, array $options=[]) +  @@ -149,16 +161,10 @@ - - - - - - @@ -169,8 +175,8 @@   - - + + @@ -178,12 +184,12 @@ - - - - - - + + + + + + @@ -424,7 +430,7 @@


The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Exceptions/IOException.php
  • +
  • src/Exceptions/IOException.php
diff --git a/docs/api/html/d0/da5/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface.html b/docs/api/html/d0/da5/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface.html new file mode 100644 index 00000000..4c0b724f --- /dev/null +++ b/docs/api/html/d0/da5/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface.html @@ -0,0 +1,157 @@ + + + + + + + +CSS: TBela\CSS\Interfaces\InvalidTokenInterface Interface Reference + + + + + + + + + + + + + +
+
+

Static Protected Attributes

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 getHash ()
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
jsonSerialize ()
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+ + + + + +
+
CSS +
+
+ + + + + + + + + +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Interfaces\InvalidTokenInterface Interface Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Interfaces\InvalidTokenInterface:
+
+
+ + + + + +

+Static Public Member Functions

static doRecover (object $data)
 
+

Detailed Description

+

Interface implemented by Elements

+

Member Function Documentation

+ +

◆ doRecover()

+ +
+
+ + + + + +
+ + + + + + + + +
static TBela\CSS\Interfaces\InvalidTokenInterface::doRecover (object $data)
+
+static
+
+
+
The documentation for this interface was generated from the following file:
    +
  • src/Interfaces/InvalidTokenInterface.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d0/da5/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface.png b/docs/api/html/d0/da5/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface.png new file mode 100644 index 00000000..4cf47e91 Binary files /dev/null and b/docs/api/html/d0/da5/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface.png differ diff --git a/docs/api/html/d0/dce/namespaceTBela.html b/docs/api/html/d0/dce/namespaceTBela.html index 535496fb..23fc310b 100644 --- a/docs/api/html/d0/dce/namespaceTBela.html +++ b/docs/api/html/d0/dce/namespaceTBela.html @@ -90,23 +90,23 @@
  • Getter syntax: $value = $element['value']; // $value = $element->getValue()
  • Setter syntax: $element['value'] = $value; // $element->setValue($value);
  • -
  • Properties: $element['childNodes'], $element['firstChild'], $element['lastChild'] \CSS
  • +
  • Properties: $element['childNodes'], $element['firstChild'], $element['lastChild'], $element['parentNode'] \CSS

Ast|Element traverser \CSS\Ast

-

Css Compiler. Use Parser or Renderer \CSS

Deprecated:
deprecated since 0.2.0

Class AtRule \CSS\Element

css Comment \CSS\Element

Css node methods \CSS

Class Elements \CSS

Rules container \CSS

Css node base class \CSS

-

Interface Renderable \CSS @method getName(): string; @method getType(): string; @method getValue(): \TBela\CSS\Value\Set;

-

Interface renderable property \CSS\Property @method Set getValue() @method Set|string getName()

+

Interface Renderable \CSS @method getName(): string; @method getType(): string; @method getValue(): stringt; @method getRawValue(): ?array;

+

Interface Renderable \CSS

+

Interface renderable property \CSS\Property @method array|string getValue() @method string getName()

Interface implemented by rules containers \CSS

Class Helper \CSS\Parser

Class Position \CSS\Parser

Class Location \CSS\Parser

-

Css Parser \CSS

+

Css Parser \CSS ok

Comment property class \CSS\Property

Property configuration manager class \CSS\Property @ignore

Compute shorthand properties. Used internally by PropertyList to compute shorthand for properties of different types \CSS\Property

diff --git a/docs/api/html/d0/dce/namespaceTBela.js b/docs/api/html/d0/dce/namespaceTBela.js index d3cae69f..91ac7aa2 100644 --- a/docs/api/html/d0/dce/namespaceTBela.js +++ b/docs/api/html/d0/dce/namespaceTBela.js @@ -4,10 +4,22 @@ var namespaceTBela = [ "Ast", null, [ [ "Traverser", "dd/df5/classTBela_1_1CSS_1_1Ast_1_1Traverser.html", "dd/df5/classTBela_1_1CSS_1_1Ast_1_1Traverser" ] ] ], + [ "Cli", null, [ + [ "Exceptions", null, [ + [ "DuplicateArgumentException", "d3/dd5/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1DuplicateArgumentException.html", null ], + [ "MissingParameterException", "da/db8/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1MissingParameterException.html", null ], + [ "UnknownParameterException", "d9/d4a/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1UnknownParameterException.html", null ] + ] ], + [ "Args", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args" ], + [ "Option", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option" ] + ] ], [ "Element", null, [ [ "AtRule", "d7/d0d/classTBela_1_1CSS_1_1Element_1_1AtRule.html", "d7/d0d/classTBela_1_1CSS_1_1Element_1_1AtRule" ], [ "Comment", "d6/dfd/classTBela_1_1CSS_1_1Element_1_1Comment.html", null ], [ "Declaration", "d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.html", null ], + [ "NestingAtRule", "db/d88/classTBela_1_1CSS_1_1Element_1_1NestingAtRule.html", null ], + [ "NestingMediaRule", "d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.html", "d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule" ], + [ "NestingRule", "d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.html", "d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule" ], [ "Rule", "df/d73/classTBela_1_1CSS_1_1Element_1_1Rule.html", "df/d73/classTBela_1_1CSS_1_1Element_1_1Rule" ], [ "RuleList", "d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html", "d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList" ], [ "RuleSet", "d9/d56/classTBela_1_1CSS_1_1Element_1_1RuleSet.html", "d9/d56/classTBela_1_1CSS_1_1Element_1_1RuleSet" ], @@ -22,18 +34,38 @@ var namespaceTBela = ] ], [ "Interfaces", null, [ [ "ElementInterface", "d5/d9e/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface.html", "d5/d9e/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface" ], + [ "InvalidTokenInterface", "d0/da5/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface.html", null ], [ "ObjectInterface", "d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.html", "d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface" ], [ "ParsableInterface", "d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.html", "d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface" ], [ "RenderableInterface", "d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.html", "d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface" ], [ "RenderablePropertyInterface", "d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.html", null ], - [ "RuleListInterface", "d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface.html", "d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface" ] + [ "RuleListInterface", "d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface.html", "d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface" ], + [ "ValidatorInterface", "db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.html", "db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface" ] ] ], [ "Parser", null, [ + [ "Validator", null, [ + [ "AtRule", "d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.html", "d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule" ], + [ "Comment", "dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.html", "dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment" ], + [ "Declaration", "de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.html", "de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration" ], + [ "InvalidAtRule", "de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.html", "de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule" ], + [ "InvalidComment", "d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.html", "d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment" ], + [ "InvalidDeclaration", "df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.html", "df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration" ], + [ "InvalidRule", "d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.html", "d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule" ], + [ "NestingAtRule", "da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.html", "da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule" ], + [ "NestingMedialRule", "db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.html", "db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule" ], + [ "NestingRule", "de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.html", "de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule" ], + [ "Rule", "db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.html", "db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule" ] + ] ], [ "Helper", "d3/db4/classTBela_1_1CSS_1_1Parser_1_1Helper.html", null ], + [ "Lexer", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer" ], [ "Position", "d1/dd8/classTBela_1_1CSS_1_1Parser_1_1Position.html", "d1/dd8/classTBela_1_1CSS_1_1Parser_1_1Position" ], [ "SourceLocation", "d2/d99/classTBela_1_1CSS_1_1Parser_1_1SourceLocation.html", "d2/d99/classTBela_1_1CSS_1_1Parser_1_1SourceLocation" ], [ "SyntaxError", "da/dc4/classTBela_1_1CSS_1_1Parser_1_1SyntaxError.html", null ] ] ], + [ "Process", null, [ + [ "Helper", "db/d38/classTBela_1_1CSS_1_1Process_1_1Helper.html", null ], + [ "Pool", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool" ] + ] ], [ "Property", null, [ [ "Comment", "d6/d0a/classTBela_1_1CSS_1_1Property_1_1Comment.html", "d6/d0a/classTBela_1_1CSS_1_1Property_1_1Comment" ], [ "Config", "dd/dc1/classTBela_1_1CSS_1_1Property_1_1Config.html", null ], @@ -89,7 +121,7 @@ var namespaceTBela = [ "Color", "d0/d18/classTBela_1_1CSS_1_1Value_1_1Color.html", "d0/d18/classTBela_1_1CSS_1_1Value_1_1Color" ], [ "Comment", "d8/d66/classTBela_1_1CSS_1_1Value_1_1Comment.html", "d8/d66/classTBela_1_1CSS_1_1Value_1_1Comment" ], [ "CssAttribute", "d1/d80/classTBela_1_1CSS_1_1Value_1_1CssAttribute.html", "d1/d80/classTBela_1_1CSS_1_1Value_1_1CssAttribute" ], - [ "CSSFunction", "d1/d80/classTBela_1_1CSS_1_1Value_1_1CSSFunction.html", "d1/d80/classTBela_1_1CSS_1_1Value_1_1CSSFunction" ], + [ "CssFunction", "d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.html", "d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction" ], [ "CssParenthesisExpression", "db/de0/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression.html", "db/de0/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression" ], [ "CssSrcFormat", "d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html", "d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat" ], [ "CssString", "d3/d54/classTBela_1_1CSS_1_1Value_1_1CssString.html", "d3/d54/classTBela_1_1CSS_1_1Value_1_1CssString" ], @@ -98,24 +130,25 @@ var namespaceTBela = [ "FontFamily", "d2/da5/classTBela_1_1CSS_1_1Value_1_1FontFamily.html", null ], [ "FontSize", "d5/d56/classTBela_1_1CSS_1_1Value_1_1FontSize.html", "d5/d56/classTBela_1_1CSS_1_1Value_1_1FontSize" ], [ "FontStretch", "d1/de4/classTBela_1_1CSS_1_1Value_1_1FontStretch.html", "d1/de4/classTBela_1_1CSS_1_1Value_1_1FontStretch" ], - [ "FontStyle", "d8/db9/classTBela_1_1CSS_1_1Value_1_1FontStyle.html", "d8/db9/classTBela_1_1CSS_1_1Value_1_1FontStyle" ], - [ "FontVariant", "df/d1e/classTBela_1_1CSS_1_1Value_1_1FontVariant.html", "df/d1e/classTBela_1_1CSS_1_1Value_1_1FontVariant" ], + [ "FontStyle", "d8/db9/classTBela_1_1CSS_1_1Value_1_1FontStyle.html", null ], + [ "FontVariant", "df/d1e/classTBela_1_1CSS_1_1Value_1_1FontVariant.html", null ], [ "FontWeight", "d8/d56/classTBela_1_1CSS_1_1Value_1_1FontWeight.html", "d8/d56/classTBela_1_1CSS_1_1Value_1_1FontWeight" ], + [ "InvalidComment", "d8/dab/classTBela_1_1CSS_1_1Value_1_1InvalidComment.html", "d8/dab/classTBela_1_1CSS_1_1Value_1_1InvalidComment" ], + [ "InvalidCssFunction", "d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.html", "d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction" ], + [ "InvalidCssString", "db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.html", "db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString" ], [ "LineHeight", "dd/dfa/classTBela_1_1CSS_1_1Value_1_1LineHeight.html", "dd/dfa/classTBela_1_1CSS_1_1Value_1_1LineHeight" ], [ "Number", "da/d44/classTBela_1_1CSS_1_1Value_1_1Number.html", "da/d44/classTBela_1_1CSS_1_1Value_1_1Number" ], [ "Operator", "db/d5f/classTBela_1_1CSS_1_1Value_1_1Operator.html", "db/d5f/classTBela_1_1CSS_1_1Value_1_1Operator" ], [ "Outline", "da/db6/classTBela_1_1CSS_1_1Value_1_1Outline.html", null ], [ "OutlineColor", "d6/ddc/classTBela_1_1CSS_1_1Value_1_1OutlineColor.html", null ], [ "OutlineStyle", "df/d55/classTBela_1_1CSS_1_1Value_1_1OutlineStyle.html", null ], - [ "OutlineWidth", "d5/df3/classTBela_1_1CSS_1_1Value_1_1OutlineWidth.html", "d5/df3/classTBela_1_1CSS_1_1Value_1_1OutlineWidth" ], + [ "OutlineWidth", "d5/df3/classTBela_1_1CSS_1_1Value_1_1OutlineWidth.html", null ], [ "Separator", "d1/d60/classTBela_1_1CSS_1_1Value_1_1Separator.html", "d1/d60/classTBela_1_1CSS_1_1Value_1_1Separator" ], - [ "Set", "dd/d96/classTBela_1_1CSS_1_1Value_1_1Set.html", "dd/d96/classTBela_1_1CSS_1_1Value_1_1Set" ], - [ "ShortHand", "d8/d5c/classTBela_1_1CSS_1_1Value_1_1ShortHand.html", "d8/d5c/classTBela_1_1CSS_1_1Value_1_1ShortHand" ], + [ "ShortHand", "d8/d5c/classTBela_1_1CSS_1_1Value_1_1ShortHand.html", null ], [ "Unit", "dd/dcf/classTBela_1_1CSS_1_1Value_1_1Unit.html", "dd/dcf/classTBela_1_1CSS_1_1Value_1_1Unit" ], [ "Whitespace", "d6/d86/classTBela_1_1CSS_1_1Value_1_1Whitespace.html", "d6/d86/classTBela_1_1CSS_1_1Value_1_1Whitespace" ] ] ], [ "Color", "dd/d5a/classTBela_1_1CSS_1_1Color.html", "dd/d5a/classTBela_1_1CSS_1_1Color" ], - [ "Compiler", "d1/d8f/classTBela_1_1CSS_1_1Compiler.html", "d1/d8f/classTBela_1_1CSS_1_1Compiler" ], [ "Element", "d8/d23/classTBela_1_1CSS_1_1Element.html", "d8/d23/classTBela_1_1CSS_1_1Element" ], [ "Parser", "d8/d8b/classTBela_1_1CSS_1_1Parser.html", "d8/d8b/classTBela_1_1CSS_1_1Parser" ], [ "Renderer", "df/d08/classTBela_1_1CSS_1_1Renderer.html", "df/d08/classTBela_1_1CSS_1_1Renderer" ], diff --git a/docs/api/html/d0/ddf/classTBela_1_1CSS_1_1Parser_1_1Lexer-members.html b/docs/api/html/d0/ddf/classTBela_1_1CSS_1_1Parser_1_1Lexer-members.html new file mode 100644 index 00000000..d5bd231b --- /dev/null +++ b/docs/api/html/d0/ddf/classTBela_1_1CSS_1_1Parser_1_1Lexer-members.html @@ -0,0 +1,120 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Lexer Member List
+
+
+ +

This is the complete list of members for TBela\CSS\Parser\Lexer, including all inherited members.

+ + + + + + + + + + + + + + + + + + + +
$context (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexerprotected
$css (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexerprotected
$parentMediaRule (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexerprotected
$parentOffset (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexerprotected
$parentStylesheet (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexerprotected
$recover (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexerprotected
$src (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexerprotected
__construct(string $css='', object $context=null)TBela\CSS\Parser\Lexer
createContext()TBela\CSS\Parser\Lexer
doTokenize($css, $src, $recover, $context, $parentStylesheet, $parentMediaRule) (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexer
getStatus($event, object $rule, $context, $parentStylesheet)TBela\CSS\Parser\Lexerprotected
load($file, $media='')TBela\CSS\Parser\Lexer
parseComments(object $token) (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexerprotected
parseVendor($str)TBela\CSS\Parser\Lexerprotected
setContent($css)TBela\CSS\Parser\Lexer
setContext(object $context)TBela\CSS\Parser\Lexer
setParentOffset(object $parentOffset) (defined in TBela\CSS\Parser\Lexer)TBela\CSS\Parser\Lexer
tokenize()TBela\CSS\Parser\Lexer
+
+ + + + diff --git a/docs/api/html/d0/df9/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionGeneric.html b/docs/api/html/d0/df9/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionGeneric.html index 5c4eb6cd..310d1b7b 100644 --- a/docs/api/html/d0/df9/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionGeneric.html +++ b/docs/api/html/d0/df9/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionGeneric.html @@ -192,7 +192,7 @@

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - getHash () -  - match (string $type) -   render (array $options=[])    toObject () @@ -142,29 +136,41 @@  jsonSerialize ()   - Static Public Member Functions inherited from TBela\CSS\Value +static renderTokens (array $tokens, array $options=[], $join=null) +  +static match (object $data, string $type) +  static getClassName (string $type)   static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])   static getInstance ($data)   -static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='') -  +static equals (array $value, array $otherValue) +  +static format ($string, ?array &$comments=null) +  +static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  static reduce (array $tokens, array $options=[])   +static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static escape ($value) +  static keywords ()   static matchKeyword (string $string, array $keywords=null)   -static getNumericValue (?Value $value, array $options=[]) -  -static getRGBValue (Value $value) -  -static getAngleValue (?Value $value, array $options=[]) -  +static getNumericValue (?object $value, array $options=[]) +  +static getRGBValue (object $value) +  +static getAngleValue (?object $value, array $options=[]) +  - Protected Member Functions inherited from TBela\CSS\Value__construct ($data) -  + __construct (object $data) +  - Static Protected Member Functions inherited from TBela\CSS\Value static type ()   @@ -172,12 +178,12 @@   static validate ($data)   -static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='') -  -static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='') -  -static getType (string $token) -  +static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static indexOf (array $array, $search, int $offset=0) +  +static getType (string $token, $preserve_quotes=false) +  - Protected Attributes inherited from TBela\CSS\Value stdClass $data = null   @@ -215,7 +221,7 @@

$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected $parentTBela\CSS\Elementprotected - __clone()TBela\CSS\Element - __construct($ast=null, $parent=null)TBela\CSS\Element - __toString()TBela\CSS\Element - computeSignature()TBela\CSS\Elementprotected - copy()TBela\CSS\Element - deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element - deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected - from($css, array $options=[])TBela\CSS\Elementstatic - fromUrl($url, array $options=[])TBela\CSS\Elementstatic - getAst()TBela\CSS\Element - getInstance($ast)TBela\CSS\Elementstatic - getLeadingComments()TBela\CSS\Element - getParent()TBela\CSS\Element - getPosition()TBela\CSS\Element + $rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected + __clone()TBela\CSS\Element + __construct($ast=null, $parent=null)TBela\CSS\Element + __toString()TBela\CSS\Element + computeSignature()TBela\CSS\Elementprotected + copy()TBela\CSS\Element + deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element + deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected + from($css, array $options=[])TBela\CSS\Elementstatic + fromUrl($url, array $options=[])TBela\CSS\Elementstatic + getAst()TBela\CSS\Element + getInstance($ast)TBela\CSS\Elementstatic + getLeadingComments()TBela\CSS\Element + getParent()TBela\CSS\Element + getPosition()TBela\CSS\Element + getRawValue()TBela\CSS\Element getRoot()TBela\CSS\Element getSrc()TBela\CSS\Element getTrailingComments()TBela\CSS\Element diff --git a/docs/api/html/d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.html b/docs/api/html/d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.html index 769e619b..a4a1e020 100644 --- a/docs/api/html/d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.html +++ b/docs/api/html/d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.html @@ -98,7 +98,7 @@
The documentation for this interface was generated from the following file:
    -
  • src/TBela/CSS/Interfaces/RenderablePropertyInterface.php
  • +
  • src/Interfaces/RenderablePropertyInterface.php
diff --git a/docs/api/html/d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.png b/docs/api/html/d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.png index 6031696b..35e8dc9e 100644 Binary files a/docs/api/html/d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.png and b/docs/api/html/d1/d3e/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderablePropertyInterface.png differ diff --git a/docs/api/html/d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.html b/docs/api/html/d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.html index 2f8e02af..82b6836e 100644 --- a/docs/api/html/d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.html +++ b/docs/api/html/d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.html @@ -96,26 +96,32 @@
-TBela\CSS\Interfaces\ParsableInterface -TBela\CSS\Interfaces\ObjectInterface +TBela\CSS\Interfaces\ParsableInterface +TBela\CSS\Interfaces\ObjectInterface TBela\CSS\Property\Property -TBela\CSS\Query\QueryInterface +TBela\CSS\Query\QueryInterface TBela\CSS\Property\Comment -TBela\CSS\Interfaces\ElementInterface +TBela\CSS\Interfaces\ElementInterface TBela\CSS\Element -TBela\CSS\Interfaces\RuleListInterface +TBela\CSS\Interfaces\RuleListInterface TBela\CSS\Element\Comment TBela\CSS\Element\Declaration -TBela\CSS\Element\RuleList -TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet +TBela\CSS\Element\RuleSet +TBela\CSS\Element\Rule +TBela\CSS\Element\RuleSet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule
@@ -225,14 +231,14 @@

Returns
ObjectInterface
+
Returns
RenderableInterface

Implemented in TBela\CSS\Element, TBela\CSS\Property\Property, and TBela\CSS\Property\Comment.


The documentation for this interface was generated from the following file:
    -
  • src/TBela/CSS/Interfaces/RenderableInterface.php
  • +
  • src/Interfaces/RenderableInterface.php
diff --git a/docs/api/html/d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.png b/docs/api/html/d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.png index 38830122..570081b2 100644 Binary files a/docs/api/html/d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.png and b/docs/api/html/d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.png differ diff --git a/docs/api/html/d2/de8/classTBela_1_1CSS_1_1Compiler-members.html b/docs/api/html/d1/d5d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration-members.html similarity index 51% rename from docs/api/html/d2/de8/classTBela_1_1CSS_1_1Compiler-members.html rename to docs/api/html/d1/d5d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration-members.html index e532ed20..a868d08b 100644 --- a/docs/api/html/d2/de8/classTBela_1_1CSS_1_1Compiler-members.html +++ b/docs/api/html/d1/d5d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration-members.html @@ -62,7 +62,7 @@
@@ -82,23 +82,17 @@
-
TBela\CSS\Compiler Member List
+
TBela\CSS\Parser\Validator\Declaration Member List
-

This is the complete list of members for TBela\CSS\Compiler, including all inherited members.

+

This is the complete list of members for TBela\CSS\Parser\Validator\Declaration, including all inherited members.

- - - - - - - - - - - + + + + +
$data (defined in TBela\CSS\Compiler)TBela\CSS\Compilerprotected
$properties (defined in TBela\CSS\Compiler)TBela\CSS\Compilerprotected
$renderer (defined in TBela\CSS\Compiler)TBela\CSS\Compilerprotected
__construct(array $options=[])TBela\CSS\Compiler
compile()TBela\CSS\Compiler
getData()TBela\CSS\Compiler
getOptions() (defined in TBela\CSS\Compiler)TBela\CSS\Compiler
load(string $file, array $options=[], string $media='')TBela\CSS\Compiler
setContent($css, array $options=[])TBela\CSS\Compiler
setData($ast)TBela\CSS\Compiler
setOptions(array $options)TBela\CSS\Compiler
getError() (defined in TBela\CSS\Interfaces\ValidatorInterface)TBela\CSS\Interfaces\ValidatorInterface
REJECTTBela\CSS\Interfaces\ValidatorInterface
REMOVETBela\CSS\Interfaces\ValidatorInterface
VALIDTBela\CSS\Interfaces\ValidatorInterface
validate(object $token, object $parentRule, object $parentStylesheet)TBela\CSS\Parser\Validator\Declaration
diff --git a/docs/api/html/d1/d60/classTBela_1_1CSS_1_1Value_1_1Separator.html b/docs/api/html/d1/d60/classTBela_1_1CSS_1_1Value_1_1Separator.html index b9610c71..bc3f03f5 100644 --- a/docs/api/html/d1/d60/classTBela_1_1CSS_1_1Value_1_1Separator.html +++ b/docs/api/html/d1/d60/classTBela_1_1CSS_1_1Value_1_1Separator.html @@ -107,16 +107,10 @@  render (array $options=[])   - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - getHash () -  - match (string $type) -   toObject ()    __toString () @@ -134,39 +128,51 @@   static matchDefaults ($token)   -static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='') -  -static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='') -  -static getType (string $token) -  +static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static indexOf (array $array, $search, int $offset=0) +  +static getType (string $token, $preserve_quotes=false) +  + + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + @@ -236,7 +242,7 @@

- - - - - - @@ -142,29 +136,41 @@   + + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + @@ -172,12 +178,12 @@ - - - - - - + + + + + + @@ -214,7 +220,7 @@

- - - - - - - + + + + + + + + + - - - - - - + + + + + + - + - + - - - + + + +

Additional Inherited Members

- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 getHash ()
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
jsonSerialize ()
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
$defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
$keywords (defined in TBela\CSS\Value\OutlineStyle)TBela\CSS\Value\OutlineStyleprotectedstatic
__construct($data)TBela\CSS\Valueprotected
__destruct()TBela\CSS\Value
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic
getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic
__construct(object $data)TBela\CSS\Valueprotected
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
equals(array $value, array $otherValue)TBela\CSS\Valuestatic
escape($value)TBela\CSS\Valuestatic
format($string, ?array &$comments=null)TBela\CSS\Valuestatic
getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getHash()TBela\CSS\Value
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(Value $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic
getType(string $token)TBela\CSS\Valueprotectedstatic
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(object $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
keywords()TBela\CSS\Valuestatic
match(string $type)TBela\CSS\Value
match(object $data, string $type)TBela\CSS\Valuestatic
matchDefaults($token)TBela\CSS\Valueprotectedstatic
matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic
parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic
parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
render(array $options=[])TBela\CSS\Value
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Valueprotectedstatic
renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Valueprotectedstatic
diff --git a/docs/api/html/d1/d80/classTBela_1_1CSS_1_1Value_1_1CssAttribute.html b/docs/api/html/d1/d80/classTBela_1_1CSS_1_1Value_1_1CssAttribute.html index 50379779..a244183a 100644 --- a/docs/api/html/d1/d80/classTBela_1_1CSS_1_1Value_1_1CssAttribute.html +++ b/docs/api/html/d1/d80/classTBela_1_1CSS_1_1Value_1_1CssAttribute.html @@ -83,6 +83,7 @@

 render (array $options=[])   - getHash () -  - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - match (string $type) -   toObject ()    __toString () @@ -125,48 +120,66 @@  jsonSerialize ()   - - - - - - - - - - - - - - -

-Static Protected Member Functions

static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
- + + + + + + + - - + + + + + + + + + + - - - - - - + + + + + + +

-Additional Inherited Members

+Static Public Member Functions

+static doRender (object $data, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
+ + + + + + + + + + + + + + +

+Static Protected Member Functions

static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ - - + + @@ -185,26 +198,6 @@

+Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\CssAttribute::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

- -
-

◆ render()

@@ -268,7 +261,7 @@

__construct(string $shorthand, array $config)TBela\CSS\Property\PropertyMap __toString()TBela\CSS\Property\PropertyMap getProperties()TBela\CSS\Property\PropertyMap - isEmpty()TBela\CSS\Property\PropertyMap + has($property) (defined in TBela\CSS\Property\PropertyMap)TBela\CSS\Property\PropertyMap + isEmpty()TBela\CSS\Property\PropertyMap + remove($property) (defined in TBela\CSS\Property\PropertyMap)TBela\CSS\Property\PropertyMap render($join="\n")TBela\CSS\Property\PropertyMap set(string $name, $value, ?array $leadingcomments=null, ?array $trailingcomments=null)TBela\CSS\Property\PropertyMap setProperty($name, $value)TBela\CSS\Property\PropertyMapprotected diff --git a/docs/api/html/d1/dab/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEmpty.html b/docs/api/html/d1/dab/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEmpty.html index 55486597..baccb623 100644 --- a/docs/api/html/d1/dab/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEmpty.html +++ b/docs/api/html/d1/dab/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEmpty.html @@ -166,7 +166,7 @@

 
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Query/TokenSelectorValue.php
  • +
  • src/Query/TokenSelectorValue.php
diff --git a/docs/api/html/d1/db9/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValue.png b/docs/api/html/d1/db9/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValue.png index 6bf14c99..d9176875 100644 Binary files a/docs/api/html/d1/db9/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValue.png and b/docs/api/html/d1/db9/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValue.png differ diff --git a/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.html b/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.html new file mode 100644 index 00000000..c677be65 --- /dev/null +++ b/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\InvalidComment Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Parser\Validator\InvalidComment Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Parser\Validator\InvalidComment:
+
+
+ + + + + + + + +

+Public Member Functions

 validate (object $token, object $parentRule, object $parentStylesheet)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
getError ()
 
+ + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
const VALID = 1
 
const REMOVE = 2
 
const REJECT = 3
 
+

Member Function Documentation

+ +

◆ validate()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Validator\InvalidComment::validate (object $token,
object $parentRule,
object $parentStylesheet 
)
+
+
Parameters
+ + + + +
object$token
object$parentRule
object | null$parentStylesheet
+
+
+
Returns
int
+ +

Implements TBela\CSS\Interfaces\ValidatorInterface.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Parser/Validator/InvalidComment.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.js b/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.js new file mode 100644 index 00000000..35ff5436 --- /dev/null +++ b/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment = +[ + [ "validate", "d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.html#a8f380d72c5a86a4f81e69e72662ebcc0", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.png b/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.png new file mode 100644 index 00000000..0cb3f999 Binary files /dev/null and b/docs/api/html/d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.png differ diff --git a/docs/api/html/d1/dcc/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeTest.html b/docs/api/html/d1/dcc/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeTest.html index c1d93411..75b9321f 100644 --- a/docs/api/html/d1/dcc/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeTest.html +++ b/docs/api/html/d1/dcc/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeTest.html @@ -203,7 +203,7 @@

 
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Parser/Position.php
  • +
  • src/Parser/Position.php
diff --git a/docs/api/html/d1/de4/classTBela_1_1CSS_1_1Value_1_1FontStretch.html b/docs/api/html/d1/de4/classTBela_1_1CSS_1_1Value_1_1FontStretch.html index c82b0b8b..fc9453c6 100644 --- a/docs/api/html/d1/de4/classTBela_1_1CSS_1_1Value_1_1FontStretch.html +++ b/docs/api/html/d1/de4/classTBela_1_1CSS_1_1Value_1_1FontStretch.html @@ -107,17 +107,11 @@ Public Member Functions

 render (array $options=[])   - getHash () -  - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - match (string $type) -   toObject ()    __toString () @@ -131,24 +125,36 @@ static keywords ()   - Static Public Member Functions inherited from TBela\CSS\Value +static renderTokens (array $tokens, array $options=[], $join=null) +  +static match (object $data, string $type) +  static getClassName (string $type)   static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])   static getInstance ($data)   -static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='') -  +static equals (array $value, array $otherValue) +  +static format ($string, ?array &$comments=null) +  +static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  static reduce (array $tokens, array $options=[])   +static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static escape ($value) +  static matchKeyword (string $string, array $keywords=null)   -static getNumericValue (?Value $value, array $options=[]) -  -static getRGBValue (Value $value) -  -static getAngleValue (?Value $value, array $options=[]) -  +static getNumericValue (?object $value, array $options=[]) +  +static getRGBValue (object $value) +  +static getAngleValue (?object $value, array $options=[]) +  @@ -171,8 +177,8 @@ - - + + @@ -180,12 +186,12 @@ - - - - - - + + + + + + @@ -194,26 +200,6 @@

Static Protected Attributes

Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\FontStretch::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

- -
-

◆ keywords()

@@ -298,7 +284,7 @@

$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\FontSize)TBela\CSS\Value\FontSizeprotectedstatic __construct($data)TBela\CSS\Value\Numberprotected - __destruct()TBela\CSS\Value + TBela::CSS::Value::__construct(object $data)TBela\CSS\Valueprotected __get($name)TBela\CSS\Value __isset($name)TBela\CSS\Value __toString()TBela\CSS\Value - compress(string $value)TBela\CSS\Value\Numberstatic - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + compress(string $value, array $options=[])TBela\CSS\Value\Numberstatic + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[])TBela\CSS\Value\Unitstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\FontSize - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match($type)TBela\CSS\Value\Unit - TBela::CSS::Value::Number::match(string $type)TBela\CSS\Value\Number + match(object $data, $type)TBela\CSS\Value\Unitstatic + TBela::CSS::Value::Number::match(object $data, string $type)TBela\CSS\Value\Numberstatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, ?int $index=null, array $tokens=[])TBela\CSS\Value\FontSizestatic TBela::CSS::Value::Unit::matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\FontSize - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Value\Unitprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Value\Unitprotectedstatic diff --git a/docs/api/html/d2/d1d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule-members.html b/docs/api/html/d2/d1d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule-members.html new file mode 100644 index 00000000..c3d13458 --- /dev/null +++ b/docs/api/html/d2/d1d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Validator\AtRule Member List
+
+ +
+ + + + diff --git a/docs/api/html/d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.html b/docs/api/html/d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.html index 95a259bb..0f2b0581 100644 --- a/docs/api/html/d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.html +++ b/docs/api/html/d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.html @@ -120,6 +120,9 @@  addRule ($selectors)   - Public Member Functions inherited from TBela\CSS\Element\RuleList +__get ($name) +   addComment ($value)    hasChildren () @@ -155,6 +158,8 @@    getValue ()   + getRawValue () +   setValue ($value)    getParent () @@ -211,14 +216,17 @@  deduplicateDeclarations (array $options=[])   - Protected Attributes inherited from TBela\CSS\Element -$ast = null -  + +object $ast = null +  RuleListInterface $parent = null   + +array $rawValue = null + 
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Element/Stylesheet.php
  • +
  • src/Element/Stylesheet.php
diff --git a/docs/api/html/d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.png b/docs/api/html/d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.png index f45c39e5..4bfd8308 100644 Binary files a/docs/api/html/d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.png and b/docs/api/html/d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.png differ diff --git a/docs/api/html/d2/d99/classTBela_1_1CSS_1_1Parser_1_1SourceLocation.html b/docs/api/html/d2/d99/classTBela_1_1CSS_1_1Parser_1_1SourceLocation.html index 672fd790..d2cf43c2 100644 --- a/docs/api/html/d2/d99/classTBela_1_1CSS_1_1Parser_1_1SourceLocation.html +++ b/docs/api/html/d2/d99/classTBela_1_1CSS_1_1Parser_1_1SourceLocation.html @@ -120,12 +120,12 @@ - - - - + + + +

Protected Attributes

$start
 
$end
 
+Position $start
 
+Position $end
 

Member Function Documentation

@@ -248,7 +248,7 @@

static matchPattern (array $tokens)   - Static Public Member Functions inherited from TBela\CSS\Value +static renderTokens (array $tokens, array $options=[], $join=null) +  +static match (object $data, string $type) +  static getClassName (string $type)   static getInstance ($data)   -static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='') -  +static equals (array $value, array $otherValue) +  +static format ($string, ?array &$comments=null) +  +static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  static reduce (array $tokens, array $options=[])   +static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static escape ($value) +  static keywords ()   static matchKeyword (string $string, array $keywords=null)   -static getNumericValue (?Value $value, array $options=[]) -  -static getRGBValue (Value $value) -  -static getAngleValue (?Value $value, array $options=[]) -  +static getNumericValue (?object $value, array $options=[]) +  +static getRGBValue (object $value) +  +static getAngleValue (?object $value, array $options=[]) +  - - + + - - + + @@ -144,25 +156,18 @@ - - - - + + + +

Static Protected Member Functions

static doParse ($string, $capture_whitespace=true, $context='', $contextName='')
 
static doParse ($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
- Static Protected Member Functions inherited from TBela\CSS\Value\ShortHand
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- - - - - - - @@ -173,8 +178,8 @@   - - + + @@ -196,8 +201,8 @@

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value\ShortHand
 getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
jsonSerialize ()
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ doParse()

+ +

◆ doParse()

@@ -227,7 +232,13 @@

  - $contextName = ''  + $contextName = '', + + + + +   + $preserve_quotes = false  @@ -320,7 +331,7 @@

 render (array $options=[])   - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - getHash () -  - match (string $type) -   toObject ()    __toString () @@ -133,25 +127,40 @@ Static Public Member Functions

static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])   + +static doRender (object $data, array $options=[]) +  - Static Public Member Functions inherited from TBela\CSS\Value +static renderTokens (array $tokens, array $options=[], $join=null) +  +static match (object $data, string $type) +  static getClassName (string $type)   static getInstance ($data)   -static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='') -  +static equals (array $value, array $otherValue) +  +static format ($string, ?array &$comments=null) +  +static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  static reduce (array $tokens, array $options=[])   +static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static escape ($value) +  static keywords ()   static matchKeyword (string $string, array $keywords=null)   -static getNumericValue (?Value $value, array $options=[]) -  -static getRGBValue (Value $value) -  -static getAngleValue (?Value $value, array $options=[]) -  +static getNumericValue (?object $value, array $options=[]) +  +static getRGBValue (object $value) +  +static getAngleValue (?object $value, array $options=[]) +  @@ -163,6 +172,9 @@ Protected Member Functions + + +

Static Public Attributes

 __construct ($data)
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
@@ -175,12 +187,12 @@ - - - - - - + + + + + +

Static Protected Member Functions

 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
@@ -242,8 +254,6 @@

@inheritDoc

-

Reimplemented from TBela\CSS\Value.

-

Member Function Documentation

@@ -395,7 +405,7 @@

TBela\CSS\Interfaces\ObjectInterface TBela\CSS\Element\RuleList -TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet +TBela\CSS\Element\Rule +TBela\CSS\Element\RuleSet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule

Static Protected Attributes

@@ -144,6 +147,8 @@ + + @@ -498,12 +503,12 @@

Returns
bool
-

Implemented in TBela\CSS\Element\RuleList, TBela\CSS\Element\Rule, and TBela\CSS\Element\AtRule.

+

Implemented in TBela\CSS\Element\Rule, TBela\CSS\Element\RuleList, TBela\CSS\Element\AtRule, TBela\CSS\Element\NestingMediaRule, and TBela\CSS\Element\NestingRule.


The documentation for this interface was generated from the following file:
    -
  • src/TBela/CSS/Interfaces/RuleListInterface.php
  • +
  • src/Interfaces/RuleListInterface.php
diff --git a/docs/api/html/d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface.png b/docs/api/html/d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface.png index 4d438441..5fb3b2dc 100644 Binary files a/docs/api/html/d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface.png and b/docs/api/html/d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface.png differ diff --git a/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.html b/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.html new file mode 100644 index 00000000..5d5805ab --- /dev/null +++ b/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.html @@ -0,0 +1,282 @@ + + + + + + + +CSS: TBela\CSS\Element\NestingRule Class Reference + + + + + + + + + + + + + +
+
+

 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
+ + + + + +
+
CSS +
+
+

+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Element\NestingRule Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Element\NestingRule:
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 support (ElementInterface $child)
 
- Public Member Functions inherited from TBela\CSS\Element\Rule
 getSelector ()
 
 setSelector ($selectors)
 
 addSelector ($selector)
 
 removeSelector ($selector)
 
 addDeclaration ($name, $value)
 
 merge (Rule $rule)
 
- Public Member Functions inherited from TBela\CSS\Element\RuleList
__get ($name)
 
 addComment ($value)
 
 hasChildren ()
 
 removeChildren ()
 
 getChildren ()
 
 setChildren (array $elements)
 
 append (ElementInterface ... $elements)
 
 appendCss ($css)
 
 insert (ElementInterface $element, $position)
 
 remove (ElementInterface $element)
 
 getIterator ()
 
- Public Member Functions inherited from TBela\CSS\Element
 __construct ($ast=null, $parent=null)
 
 traverse (callable $fn, $event)
 
 query ($query)
 
 queryByClassNames ($query)
 
 getRoot ()
 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
 
 getType ()
 
 copy ()
 
 getSrc ()
 
 getPosition ()
 
 setTrailingComments (?array $comments)
 
 getTrailingComments ()
 
 setLeadingComments (?array $comments)
 
 getLeadingComments ()
 
 deduplicate (array $options=['allow_duplicate_rules'=>['font-face']])
 
setAst (ElementInterface $element)
 
 getAst ()
 
 jsonSerialize ()
 
 __toString ()
 
 __clone ()
 
 toObject ()
 
- Public Member Functions inherited from TBela\CSS\Query\QueryInterface
 query (string $query)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\RuleListInterface
 computeShortHand ()
 
+ + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from TBela\CSS\Element
static getInstance ($ast)
 
static from ($css, array $options=[])
 
static fromUrl ($url, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Element\Rule
parseSelector ($selectors)
 
- Protected Member Functions inherited from TBela\CSS\Element
 setComments (?array $comments, $type)
 
 computeSignature ()
 
 deduplicateDeclarations (array $options=[])
 
- Protected Attributes inherited from TBela\CSS\Element
+object $ast = null
 
RuleListInterface $parent = null
 
+array $rawValue = null
 
+

Member Function Documentation

+ +

◆ support()

+ +
+
+ + + + + + + + +
TBela\CSS\Element\NestingRule::support (ElementInterface $child)
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Element\Rule.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Element/NestingRule.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.js b/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.js new file mode 100644 index 00000000..c110fab5 --- /dev/null +++ b/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Element_1_1NestingRule = +[ + [ "support", "d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.html#a81ca6e35c73ebf145354ebf5886af277", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.png b/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.png new file mode 100644 index 00000000..310af984 Binary files /dev/null and b/docs/api/html/d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.png differ diff --git a/docs/api/html/d2/dee/classTBela_1_1CSS_1_1Value-members.html b/docs/api/html/d2/dee/classTBela_1_1CSS_1_1Value-members.html index d4061ca5..51dc3221 100644 --- a/docs/api/html/d2/dee/classTBela_1_1CSS_1_1Value-members.html +++ b/docs/api/html/d2/dee/classTBela_1_1CSS_1_1Value-members.html @@ -93,32 +93,35 @@ $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d2/df0/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment-members.html b/docs/api/html/d2/df0/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment-members.html new file mode 100644 index 00000000..bd61b8b6 --- /dev/null +++ b/docs/api/html/d2/df0/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Validator\Comment Member List
+
+ +
+ + + + diff --git a/docs/api/html/d2/dff/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunction.html b/docs/api/html/d2/dff/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunction.html index 95c2c627..49648d31 100644 --- a/docs/api/html/d2/dff/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunction.html +++ b/docs/api/html/d2/dff/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunction.html @@ -193,7 +193,7 @@

$defaults (defined in TBela\CSS\Value\FontStretch)TBela\CSS\Value\FontStretchprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\FontStretch)TBela\CSS\Value\FontStretchprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\FontStretch - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Value\FontStretchstatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\FontStretch - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d3/d24/classTBela_1_1CSS_1_1Element_1_1Stylesheet-members.html b/docs/api/html/d3/d24/classTBela_1_1CSS_1_1Element_1_1Stylesheet-members.html index 2d15b376..bcdf4c83 100644 --- a/docs/api/html/d3/d24/classTBela_1_1CSS_1_1Element_1_1Stylesheet-members.html +++ b/docs/api/html/d3/d24/classTBela_1_1CSS_1_1Element_1_1Stylesheet-members.html @@ -90,8 +90,10 @@ - - + + + + @@ -112,28 +114,29 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + +
$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
$parentTBela\CSS\Elementprotected
__clone()TBela\CSS\Element
__construct($ast=null, $parent=null)TBela\CSS\Element
$rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
__clone()TBela\CSS\Element
__construct($ast=null, $parent=null)TBela\CSS\Element
__get($name) (defined in TBela\CSS\Element\RuleList)TBela\CSS\Element\RuleList
__toString()TBela\CSS\Element
addAtRule($name, $value=null, $type=0)TBela\CSS\Element\RuleSet
addComment($value)TBela\CSS\Element\RuleList
getLeadingComments()TBela\CSS\Element
getParent()TBela\CSS\Element
getPosition()TBela\CSS\Element
getRoot()TBela\CSS\Element
getSrc()TBela\CSS\Element
getTrailingComments()TBela\CSS\Element
getType()TBela\CSS\Element
getValue()TBela\CSS\Element
hasChildren()TBela\CSS\Element\RuleList
insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList
jsonSerialize()TBela\CSS\Element
query($query)TBela\CSS\Element
TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface
queryByClassNames($query)TBela\CSS\Element
remove(ElementInterface $element)TBela\CSS\Element\RuleList
removeChildren()TBela\CSS\Element\RuleList
setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element
setChildren(array $elements)TBela\CSS\Element\RuleList
setComments(?array $comments, $type)TBela\CSS\Elementprotected
setLeadingComments(?array $comments)TBela\CSS\Element
setTrailingComments(?array $comments)TBela\CSS\Element
setValue($value)TBela\CSS\Element
support(ElementInterface $child)TBela\CSS\Element\RuleList
toObject()TBela\CSS\Element
traverse(callable $fn, $event)TBela\CSS\Element
getRawValue()TBela\CSS\Element
getRoot()TBela\CSS\Element
getSrc()TBela\CSS\Element
getTrailingComments()TBela\CSS\Element
getType()TBela\CSS\Element
getValue()TBela\CSS\Element
hasChildren()TBela\CSS\Element\RuleList
insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList
jsonSerialize()TBela\CSS\Element
query($query)TBela\CSS\Element
TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface
queryByClassNames($query)TBela\CSS\Element
remove(ElementInterface $element)TBela\CSS\Element\RuleList
removeChildren()TBela\CSS\Element\RuleList
setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element
setChildren(array $elements)TBela\CSS\Element\RuleList
setComments(?array $comments, $type)TBela\CSS\Elementprotected
setLeadingComments(?array $comments)TBela\CSS\Element
setTrailingComments(?array $comments)TBela\CSS\Element
setValue($value)TBela\CSS\Element
support(ElementInterface $child)TBela\CSS\Element\RuleList
toObject()TBela\CSS\Element
traverse(callable $fn, $event)TBela\CSS\Element
diff --git a/docs/api/html/d3/d53/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueString.html b/docs/api/html/d3/d53/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueString.html index c94ec1e8..21a085d0 100644 --- a/docs/api/html/d3/d53/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueString.html +++ b/docs/api/html/d3/d53/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueString.html @@ -168,7 +168,7 @@

@@ -104,19 +105,13 @@ - - - - - - @@ -125,34 +120,55 @@  

Public Member Functions

 getHash ()
 
 render (array $options=[])
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 toObject ()
 
 __toString ()
jsonSerialize ()
 
- - - -

-Protected Member Functions

 __construct ($data)
 
- + + + + + + + - - + + + + + + + + + + - - - - - - + + + + + + +

-Additional Inherited Members

+Static Public Member Functions

+static doRender (object $data, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
+ + + + + + +

+Protected Member Functions

 __construct ($data)
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
+ @@ -160,12 +176,12 @@ - - - - - - + + + + + + @@ -209,31 +225,9 @@

@inheritDoc @ignore

-

Reimplemented from TBela\CSS\Value.

-

Member Function Documentation

- -

◆ getHash()

- -
-
-

+Additional Inherited Members

- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
- - - - - - -
TBela\CSS\Value\CssString::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

- -
-

◆ render()

@@ -256,7 +250,7 @@

+ + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ + + + diff --git a/docs/api/html/d3/d86/classTBela_1_1CSS_1_1Value_1_1BackgroundSize-members.html b/docs/api/html/d3/d86/classTBela_1_1CSS_1_1Value_1_1BackgroundSize-members.html index 7f3d63b9..8c383ed3 100644 --- a/docs/api/html/d3/d86/classTBela_1_1CSS_1_1Value_1_1BackgroundSize-members.html +++ b/docs/api/html/d3/d86/classTBela_1_1CSS_1_1Value_1_1BackgroundSize-members.html @@ -94,32 +94,35 @@ $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\BackgroundSize)TBela\CSS\Value\BackgroundSizeprotectedstatic $patterns (defined in TBela\CSS\Value\BackgroundSize)TBela\CSS\Value\BackgroundSizeprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Value\BackgroundSizestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\BackgroundSizestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Value\BackgroundSizestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d3/d9d/classTBela_1_1CSS_1_1Value_1_1Background-members.html b/docs/api/html/d3/d9d/classTBela_1_1CSS_1_1Value_1_1Background-members.html index 1f849f9e..6786144d 100644 --- a/docs/api/html/d3/d9d/classTBela_1_1CSS_1_1Value_1_1Background-members.html +++ b/docs/api/html/d3/d9d/classTBela_1_1CSS_1_1Value_1_1Background-members.html @@ -94,33 +94,36 @@ $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\Background)TBela\CSS\Value\Backgroundstatic $patterns (defined in TBela\CSS\Value\ShortHand)TBela\CSS\Value\ShortHandprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\ShortHandprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\ShortHandprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\ShortHand - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchPattern(array $tokens)TBela\CSS\Value\ShortHandstatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d3/da3/classTBela_1_1CSS_1_1Value_1_1BackgroundRepeat-members.html b/docs/api/html/d3/da3/classTBela_1_1CSS_1_1Value_1_1BackgroundRepeat-members.html index 6cb9f128..b61132ec 100644 --- a/docs/api/html/d3/da3/classTBela_1_1CSS_1_1Value_1_1BackgroundRepeat-members.html +++ b/docs/api/html/d3/da3/classTBela_1_1CSS_1_1Value_1_1BackgroundRepeat-members.html @@ -95,29 +95,33 @@ $keymap (defined in TBela\CSS\Value\BackgroundRepeat)TBela\CSS\Value\BackgroundRepeatprotectedstatic $keywords (defined in TBela\CSS\Value\BackgroundRepeat)TBela\CSS\Value\BackgroundRepeatprotectedstatic $patterns (defined in TBela\CSS\Value\BackgroundRepeat)TBela\CSS\Value\BackgroundRepeatprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\BackgroundRepeatprotectedstatic + TBela::CSS::Value::doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getClassName(string $type)TBela\CSS\Valuestatic getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic - jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value - keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value - matchDefaults($token)TBela\CSS\Valueprotectedstatic - matchKeyword(string $string, array $keywords=null)TBela\CSS\Value\BackgroundRepeatstatic - matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic - reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic - render(array $options=[])TBela\CSS\Value + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic + jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value + keywords()TBela\CSS\Valuestatic + match(object $data, string $type)TBela\CSS\Valuestatic + matchDefaults($token)TBela\CSS\Valueprotectedstatic + matchKeyword(string $string, array $keywords=null)TBela\CSS\Value\BackgroundRepeatstatic + matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic + render(array $options=[])TBela\CSS\Value + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic toObject()TBela\CSS\Value type()TBela\CSS\Valueprotectedstatic validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d3/db4/classTBela_1_1CSS_1_1Parser_1_1Helper.html b/docs/api/html/d3/db4/classTBela_1_1CSS_1_1Parser_1_1Helper.html index 18861fd1..55e4f181 100644 --- a/docs/api/html/d3/db4/classTBela_1_1CSS_1_1Parser_1_1Helper.html +++ b/docs/api/html/d3/db4/classTBela_1_1CSS_1_1Parser_1_1Helper.html @@ -115,9 +115,9 @@ - - + +

Static Protected Attributes

-static $fixParseUrl
 
+static bool $fixParseUrl
 

Member Function Documentation

@@ -162,7 +162,7 @@

Returns
string
-

Referenced by TBela\CSS\Parser\load(), and TBela\CSS\Renderer\save().

+

Referenced by TBela\CSS\Parser\append(), TBela\CSS\Parser\getAst(), TBela\CSS\Parser\Lexer\load(), TBela\CSS\Renderer\save(), TBela\CSS\Parser\setOptions(), and TBela\CSS\Parser\stream().

@@ -248,7 +248,7 @@

Returns
bool|string @ignore
-

Referenced by TBela\CSS\Parser\getFileContent().

+

Referenced by TBela\CSS\Parser\append(), and TBela\CSS\Parser\Lexer\load().

@@ -276,7 +276,7 @@

Returns
string @ignore @ignore
-

Referenced by TBela\CSS\Parser\analyse(), TBela\CSS\Parser\load(), TBela\CSS\Renderer\renderProperty(), and TBela\CSS\Renderer\save().

+

Referenced by TBela\CSS\Parser\append(), TBela\CSS\Parser\Lexer\load(), TBela\CSS\Renderer\save(), TBela\CSS\Parser\setOptions(), and TBela\CSS\Parser\stream().

@@ -355,7 +355,7 @@

Returns
string
-

Referenced by TBela\CSS\Renderer\renderProperty(), and TBela\CSS\Renderer\save().

+

Referenced by TBela\CSS\Renderer\save().

@@ -437,7 +437,7 @@

+ + + + + + +CSS: TBela\CSS\Cli\Exceptions\DuplicateArgumentException Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Cli\Exceptions\DuplicateArgumentException Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Cli\Exceptions\DuplicateArgumentException:
+
+
+ +
The documentation for this class was generated from the following file:
    +
  • src/Cli/Exceptions/DuplicateArgumentException.php
  • +
+
+
+ +
+ + diff --git a/docs/api/html/d3/dd5/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1DuplicateArgumentException.png b/docs/api/html/d3/dd5/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1DuplicateArgumentException.png new file mode 100644 index 00000000..ac2687b7 Binary files /dev/null and b/docs/api/html/d3/dd5/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1DuplicateArgumentException.png differ diff --git a/docs/api/html/d3/dda/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface-members.html b/docs/api/html/d3/dda/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface-members.html index 13d50236..78ef1cf8 100644 --- a/docs/api/html/d3/dda/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface-members.html +++ b/docs/api/html/d3/dda/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface-members.html @@ -104,25 +104,26 @@ getLeadingComments()TBela\CSS\Interfaces\RenderableInterface getParent()TBela\CSS\Interfaces\ElementInterface getPosition()TBela\CSS\Interfaces\ElementInterface - getRoot()TBela\CSS\Interfaces\ElementInterface - getSrc()TBela\CSS\Interfaces\ElementInterface - getTrailingComments()TBela\CSS\Interfaces\RenderableInterface - getType()TBela\CSS\Interfaces\ElementInterface - getValue()TBela\CSS\Interfaces\ElementInterface - hasChildren()TBela\CSS\Interfaces\RuleListInterface - insert(ElementInterface $element, $position)TBela\CSS\Interfaces\RuleListInterface - query($query)TBela\CSS\Interfaces\ElementInterface - TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface - queryByClassNames($query)TBela\CSS\Interfaces\ElementInterface - remove(ElementInterface $element)TBela\CSS\Interfaces\RuleListInterface - removeChildren()TBela\CSS\Interfaces\RuleListInterface - setChildren(array $elements)TBela\CSS\Interfaces\RuleListInterface - setLeadingComments(?array $comments)TBela\CSS\Interfaces\RenderableInterface - setTrailingComments(?array $comments)TBela\CSS\Interfaces\RenderableInterface - setValue($value)TBela\CSS\Interfaces\ElementInterface - support(ElementInterface $child)TBela\CSS\Interfaces\RuleListInterface - toObject()TBela\CSS\Interfaces\ObjectInterface - traverse(callable $fn, $event)TBela\CSS\Interfaces\ElementInterface + getRawValue()TBela\CSS\Interfaces\ElementInterface + getRoot()TBela\CSS\Interfaces\ElementInterface + getSrc()TBela\CSS\Interfaces\ElementInterface + getTrailingComments()TBela\CSS\Interfaces\RenderableInterface + getType()TBela\CSS\Interfaces\ElementInterface + getValue()TBela\CSS\Interfaces\ElementInterface + hasChildren()TBela\CSS\Interfaces\RuleListInterface + insert(ElementInterface $element, $position)TBela\CSS\Interfaces\RuleListInterface + query($query)TBela\CSS\Interfaces\ElementInterface + TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface + queryByClassNames($query)TBela\CSS\Interfaces\ElementInterface + remove(ElementInterface $element)TBela\CSS\Interfaces\RuleListInterface + removeChildren()TBela\CSS\Interfaces\RuleListInterface + setChildren(array $elements)TBela\CSS\Interfaces\RuleListInterface + setLeadingComments(?array $comments)TBela\CSS\Interfaces\RenderableInterface + setTrailingComments(?array $comments)TBela\CSS\Interfaces\RenderableInterface + setValue($value)TBela\CSS\Interfaces\ElementInterface + support(ElementInterface $child)TBela\CSS\Interfaces\RuleListInterface + toObject()TBela\CSS\Interfaces\ObjectInterface + traverse(callable $fn, $event)TBela\CSS\Interfaces\ElementInterface diff --git a/docs/api/html/d3/de6/classTBela_1_1CSS_1_1Value_1_1Font-members.html b/docs/api/html/d3/de6/classTBela_1_1CSS_1_1Value_1_1Font-members.html index 18d9d051..fc625de9 100644 --- a/docs/api/html/d3/de6/classTBela_1_1CSS_1_1Value_1_1Font-members.html +++ b/docs/api/html/d3/de6/classTBela_1_1CSS_1_1Value_1_1Font-members.html @@ -94,33 +94,36 @@ $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\Font)TBela\CSS\Value\Fontprotectedstatic $patterns (defined in TBela\CSS\Value\Font)TBela\CSS\Value\Fontprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\ShortHandprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\ShortHandprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\ShortHand - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchPattern(array $tokens)TBela\CSS\Value\ShortHandstatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d4/d37/classTBela_1_1CSS_1_1Element_1_1NestingAtRule-members.html b/docs/api/html/d4/d37/classTBela_1_1CSS_1_1Element_1_1NestingAtRule-members.html new file mode 100644 index 00000000..51f1da08 --- /dev/null +++ b/docs/api/html/d4/d37/classTBela_1_1CSS_1_1Element_1_1NestingAtRule-members.html @@ -0,0 +1,156 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Element\NestingAtRule Member List
+
+
+ +

This is the complete list of members for TBela\CSS\Element\NestingAtRule, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
$parentTBela\CSS\Elementprotected
$rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
__clone()TBela\CSS\Element
__construct($ast=null, $parent=null)TBela\CSS\Element
__get($name) (defined in TBela\CSS\Element\RuleList)TBela\CSS\Element\RuleList
__toString()TBela\CSS\Element
addComment($value)TBela\CSS\Element\RuleList
addDeclaration($name, $value)TBela\CSS\Element\Rule
addSelector($selector)TBela\CSS\Element\Rule
append(ElementInterface ... $elements)TBela\CSS\Element\RuleList
appendCss($css)TBela\CSS\Element\RuleList
computeShortHand()TBela\CSS\Interfaces\RuleListInterface
computeSignature()TBela\CSS\Elementprotected
copy()TBela\CSS\Element
deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element
deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected
from($css, array $options=[])TBela\CSS\Elementstatic
fromUrl($url, array $options=[])TBela\CSS\Elementstatic
getAst()TBela\CSS\Element
getChildren()TBela\CSS\Element\RuleList
getInstance($ast)TBela\CSS\Elementstatic
getIterator()TBela\CSS\Element\RuleList
getLeadingComments()TBela\CSS\Element
getParent()TBela\CSS\Element
getPosition()TBela\CSS\Element
getRawValue()TBela\CSS\Element
getRoot()TBela\CSS\Element
getSelector()TBela\CSS\Element\Rule
getSrc()TBela\CSS\Element
getTrailingComments()TBela\CSS\Element
getType()TBela\CSS\Element
getValue()TBela\CSS\Element
hasChildren()TBela\CSS\Element\RuleList
insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList
jsonSerialize()TBela\CSS\Element
merge(Rule $rule)TBela\CSS\Element\Rule
parseSelector($selectors) (defined in TBela\CSS\Element\Rule)TBela\CSS\Element\Ruleprotected
query($query)TBela\CSS\Element
TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface
queryByClassNames($query)TBela\CSS\Element
remove(ElementInterface $element)TBela\CSS\Element\RuleList
removeChildren()TBela\CSS\Element\RuleList
removeSelector($selector)TBela\CSS\Element\Rule
setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element
setChildren(array $elements)TBela\CSS\Element\RuleList
setComments(?array $comments, $type)TBela\CSS\Elementprotected
setLeadingComments(?array $comments)TBela\CSS\Element
setSelector($selectors)TBela\CSS\Element\Rule
setTrailingComments(?array $comments)TBela\CSS\Element
setValue($value)TBela\CSS\Element
support(ElementInterface $child)TBela\CSS\Element\NestingRule
toObject()TBela\CSS\Element
traverse(callable $fn, $event)TBela\CSS\Element
+
+ + + + diff --git a/docs/api/html/d4/d5e/classTBela_1_1CSS_1_1Value_1_1FontFamily-members.html b/docs/api/html/d4/d5e/classTBela_1_1CSS_1_1Value_1_1FontFamily-members.html index 4a58ecb8..cd536e2a 100644 --- a/docs/api/html/d4/d5e/classTBela_1_1CSS_1_1Value_1_1FontFamily-members.html +++ b/docs/api/html/d4/d5e/classTBela_1_1CSS_1_1Value_1_1FontFamily-members.html @@ -94,34 +94,37 @@ $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $patterns (defined in TBela\CSS\Value\ShortHand)TBela\CSS\Value\ShortHandprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse($string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\FontFamilyprotectedstatic - TBela::CSS::Value::ShortHand::doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\ShortHandprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\FontFamilyprotectedstatic + TBela::CSS::Value::ShortHand::doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\ShortHandprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\ShortHand - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchPattern(array $tokens)TBela\CSS\Value\ShortHandstatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\FontFamilystatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d4/d63/classTBela_1_1CSS_1_1Ast_1_1Traverser-members.html b/docs/api/html/d4/d63/classTBela_1_1CSS_1_1Ast_1_1Traverser-members.html index c2a1d85c..8ac46d50 100644 --- a/docs/api/html/d4/d63/classTBela_1_1CSS_1_1Ast_1_1Traverser-members.html +++ b/docs/api/html/d4/d63/classTBela_1_1CSS_1_1Ast_1_1Traverser-members.html @@ -88,15 +88,14 @@

This is the complete list of members for TBela\CSS\Ast\Traverser, including all inherited members.

- - - - - - - - - + + + + + + + +
doClone($object)TBela\CSS\Ast\Traverserprotected
doTraverse($node)TBela\CSS\Ast\Traverserprotected
emit(string $event,... $args) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
IGNORE_CHILDREN (defined in TBela\CSS\Ast\Traverser)TBela\CSS\Ast\Traverser
IGNORE_NODE (defined in TBela\CSS\Ast\Traverser)TBela\CSS\Ast\Traverser
off(string $event, callable $callable) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
on(string $event, callable $callable) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
process($node, array $data)TBela\CSS\Ast\Traverserprotected
traverse($ast)TBela\CSS\Ast\Traverser
doTraverse($node, $level)TBela\CSS\Ast\Traverserprotected
emit(string $event,... $args) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
IGNORE_CHILDREN (defined in TBela\CSS\Ast\Traverser)TBela\CSS\Ast\Traverser
IGNORE_NODE (defined in TBela\CSS\Ast\Traverser)TBela\CSS\Ast\Traverser
off(string $event, callable $callable) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
on(string $event, callable $callable) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
process($node, array $data)TBela\CSS\Ast\Traverserprotected
traverse($ast)TBela\CSS\Ast\Traverser
diff --git a/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.html b/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.html new file mode 100644 index 00000000..19af44c4 --- /dev/null +++ b/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.html @@ -0,0 +1,315 @@ + + + + + + + +CSS: TBela\CSS\Value\InvalidCssFunction Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Value\InvalidCssFunction Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Value\InvalidCssFunction:
+
+
+ + + + + + + + + + + + + + + + + + +

+Public Member Functions

 render (array $options=[])
 
 getValue ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Static Public Member Functions

static doRecover (object $data)
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
+ + + + + + + + + + + + + + +

+Static Protected Member Functions

static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+string $hash = null
 
- Static Protected Attributes inherited from TBela\CSS\Value
+static array $defaults = []
 
+static array $keywords = []
 
+static array $cache = []
 
+

Member Function Documentation

+ +

◆ doRecover()

+ +
+
+ + + + + +
+ + + + + + + + +
static TBela\CSS\Value\InvalidCssFunction::doRecover (object $data)
+
+static
+
+

recover an invalid token

+ +

Implements TBela\CSS\Interfaces\InvalidTokenInterface.

+ +
+
+ +

◆ getValue()

+ +
+
+ + + + + + + +
TBela\CSS\Value\InvalidCssFunction::getValue ()
+
+

@inheritDoc

+ +
+
+ +

◆ render()

+ +
+
+ + + + + + + + +
TBela\CSS\Value\InvalidCssFunction::render (array $options = [])
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value.

+ +
+
+ +

◆ validate()

+ +
+
+ + + + + +
+ + + + + + + + +
static TBela\CSS\Value\InvalidCssFunction::validate ( $data)
+
+staticprotected
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Value/InvalidCssFunction.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.js b/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.js new file mode 100644 index 00000000..970d3e79 --- /dev/null +++ b/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.js @@ -0,0 +1,5 @@ +var classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction = +[ + [ "getValue", "d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.html#a11c1ff0b1b59f87ead623f69a98986c7", null ], + [ "render", "d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.html#a44432fb43399980cda058d7eec30de29", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.png b/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.png new file mode 100644 index 00000000..19d33322 Binary files /dev/null and b/docs/api/html/d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.png differ diff --git a/docs/api/html/d4/d8c/classTBela_1_1CSS_1_1Value_1_1Outline-members.html b/docs/api/html/d4/d8c/classTBela_1_1CSS_1_1Value_1_1Outline-members.html index 9f335692..720c1012 100644 --- a/docs/api/html/d4/d8c/classTBela_1_1CSS_1_1Value_1_1Outline-members.html +++ b/docs/api/html/d4/d8c/classTBela_1_1CSS_1_1Value_1_1Outline-members.html @@ -94,33 +94,36 @@ $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $patterns (defined in TBela\CSS\Value\Outline)TBela\CSS\Value\Outlineprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\ShortHandprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\ShortHandprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\ShortHand - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchPattern(array $tokens)TBela\CSS\Value\ShortHandstatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html b/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html new file mode 100644 index 00000000..3e2d65d3 --- /dev/null +++ b/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html @@ -0,0 +1,173 @@ + + + + + + + +CSS: TBela\CSS\Process\Pool Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Process\Pool Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Process\Pool:
+
+
+ + + + + + + + + + + + + + + + + + +

+Public Member Functions

add (Process $process)
 
setConcurrency (int $concurrency)
 
setSleepTime (int $sleepTime)
 
wait ()
 
- Public Member Functions inherited from TBela\CSS\Event\EventInterface
on (string $event, callable $callable)
 
off (string $event, callable $callable)
 
emit (string $event,... $args)
 
+ + + +

+Protected Member Functions

check ()
 
+ + + + + + + + + +

+Protected Attributes

+array $queue = []
 
+int $concurrency = 20
 
+int $count = 0
 
+int $sleepTime = 30
 
+

Detailed Description

+

Usage:

+

$pool = new Pool();

+

$pool->on('finish', function (Process $process, $position) {

 echo "process #$position completed!";
+

});

+

$pool->add(new Process(...)); $pool->add(new Process(...)); $pool->add(new Process(...));

+

$pool->wait();

+

The documentation for this class was generated from the following file:
    +
  • src/Process/Pool.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.js b/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.js new file mode 100644 index 00000000..d18ce279 --- /dev/null +++ b/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.js @@ -0,0 +1,13 @@ +var classTBela_1_1CSS_1_1Process_1_1Pool = +[ + [ "__construct", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#a2b3ceb4c6c685e5e44e5ec5212ab1f8b", null ], + [ "add", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#aef97a17ee7f56a6fbc52e74a297f2408", null ], + [ "check", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#acc8869ecdf37c65a6f3b2cf7a2b562c2", null ], + [ "setConcurrency", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#ae5dc879e7437963e530d55a675aea64e", null ], + [ "setSleepTime", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#a4833f96bc33b0325fc6346538515b3e0", null ], + [ "wait", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#a9fbf2fb8197f0b5d189d617c487c1edb", null ], + [ "$concurrency", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#aea817080bee0734434c9f56a71db66c2", null ], + [ "$count", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#ac73ff765fdc1ef01cf6c491af4519807", null ], + [ "$queue", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#af21c695f936ef415b0c2c622cdf3237e", null ], + [ "$sleepTime", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html#acff9ee952f4fb1bffed42966b50196eb", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.png b/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.png new file mode 100644 index 00000000..5ef084df Binary files /dev/null and b/docs/api/html/d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.png differ diff --git a/docs/api/html/d4/dc3/classTBela_1_1CSS_1_1Value_1_1ShortHand-members.html b/docs/api/html/d4/dc3/classTBela_1_1CSS_1_1Value_1_1ShortHand-members.html index ee21bd06..54f1f253 100644 --- a/docs/api/html/d4/dc3/classTBela_1_1CSS_1_1Value_1_1ShortHand-members.html +++ b/docs/api/html/d4/dc3/classTBela_1_1CSS_1_1Value_1_1ShortHand-members.html @@ -94,33 +94,36 @@ $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $patterns (defined in TBela\CSS\Value\ShortHand)TBela\CSS\Value\ShortHandprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\ShortHandprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\ShortHandprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\ShortHand - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchPattern(array $tokens)TBela\CSS\Value\ShortHandstatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d4/dcd/classTBela_1_1CSS_1_1Property_1_1Comment-members.html b/docs/api/html/d4/dcd/classTBela_1_1CSS_1_1Property_1_1Comment-members.html index 05225654..991f1e6c 100644 --- a/docs/api/html/d4/dcd/classTBela_1_1CSS_1_1Property_1_1Comment-members.html +++ b/docs/api/html/d4/dcd/classTBela_1_1CSS_1_1Property_1_1Comment-members.html @@ -93,20 +93,23 @@ $trailingcomments (defined in TBela\CSS\Property\Property)TBela\CSS\Property\Propertyprotected $type (defined in TBela\CSS\Property\Comment)TBela\CSS\Property\Commentprotected $value (defined in TBela\CSS\Property\Property)TBela\CSS\Property\Propertyprotected - __construct($value)TBela\CSS\Property\Comment - __toString()TBela\CSS\Property\Property - getAst()TBela\CSS\Property\Property - getHash()TBela\CSS\Property\Comment + $vendor (defined in TBela\CSS\Property\Property)TBela\CSS\Property\Propertyprotected + __construct($value)TBela\CSS\Property\Comment + __toString()TBela\CSS\Property\Property + getAst()TBela\CSS\Property\Property getLeadingComments()TBela\CSS\Property\Comment - getName()TBela\CSS\Property\Comment + getName(bool $vendor=false)TBela\CSS\Property\Comment getTrailingComments()TBela\CSS\Property\Comment getType()TBela\CSS\Property\Property getValue()TBela\CSS\Property\Comment - render(array $options=[])TBela\CSS\Property\Comment - setLeadingComments(?array $comments)TBela\CSS\Property\Comment + getVendor()TBela\CSS\Property\Property + render(array $options=[])TBela\CSS\Property\Comment + setLeadingComments(?array $comments)TBela\CSS\Property\Comment + setName($name)TBela\CSS\Property\Property setTrailingComments(?array $comments)TBela\CSS\Property\Comment setValue($value)TBela\CSS\Property\Comment - toObject()TBela\CSS\Interfaces\ObjectInterface + setVendor($vendor)TBela\CSS\Property\Property + toObject()TBela\CSS\Interfaces\ObjectInterface diff --git a/docs/api/html/d4/dd9/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration-members.html b/docs/api/html/d4/dd9/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration-members.html new file mode 100644 index 00000000..9cb78ed5 --- /dev/null +++ b/docs/api/html/d4/dd9/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Validator\InvalidDeclaration Member List
+
+ +
+ + + + diff --git a/docs/api/html/d4/de0/classTBela_1_1CSS_1_1Value_1_1FontStyle-members.html b/docs/api/html/d4/de0/classTBela_1_1CSS_1_1Value_1_1FontStyle-members.html index 3134074f..9cd5d397 100644 --- a/docs/api/html/d4/de0/classTBela_1_1CSS_1_1Value_1_1FontStyle-members.html +++ b/docs/api/html/d4/de0/classTBela_1_1CSS_1_1Value_1_1FontStyle-members.html @@ -93,33 +93,36 @@ $defaults (defined in TBela\CSS\Value\FontStyle)TBela\CSS\Value\FontStyleprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\FontStyle)TBela\CSS\Value\FontStyleprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\FontStyle - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match($type)TBela\CSS\Value\FontStyle - TBela::CSS::Value::match(string $type)TBela\CSS\Value + match(object $data, $type)TBela\CSS\Value\FontStylestatic + TBela::CSS::Value::match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\FontStylestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d4/dfb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule-members.html b/docs/api/html/d4/dfb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule-members.html new file mode 100644 index 00000000..afee763e --- /dev/null +++ b/docs/api/html/d4/dfb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Validator\InvalidAtRule Member List
+
+ +
+ + + + diff --git a/docs/api/html/d4/dff/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorValueInterface.html b/docs/api/html/d4/dff/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorValueInterface.html index 2e6ecbba..7b785215 100644 --- a/docs/api/html/d4/dff/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorValueInterface.html +++ b/docs/api/html/d4/dff/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorValueInterface.html @@ -144,7 +144,7 @@

Returns
array
-

Implemented in TBela\CSS\Query\TokenSelectorValueAttributeFunctionColor, TBela\CSS\Query\TokenSelectorValueAttribute, TBela\CSS\Query\TokenSelectorValueAttributeFunction, TBela\CSS\Query\TokenSelectorValueAttributeSelector, TBela\CSS\Query\TokenSelectorValueAttributeExpression, TBela\CSS\Query\TokenSelectorValueAttributeFunctionGeneric, TBela\CSS\Query\TokenSelectorValueSeparator, TBela\CSS\Query\TokenSelectorValueString, TBela\CSS\Query\TokenSelectorValueAttributeFunctionNot, TBela\CSS\Query\TokenSelectorValueAttributeString, TBela\CSS\Query\TokenSelectorValueAttributeIndex, TBela\CSS\Query\TokenSelectorValueAttributeTest, TBela\CSS\Query\TokenSelectorValueWhitespace, TBela\CSS\Query\TokenWhitespace, TBela\CSS\Query\TokenSelectorValueAttributeFunctionComment, and TBela\CSS\Query\TokenSelectorValueAttributeFunctionEmpty.

+

Implemented in TBela\CSS\Query\TokenSelectorValueAttributeFunctionColor, TBela\CSS\Query\TokenSelectorValueAttribute, TBela\CSS\Query\TokenSelectorValueAttributeFunction, TBela\CSS\Query\TokenSelectorValueAttributeSelector, TBela\CSS\Query\TokenSelectorValueAttributeExpression, TBela\CSS\Query\TokenSelectorValueAttributeFunctionGeneric, TBela\CSS\Query\TokenSelectorValueSeparator, TBela\CSS\Query\TokenSelectorValueString, TBela\CSS\Query\TokenSelectorValueAttributeFunctionNot, TBela\CSS\Query\TokenSelectorValueAttributeString, TBela\CSS\Query\TokenSelectorValueAttributeIndex, TBela\CSS\Query\TokenSelectorValueAttributeTest, TBela\CSS\Query\TokenSelectorValueWhitespace, TBela\CSS\Query\TokenSelectorValueAttributeFunctionComment, TBela\CSS\Query\TokenSelectorValueAttributeFunctionEmpty, and TBela\CSS\Query\TokenWhitespace.

@@ -171,12 +171,12 @@

Returns
string
-

Implemented in TBela\CSS\Query\TokenSelectorValueAttributeExpression, TBela\CSS\Query\TokenSelectorValueAttribute, TBela\CSS\Query\TokenSelectorValueAttributeSelector, TBela\CSS\Query\TokenSelectorValueString, TBela\CSS\Query\TokenSelectorValueSeparator, TBela\CSS\Query\TokenSelectorValueAttributeTest, TBela\CSS\Query\TokenSelectorValueWhitespace, TBela\CSS\Query\TokenSelectorValueAttributeFunctionColor, TBela\CSS\Query\TokenSelectorValueAttributeFunction, TBela\CSS\Query\TokenSelectorValueAttributeFunctionGeneric, TBela\CSS\Query\TokenSelectorValueAttributeString, TBela\CSS\Query\TokenSelectorValueAttributeFunctionNot, TBela\CSS\Query\TokenSelectorValueAttributeIndex, TBela\CSS\Query\TokenSelectorValueAttributeFunctionComment, TBela\CSS\Query\TokenSelectorValueAttributeFunctionEmpty, and TBela\CSS\Query\TokenWhitespace.

+

Implemented in TBela\CSS\Query\TokenSelectorValueAttributeSelector, TBela\CSS\Query\TokenSelectorValueAttributeExpression, TBela\CSS\Query\TokenSelectorValueString, TBela\CSS\Query\TokenSelectorValueAttribute, TBela\CSS\Query\TokenSelectorValueSeparator, TBela\CSS\Query\TokenSelectorValueAttributeTest, TBela\CSS\Query\TokenSelectorValueWhitespace, TBela\CSS\Query\TokenSelectorValueAttributeFunctionColor, TBela\CSS\Query\TokenSelectorValueAttributeFunction, TBela\CSS\Query\TokenSelectorValueAttributeFunctionGeneric, TBela\CSS\Query\TokenSelectorValueAttributeString, TBela\CSS\Query\TokenSelectorValueAttributeFunctionNot, TBela\CSS\Query\TokenSelectorValueAttributeIndex, TBela\CSS\Query\TokenSelectorValueAttributeFunctionComment, TBela\CSS\Query\TokenSelectorValueAttributeFunctionEmpty, and TBela\CSS\Query\TokenWhitespace.


The documentation for this interface was generated from the following file:
    -
  • src/TBela/CSS/Query/TokenSelectorValueInterface.php
  • +
  • src/Query/TokenSelectorValueInterface.php
diff --git a/docs/api/html/d4/dff/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorValueInterface.png b/docs/api/html/d4/dff/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorValueInterface.png index fcbdcf81..33263278 100644 Binary files a/docs/api/html/d4/dff/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorValueInterface.png and b/docs/api/html/d4/dff/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorValueInterface.png differ diff --git a/docs/api/html/d5/d28/classTBela_1_1CSS_1_1Element_1_1Rule-members.html b/docs/api/html/d5/d28/classTBela_1_1CSS_1_1Element_1_1Rule-members.html index 730d595e..d1ac9581 100644 --- a/docs/api/html/d5/d28/classTBela_1_1CSS_1_1Element_1_1Rule-members.html +++ b/docs/api/html/d5/d28/classTBela_1_1CSS_1_1Element_1_1Rule-members.html @@ -90,8 +90,10 @@ - - + + + + @@ -112,33 +114,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
$parentTBela\CSS\Elementprotected
__clone()TBela\CSS\Element
__construct($ast=null, $parent=null)TBela\CSS\Element
$rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
__clone()TBela\CSS\Element
__construct($ast=null, $parent=null)TBela\CSS\Element
__get($name) (defined in TBela\CSS\Element\RuleList)TBela\CSS\Element\RuleList
__toString()TBela\CSS\Element
addComment($value)TBela\CSS\Element\RuleList
addDeclaration($name, $value)TBela\CSS\Element\Rule
getLeadingComments()TBela\CSS\Element
getParent()TBela\CSS\Element
getPosition()TBela\CSS\Element
getRoot()TBela\CSS\Element
getSelector()TBela\CSS\Element\Rule
getSrc()TBela\CSS\Element
getTrailingComments()TBela\CSS\Element
getType()TBela\CSS\Element
getValue()TBela\CSS\Element
hasChildren()TBela\CSS\Element\RuleList
insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList
jsonSerialize()TBela\CSS\Element
merge(Rule $rule)TBela\CSS\Element\Rule
parseSelector($selectors) (defined in TBela\CSS\Element\Rule)TBela\CSS\Element\Ruleprotected
query($query)TBela\CSS\Element
TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface
queryByClassNames($query)TBela\CSS\Element
remove(ElementInterface $element)TBela\CSS\Element\RuleList
removeChildren()TBela\CSS\Element\RuleList
removeSelector($selector)TBela\CSS\Element\Rule
setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element
setChildren(array $elements)TBela\CSS\Element\RuleList
setComments(?array $comments, $type)TBela\CSS\Elementprotected
setLeadingComments(?array $comments)TBela\CSS\Element
setSelector($selectors)TBela\CSS\Element\Rule
setTrailingComments(?array $comments)TBela\CSS\Element
setValue($value)TBela\CSS\Element
support(ElementInterface $child)TBela\CSS\Element\Rule
toObject()TBela\CSS\Element
traverse(callable $fn, $event)TBela\CSS\Element
getRawValue()TBela\CSS\Element
getRoot()TBela\CSS\Element
getSelector()TBela\CSS\Element\Rule
getSrc()TBela\CSS\Element
getTrailingComments()TBela\CSS\Element
getType()TBela\CSS\Element
getValue()TBela\CSS\Element
hasChildren()TBela\CSS\Element\RuleList
insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList
jsonSerialize()TBela\CSS\Element
merge(Rule $rule)TBela\CSS\Element\Rule
parseSelector($selectors) (defined in TBela\CSS\Element\Rule)TBela\CSS\Element\Ruleprotected
query($query)TBela\CSS\Element
TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface
queryByClassNames($query)TBela\CSS\Element
remove(ElementInterface $element)TBela\CSS\Element\RuleList
removeChildren()TBela\CSS\Element\RuleList
removeSelector($selector)TBela\CSS\Element\Rule
setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element
setChildren(array $elements)TBela\CSS\Element\RuleList
setComments(?array $comments, $type)TBela\CSS\Elementprotected
setLeadingComments(?array $comments)TBela\CSS\Element
setSelector($selectors)TBela\CSS\Element\Rule
setTrailingComments(?array $comments)TBela\CSS\Element
setValue($value)TBela\CSS\Element
support(ElementInterface $child)TBela\CSS\Element\Rule
toObject()TBela\CSS\Element
traverse(callable $fn, $event)TBela\CSS\Element
diff --git a/docs/api/html/d5/d3b/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorInterface.html b/docs/api/html/d5/d3b/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorInterface.html index 61fc07e3..a76ac30c 100644 --- a/docs/api/html/d5/d3b/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorInterface.html +++ b/docs/api/html/d5/d3b/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorInterface.html @@ -109,7 +109,7 @@  
The documentation for this interface was generated from the following file:
    -
  • src/TBela/CSS/Query/TokenSelectorInterface.php
  • +
  • src/Query/TokenSelectorInterface.php
diff --git a/docs/api/html/d5/d3b/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorInterface.png b/docs/api/html/d5/d3b/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorInterface.png index 8ba968d2..437b51e7 100644 Binary files a/docs/api/html/d5/d3b/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorInterface.png and b/docs/api/html/d5/d3b/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectorInterface.png differ diff --git a/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.html b/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.html new file mode 100644 index 00000000..7ffbc034 --- /dev/null +++ b/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\InvalidRule Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Parser\Validator\InvalidRule Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Parser\Validator\InvalidRule:
+
+
+ + + + + + + + +

+Public Member Functions

 validate (object $token, object $parentRule, object $parentStylesheet)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
getError ()
 
+ + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
const VALID = 1
 
const REMOVE = 2
 
const REJECT = 3
 
+

Member Function Documentation

+ +

◆ validate()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Validator\InvalidRule::validate (object $token,
object $parentRule,
object $parentStylesheet 
)
+
+
Parameters
+ + + + +
object$token
object$parentRule
object | null$parentStylesheet
+
+
+
Returns
int
+ +

Implements TBela\CSS\Interfaces\ValidatorInterface.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Parser/Validator/InvalidRule.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.js b/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.js new file mode 100644 index 00000000..b5c732c2 --- /dev/null +++ b/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule = +[ + [ "validate", "d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.html#a7f7977fcd947338be5e43e4e44b7ce8f", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.png b/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.png new file mode 100644 index 00000000..24368208 Binary files /dev/null and b/docs/api/html/d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.png differ diff --git a/docs/api/html/d5/d56/classTBela_1_1CSS_1_1Value_1_1FontSize.html b/docs/api/html/d5/d56/classTBela_1_1CSS_1_1Value_1_1FontSize.html index e331db31..919b4852 100644 --- a/docs/api/html/d5/d56/classTBela_1_1CSS_1_1Value_1_1FontSize.html +++ b/docs/api/html/d5/d56/classTBela_1_1CSS_1_1Value_1_1FontSize.html @@ -109,17 +109,7 @@ Public Member Functions

 render (array $options=[])   - getHash () -  -- Public Member Functions inherited from TBela\CSS\Value\Unitmatch ($type) -  -- Public Member Functions inherited from TBela\CSS\Value\Numbermatch (string $type) -  - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name) @@ -136,30 +126,47 @@ Static Public Member Functions

static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, ?int $index=null, array $tokens=[])   +- Static Public Member Functions inherited from TBela\CSS\Value\Unit +static match (object $data, $type) +  +static doRender (object $data, array $options=[]) +  - Static Public Member Functions inherited from TBela\CSS\Value\Number -static compress (string $value) -  +static match (object $data, string $type) +  +static compress (string $value, array $options=[]) +  - Static Public Member Functions inherited from TBela\CSS\Value +static renderTokens (array $tokens, array $options=[], $join=null) +  static getClassName (string $type)   static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])   static getInstance ($data)   -static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='') -  +static equals (array $value, array $otherValue) +  +static format ($string, ?array &$comments=null) +  +static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  static reduce (array $tokens, array $options=[])   +static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static escape ($value) +  static keywords ()   static matchKeyword (string $string, array $keywords=null)   -static getNumericValue (?Value $value, array $options=[]) -  -static getRGBValue (Value $value) -  -static getAngleValue (?Value $value, array $options=[]) -  +static getNumericValue (?object $value, array $options=[]) +  +static getRGBValue (object $value) +  +static getAngleValue (?object $value, array $options=[]) +  @@ -184,6 +191,9 @@ + + + @@ -192,12 +202,12 @@ - - - - - - + + + + + + @@ -206,26 +216,6 @@

Static Protected Attributes

- Protected Member Functions inherited from TBela\CSS\Value\Number
 __construct ($data)
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value\Unit
static validate ($data)
 
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\FontSize::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value\Unit.

- -
-

◆ matchToken()

@@ -312,8 +302,6 @@

TBela\CSS\Value\Unit.

-

Referenced by TBela\CSS\Value\FontSize\getHash().

-

Member Data Documentation

@@ -352,7 +340,7 @@

__construct(RuleList $list=null, array $options=[]) (defined in TBela\CSS\Property\PropertyList)TBela\CSS\Property\PropertyList __toString()TBela\CSS\Property\PropertyList getIterator()TBela\CSS\Property\PropertyList - isEmpty()TBela\CSS\Property\PropertyList + has($property) (defined in TBela\CSS\Property\PropertyList)TBela\CSS\Property\PropertyList + isEmpty()TBela\CSS\Property\PropertyList + remove($property) (defined in TBela\CSS\Property\PropertyList)TBela\CSS\Property\PropertyList render($glue=';', $join="\n")TBela\CSS\Property\PropertyList - set(?string $name, $value, $propertyType=null, ?array $leadingcomments=null, ?array $trailingcomments=null, $src=null)TBela\CSS\Property\PropertyList + set(?string $name, $value, ?string $propertyType=null, ?array $leadingcomments=null, ?array $trailingcomments=null, ?string $src='', ?string $vendor=null)TBela\CSS\Property\PropertyList toObject()TBela\CSS\Property\PropertyList diff --git a/docs/api/html/d5/d9e/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface.html b/docs/api/html/d5/d9e/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface.html index c5f3daca..f462f2ee 100644 --- a/docs/api/html/d5/d9e/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface.html +++ b/docs/api/html/d5/d9e/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface.html @@ -97,24 +97,30 @@
-TBela\CSS\Query\QueryInterface -TBela\CSS\Interfaces\RenderableInterface -TBela\CSS\Interfaces\ParsableInterface -TBela\CSS\Interfaces\ObjectInterface +TBela\CSS\Query\QueryInterface +TBela\CSS\Interfaces\RenderableInterface +TBela\CSS\Interfaces\ParsableInterface +TBela\CSS\Interfaces\ObjectInterface TBela\CSS\Element -TBela\CSS\Interfaces\RuleListInterface +TBela\CSS\Interfaces\RuleListInterface TBela\CSS\Element\Comment TBela\CSS\Element\Declaration -TBela\CSS\Element\RuleList -TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet +TBela\CSS\Element\RuleSet +TBela\CSS\Element\Rule +TBela\CSS\Element\RuleSet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule
@@ -130,6 +136,8 @@ + + @@ -214,12 +222,6 @@

convert to string

Returns
string
-
Exceptions
-

 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
- -
Exception
- -

Implemented in TBela\CSS\Element.

@@ -445,6 +447,26 @@

TBela\CSS\Element.

+ + + +

◆ getRawValue()

+ +
+
+ + + + + + + +
TBela\CSS\Interfaces\ElementInterface::getRawValue ()
+
+

return parsed value

Returns
array
+ +

Implemented in TBela\CSS\Element.

+
@@ -521,7 +543,7 @@

-

return Value\Set|string

Returns
string
+
Returns
string

Implemented in TBela\CSS\Element.

@@ -548,7 +570,7 @@

Returns
array
+
Returns
ElementInterface[]
Exceptions
@@ -581,7 +603,7 @@

Returns
array
+
Returns
ElementInterface[]
Exceptions

@@ -610,7 +632,7 @@

assign the value

Parameters

- +
Value\Set | string$value
string$value
@@ -659,7 +681,7 @@

$defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Value\Colorprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\Color + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[])TBela\CSS\Value\Colorstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getClassName(string $type)TBela\CSS\Valuestatic getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic - jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value - keywords()TBela\CSS\Valuestatic - match($type)TBela\CSS\Value\Color - TBela::CSS::Value::match(string $type)TBela\CSS\Value - matchDefaults($token)TBela\CSS\Valueprotectedstatic - matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic - matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\OutlineColorstatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic - reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic - render(array $options=[])TBela\CSS\Value\Color + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic + jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value + keywords()TBela\CSS\Valuestatic + match(object $data, $type)TBela\CSS\Value\Colorstatic + TBela::CSS::Value::match(object $data, string $type)TBela\CSS\Valuestatic + matchDefaults($token)TBela\CSS\Valueprotectedstatic + matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic + matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\OutlineColorstatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic + render(array $options=[])TBela\CSS\Value\Color + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic rgba2cmyk_values(array $rgba_values, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic rgba2hwb_values(array $rgba_values, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic rgba2string($data, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic diff --git a/docs/api/html/d5/dc6/classTBela_1_1CSS_1_1Parser-members.html b/docs/api/html/d5/dc6/classTBela_1_1CSS_1_1Parser-members.html index 9d4b130c..20f7d736 100644 --- a/docs/api/html/d5/dc6/classTBela_1_1CSS_1_1Parser-members.html +++ b/docs/api/html/d5/dc6/classTBela_1_1CSS_1_1Parser-members.html @@ -89,45 +89,46 @@

This is the complete list of members for TBela\CSS\Parser, including all inherited members.

- - - - + + - - - - + + + + + + + + - - - - - - - - - + + + + + + + + + + + - - - - - - - - - + + + + + + + - - - - - - - - - + + + + + + + +
$ast (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$css (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$currentPosition (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$element (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$end (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$context (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$error (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$errors (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$options (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$previousPosition (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$src (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
__construct($css='', array $options=[])TBela\CSS\Parser
$format (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$lastDedupIndex (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$lexer (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$options (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$output (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$pool (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
$validators (defined in TBela\CSS\Parser)TBela\CSS\Parserprotectedstatic
__construct(string $css='', array $options=[])TBela\CSS\Parser
__toString() (defined in TBela\CSS\Parser)TBela\CSS\Parser
analyse()TBela\CSS\Parserprotected
append($file, $media='')TBela\CSS\Parser
appendContent($css, $media='')TBela\CSS\Parser
computeSignature($ast)TBela\CSS\Parserprotected
deduplicate($ast) (defined in TBela\CSS\Parser)TBela\CSS\Parser
deduplicateDeclarations($ast)TBela\CSS\Parserprotected
deduplicateRules($ast)TBela\CSS\Parserprotected
doParse()TBela\CSS\Parserprotected
doParseComments($node) (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
append(string $file, string $media='')TBela\CSS\Parser
appendContent(string $css, string $media='')TBela\CSS\Parser
computeSignature(object $ast)TBela\CSS\Parserprotected
deduplicate(object $ast, ?int $index=null)TBela\CSS\Parser
deduplicateDeclarations(object $ast)TBela\CSS\Parserprotected
deduplicateRules(object $ast, ?int $index=null)TBela\CSS\Parserprotected
doValidate(object $token, object $context, object $parentStylesheet)TBela\CSS\Parserprotected
emit(Exception $error)TBela\CSS\Parserprotected
enQueue($src, $buffer, $position) (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
enterNode(object $token, object $parentRule, object $parentStylesheet)TBela\CSS\Parserprotected
exitNode(object $token)TBela\CSS\Parserprotected
getAst()TBela\CSS\Parser
getBlockType($block)TBela\CSS\Parserprotected
getContent()TBela\CSS\Parser
getErrors()TBela\CSS\Parser
getFileContent(string $file, string $media='')TBela\CSS\Parserprotected
getNextPosition($input, $currentIndex, $currentLine, $currentColumn)TBela\CSS\Parserprotected
getRoot()TBela\CSS\Parserprotected
load($file, $media='')TBela\CSS\Parser
merge($parser)TBela\CSS\Parser
next()TBela\CSS\Parserprotected
getContext()TBela\CSS\Parserprotected
getErrors()TBela\CSS\Parser
handleError(string $message, int $error_code=400)TBela\CSS\Parserprotected
load(string $file, string $media='')TBela\CSS\Parser
merge(Parser $parser)TBela\CSS\Parser
off(string $event, callable $callable)TBela\CSS\Parser
on(string $event, callable $callable)TBela\CSS\Parser
parse()TBela\CSS\Parser
parseAtRule($rule, $position, $blockType='')TBela\CSS\Parserprotected
parseComment($comment, $position)TBela\CSS\Parserprotected
parseDeclarations($rule, $block, $position)TBela\CSS\Parserprotected
parseRule($rule, $position)TBela\CSS\Parserprotected
parseVendor($str)TBela\CSS\Parserprotected
setAst(ElementInterface $element)TBela\CSS\Parser
setContent($css, $media='')TBela\CSS\Parser
setOptions(array $options)TBela\CSS\Parser
update($position, string $string)TBela\CSS\Parserprotected
popContext()TBela\CSS\Parserprotected
pushContext(object $context)TBela\CSS\Parserprotected
reset() (defined in TBela\CSS\Parser)TBela\CSS\Parserprotected
setContent(string $css, string $media='')TBela\CSS\Parser
setOptions(array $options)TBela\CSS\Parser
slice($css, $position, $size) (defined in TBela\CSS\Parser)TBela\CSS\Parser
stream(string $content, object $root, string $file)TBela\CSS\Parserprotected
validate(object $token, object $parentRule, object $parentStylesheet)TBela\CSS\Parserprotected
diff --git a/docs/api/html/d5/dcb/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionContains.html b/docs/api/html/d5/dcb/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionContains.html index 732e492a..582258d8 100644 --- a/docs/api/html/d5/dcb/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionContains.html +++ b/docs/api/html/d5/dcb/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionContains.html @@ -125,7 +125,7 @@  
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Query/TokenSelectorValueAttributeFunctionContains.php
  • +
  • src/Query/TokenSelectorValueAttributeFunctionContains.php
diff --git a/docs/api/html/d5/dcb/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionContains.png b/docs/api/html/d5/dcb/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionContains.png index bb98b8bb..403da13f 100644 Binary files a/docs/api/html/d5/dcb/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionContains.png and b/docs/api/html/d5/dcb/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionContains.png differ diff --git a/docs/api/html/d5/df3/classTBela_1_1CSS_1_1Value_1_1OutlineWidth.html b/docs/api/html/d5/df3/classTBela_1_1CSS_1_1Value_1_1OutlineWidth.html index 8763b35e..f5988667 100644 --- a/docs/api/html/d5/df3/classTBela_1_1CSS_1_1Value_1_1OutlineWidth.html +++ b/docs/api/html/d5/df3/classTBela_1_1CSS_1_1Value_1_1OutlineWidth.html @@ -82,7 +82,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

 getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value\Unit
 match ($type)
 
 render (array $options=[])
 
- Public Member Functions inherited from TBela\CSS\Value\Number
 match (string $type)
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
+ + + + + - - + + + + + + - - + + + + + + + + + + - - - - - - + + + + + +

Static Public Member Functions

static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value\Unit
static match (object $data, $type)
 
static doRender (object $data, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value\Number
static compress (string $value)
 
static match (object $data, string $type)
 
static compress (string $value, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static getClassName (string $type)
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
@@ -176,9 +165,27 @@

Static Protected Attributes

+ + + + + + + + + + + + + + + + + @@ -187,12 +194,12 @@ - - - - - - + + + + + + @@ -201,26 +208,6 @@

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value\Unit
 render (array $options=[])
 
- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
- Protected Member Functions inherited from TBela\CSS\Value\Number
 __construct ($data)
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value\Unit
static validate ($data)
 
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\OutlineWidth::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value\Unit.

- -
-

◆ matchToken()

@@ -319,7 +306,7 @@

$defaults (defined in TBela\CSS\Value\BackgroundColor)TBela\CSS\Value\BackgroundColorstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Value\Colorprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\BackgroundColorstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\Color + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\BackgroundColorstatic + doRender(object $data, array $options=[])TBela\CSS\Value\Colorstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getClassName(string $type)TBela\CSS\Valuestatic getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic - jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value - keywords()TBela\CSS\Valuestatic - match($type)TBela\CSS\Value\Color - TBela::CSS::Value::match(string $type)TBela\CSS\Value - matchDefaults($token)TBela\CSS\Valueprotectedstatic - matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic - matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\BackgroundColorstatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic - reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic - render(array $options=[])TBela\CSS\Value\Color + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic + jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value + keywords()TBela\CSS\Valuestatic + match(object $data, $type)TBela\CSS\Value\Colorstatic + TBela::CSS::Value::match(object $data, string $type)TBela\CSS\Valuestatic + matchDefaults($token)TBela\CSS\Valueprotectedstatic + matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic + matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\BackgroundColorstatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic + render(array $options=[])TBela\CSS\Value\Color + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic rgba2cmyk_values(array $rgba_values, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic rgba2hwb_values(array $rgba_values, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic rgba2string($data, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic diff --git a/docs/api/html/d6/d0a/classTBela_1_1CSS_1_1Property_1_1Comment.html b/docs/api/html/d6/d0a/classTBela_1_1CSS_1_1Property_1_1Comment.html index fd3b58d4..c051bbfc 100644 --- a/docs/api/html/d6/d0a/classTBela_1_1CSS_1_1Property_1_1Comment.html +++ b/docs/api/html/d6/d0a/classTBela_1_1CSS_1_1Property_1_1Comment.html @@ -109,16 +109,14 @@ Public Member Functions

 __construct ($value)   - getName () -  + getName (bool $vendor=false) +   setValue ($value)    getValue ()    render (array $options=[])   - getHash () -   setTrailingComments (?array $comments)    getTrailingComments () @@ -128,6 +126,12 @@  getLeadingComments ()   - Public Member Functions inherited from TBela\CSS\Property\PropertysetVendor ($vendor) +  + getVendor () +  + setName ($name) +   getType ()    __toString () @@ -147,6 +151,9 @@ string $name   + +string $vendor = null +  array $leadingcomments = null   @@ -178,7 +185,7 @@

PropertyComment constructor.

Parameters
- +
Set  |  Value  |  string$value
array  |  string$value
@@ -188,26 +195,6 @@

Member Function Documentation

- -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Property\Comment::getHash ()
-
-

get property hash.

Returns
string
- -

Reimplemented from TBela\CSS\Property\Property.

- -
-

◆ getLeadingComments()

@@ -228,8 +215,8 @@

-

◆ getName()

+ +

◆ getName()

@@ -374,7 +362,7 @@

Set the value

Parameters
- +
Set  |  Value  |  string$value
array  |  string$value
@@ -387,7 +375,7 @@

$defaults (defined in TBela\CSS\Value\LineHeight)TBela\CSS\Value\LineHeightprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\LineHeight)TBela\CSS\Value\LineHeightprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\LineHeight + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[]) (defined in TBela\CSS\Value\LineHeight)TBela\CSS\Value\LineHeightstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getClassName(string $type)TBela\CSS\Valuestatic getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic - jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value - keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value - matchDefaults($token)TBela\CSS\Valueprotectedstatic - matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic - matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\LineHeightstatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic - reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic - render(array $options=[])TBela\CSS\Value\LineHeight + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic + jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value + keywords()TBela\CSS\Valuestatic + match(object $data, string $type)TBela\CSS\Valuestatic + matchDefaults($token)TBela\CSS\Valueprotectedstatic + matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic + matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\LineHeightstatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic + render(array $options=[])TBela\CSS\Value\LineHeight + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic toObject()TBela\CSS\Value type()TBela\CSS\Valueprotectedstatic validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.html b/docs/api/html/d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.html index fb75607c..35579b8e 100644 --- a/docs/api/html/d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.html +++ b/docs/api/html/d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.html @@ -96,26 +96,32 @@
-TBela\CSS\Interfaces\RenderableInterface -TBela\CSS\Parser +TBela\CSS\Interfaces\RenderableInterface +TBela\CSS\Parser TBela\CSS\Property\Property -TBela\CSS\Query\QueryInterface +TBela\CSS\Query\QueryInterface TBela\CSS\Property\Comment -TBela\CSS\Interfaces\ElementInterface +TBela\CSS\Interfaces\ElementInterface TBela\CSS\Element -TBela\CSS\Interfaces\RuleListInterface +TBela\CSS\Interfaces\RuleListInterface TBela\CSS\Element\Comment TBela\CSS\Element\Declaration -TBela\CSS\Element\RuleList -TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet +TBela\CSS\Element\RuleSet +TBela\CSS\Element\Rule +TBela\CSS\Element\RuleSet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule
@@ -143,12 +149,12 @@

TBela\CSS\Element, TBela\CSS\Parser, and TBela\CSS\Property\Property.

-

Referenced by TBela\CSS\Renderer\render(), and TBela\CSS\Parser\setAst().

+

Referenced by TBela\CSS\Renderer\render().


The documentation for this interface was generated from the following file:
    -
  • src/TBela/CSS/Interfaces/ParsableInterface.php
  • +
  • src/Interfaces/ParsableInterface.php
diff --git a/docs/api/html/d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.png b/docs/api/html/d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.png index 86c71357..7b0b097b 100644 Binary files a/docs/api/html/d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.png and b/docs/api/html/d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.png differ diff --git a/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.html b/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.html new file mode 100644 index 00000000..26880d77 --- /dev/null +++ b/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\AtRule Class Reference + + + + + + + + + + + + + +
+
+

+ + + + + +
+
CSS +
+
+ + + + + + + + + +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Parser\Validator\AtRule Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Parser\Validator\AtRule:
+
+
+ + + + + + + + +

+Public Member Functions

 validate (object $token, object $parentRule, object $parentStylesheet)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
getError ()
 
+ + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
const VALID = 1
 
const REMOVE = 2
 
const REJECT = 3
 
+

Member Function Documentation

+ +

◆ validate()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Validator\AtRule::validate (object $token,
object $parentRule,
object $parentStylesheet 
)
+
+
Parameters
+ + + + +
object$token
object$parentRule
object | null$parentStylesheet
+
+
+
Returns
int
+ +

Implements TBela\CSS\Interfaces\ValidatorInterface.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Parser/Validator/AtRule.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.js b/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.js new file mode 100644 index 00000000..8828a127 --- /dev/null +++ b/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule = +[ + [ "validate", "d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.html#a7ff22968fd04da961a090995ec73c491", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.png b/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.png new file mode 100644 index 00000000..0064b5f0 Binary files /dev/null and b/docs/api/html/d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.png differ diff --git a/docs/api/html/d6/d3e/classTBela_1_1CSS_1_1Value_1_1CssFunction-members.html b/docs/api/html/d6/d3e/classTBela_1_1CSS_1_1Value_1_1CssFunction-members.html new file mode 100644 index 00000000..7057dcc2 --- /dev/null +++ b/docs/api/html/d6/d3e/classTBela_1_1CSS_1_1Value_1_1CssFunction-members.html @@ -0,0 +1,138 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Value\CssFunction Member List
+
+
+ +

This is the complete list of members for TBela\CSS\Value\CssFunction, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$cache (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$dataTBela\CSS\Valueprotected
$defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
$keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
__construct(object $data)TBela\CSS\Valueprotected
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
doRender(object $data, array $options=[])TBela\CSS\Value\CssFunctionstatic
equals(array $value, array $otherValue)TBela\CSS\Valuestatic
escape($value)TBela\CSS\Valuestatic
format($string, ?array &$comments=null)TBela\CSS\Valuestatic
getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(object $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
getValue()TBela\CSS\Value\CssFunction
indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
keywords()TBela\CSS\Valuestatic
match(object $data, string $type)TBela\CSS\Valuestatic
matchDefaults($token)TBela\CSS\Valueprotectedstatic
matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic
parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
render(array $options=[])TBela\CSS\Value\CssFunction
renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Value\CssFunctionprotectedstatic
+
+ + + + diff --git a/docs/api/html/d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html b/docs/api/html/d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html new file mode 100644 index 00000000..adae811f --- /dev/null +++ b/docs/api/html/d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html @@ -0,0 +1,424 @@ + + + + + + + +CSS: TBela\CSS\Parser\Lexer Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Parser\Lexer Class Reference
+
+
+ + + + + + + + + + + + + + + + + + +

+Public Member Functions

 __construct (string $css='', object $context=null)
 
 setContent ($css)
 
 setContext (object $context)
 
 load ($file, $media='')
 
 tokenize ()
 
doTokenize ($css, $src, $recover, $context, $parentStylesheet, $parentMediaRule)
 
setParentOffset (object $parentOffset)
 
 createContext ()
 
+ + + + + + + +

+Protected Member Functions

parseComments (object $token)
 
 parseVendor ($str)
 
 getStatus ($event, object $rule, $context, $parentStylesheet)
 
+ + + + + + + + + + + + + + + +

+Protected Attributes

+object $parentOffset = null
 
+object $parentStylesheet = null
 
+object $parentMediaRule = null
 
+string $css = ''
 
+string $src = ''
 
+object $context
 
+bool $recover = false
 
+

Constructor & Destructor Documentation

+ +

◆ __construct()

+ +
+
+ + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Lexer::__construct (string $css = '',
object $context = null 
)
+
+

Parser constructor.

Parameters
+ + + +
string$css
object | null$context
+
+
+ +
+
+

Member Function Documentation

+ +

◆ createContext()

+ +
+
+ + + + + + + +
TBela\CSS\Parser\Lexer::createContext ()
+
+
Returns
object @ignore
+ +
+
+ +

◆ getStatus()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Lexer::getStatus ( $event,
object $rule,
 $context,
 $parentStylesheet 
)
+
+protected
+
+
Parameters
+ + + +
string$event
object$rule
+
+
+
Returns
void
+ +
+
+ +

◆ load()

+ +
+
+ + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Lexer::load ( $file,
 $media = '' 
)
+
+
Parameters
+ + + +
string$file
string$media
+
+
+
Returns
Lexer
+
Exceptions
+ + +
IOException
+
+
+ +
+
+ +

◆ parseVendor()

+ +
+
+ + + + + +
+ + + + + + + + +
TBela\CSS\Parser\Lexer::parseVendor ( $str)
+
+protected
+
+
Parameters
+ + +
string$str
+
+
+
Returns
array @ignore
+ +
+
+ +

◆ setContent()

+ +
+
+ + + + + + + + +
TBela\CSS\Parser\Lexer::setContent ( $css)
+
+
Parameters
+ + +
$css
+
+
+
Returns
Lexer
+ +
+
+ +

◆ setContext()

+ +
+
+ + + + + + + + +
TBela\CSS\Parser\Lexer::setContext (object $context)
+
+
Parameters
+ + +
object$context
+
+
+
Returns
Lexer
+ +
+
+ +

◆ tokenize()

+ +
+
+ + + + + + + +
TBela\CSS\Parser\Lexer::tokenize ()
+
+
Returns
Lexer
+
Exceptions
+ + +
Exception
+
+
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Parser/Lexer.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.js b/docs/api/html/d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.js new file mode 100644 index 00000000..7d8bad15 --- /dev/null +++ b/docs/api/html/d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.js @@ -0,0 +1,21 @@ +var classTBela_1_1CSS_1_1Parser_1_1Lexer = +[ + [ "__construct", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#af59718cb102dea1fd774c1bdc00da554", null ], + [ "createContext", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a8268017fe185712c2c6390e62e2de722", null ], + [ "doTokenize", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a11b4d6e4dc29e51e44d0dd11d148f193", null ], + [ "getStatus", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a8d3efad94b2bb26b23aaf02882f7bdb7", null ], + [ "load", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a666b6e016d40ca8a8df2b28b67a89a11", null ], + [ "parseComments", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a474f1bbfbc0c448f4d74b5ee3a20a4be", null ], + [ "parseVendor", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a94b9d294494b475de00260337dbf340a", null ], + [ "setContent", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#acf901e65af3f31e376c567ea9eb2fd53", null ], + [ "setContext", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a3c83fddb465c48fe6060c8170da6cfc0", null ], + [ "setParentOffset", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#afd4a3c5c1b5d5685fc2f0c250a51189c", null ], + [ "tokenize", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a869f17161be83124353e75f7ef7971e5", null ], + [ "$context", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a8b7c9bcf5e84175bfd87d64445fc1aec", null ], + [ "$css", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#ab001c57eb3cb5a757cd782380a97fc65", null ], + [ "$parentMediaRule", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a8e7848bb08fe25ce1572312204be271c", null ], + [ "$parentOffset", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a1a8486145cc4d3beee05af732c882863", null ], + [ "$parentStylesheet", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a1e6d1a01daff63a7a23ce8b577acb98c", null ], + [ "$recover", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#a4cf4a9558c94fa07b2630ed5f424f601", null ], + [ "$src", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html#ac6045141ff3a6f7eb615abaf2758459b", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d6/d63/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueSeparator.html b/docs/api/html/d6/d63/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueSeparator.html index 0d48c326..b2d032dc 100644 --- a/docs/api/html/d6/d63/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueSeparator.html +++ b/docs/api/html/d6/d63/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueSeparator.html @@ -186,7 +186,7 @@

   render (array $options=[])   - getHash () -  - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - match (string $type) -   toObject ()    __toString () @@ -136,39 +130,51 @@   static matchDefaults ($token)   -static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='') -  -static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='') -  -static getType (string $token) -  +static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static indexOf (array $array, $search, int $offset=0) +  +static getType (string $token, $preserve_quotes=false) +  + + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + @@ -187,26 +193,6 @@

Additional Inherited Members

- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\Whitespace::getHash ()
-
-

@inheritDoc

- -

Reimplemented from TBela\CSS\Value.

- -
-

◆ getValue()

@@ -276,7 +262,7 @@

$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected $parentTBela\CSS\Elementprotected - __clone()TBela\CSS\Element - __construct($ast=null, $parent=null)TBela\CSS\Element + $rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected + __clone()TBela\CSS\Element + __construct($ast=null, $parent=null)TBela\CSS\Element + __get($name) (defined in TBela\CSS\Element\RuleList)TBela\CSS\Element\RuleList __toString()TBela\CSS\Element addAtRule($name, $value=null, $type=0)TBela\CSS\Element\RuleSet addComment($value)TBela\CSS\Element\RuleList @@ -116,30 +118,31 @@ getLeadingComments()TBela\CSS\Element getParent()TBela\CSS\Element getPosition()TBela\CSS\Element - getRoot()TBela\CSS\Element - getSrc()TBela\CSS\Element - getTrailingComments()TBela\CSS\Element - getType()TBela\CSS\Element - getValue()TBela\CSS\Element - hasChildren()TBela\CSS\Element\RuleList - hasDeclarations()TBela\CSS\Element\AtRule - insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList - isLeaf()TBela\CSS\Element\AtRule - jsonSerialize()TBela\CSS\Element\AtRule - query($query)TBela\CSS\Element - TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface - queryByClassNames($query)TBela\CSS\Element - remove(ElementInterface $element)TBela\CSS\Element\RuleList - removeChildren()TBela\CSS\Element\RuleList - setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element - setChildren(array $elements)TBela\CSS\Element\RuleList - setComments(?array $comments, $type)TBela\CSS\Elementprotected - setLeadingComments(?array $comments)TBela\CSS\Element - setTrailingComments(?array $comments)TBela\CSS\Element - setValue($value)TBela\CSS\Element - support(ElementInterface $child)TBela\CSS\Element\AtRule - toObject()TBela\CSS\Element - traverse(callable $fn, $event)TBela\CSS\Element + getRawValue()TBela\CSS\Element + getRoot()TBela\CSS\Element + getSrc()TBela\CSS\Element + getTrailingComments()TBela\CSS\Element + getType()TBela\CSS\Element + getValue()TBela\CSS\Element + hasChildren()TBela\CSS\Element\RuleList + hasDeclarations()TBela\CSS\Element\AtRule + insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList + isLeaf()TBela\CSS\Element\AtRule + jsonSerialize()TBela\CSS\Element\AtRule + query($query)TBela\CSS\Element + TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface + queryByClassNames($query)TBela\CSS\Element + remove(ElementInterface $element)TBela\CSS\Element\RuleList + removeChildren()TBela\CSS\Element\RuleList + setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element + setChildren(array $elements)TBela\CSS\Element\RuleList + setComments(?array $comments, $type)TBela\CSS\Elementprotected + setLeadingComments(?array $comments)TBela\CSS\Element + setTrailingComments(?array $comments)TBela\CSS\Element + setValue($value)TBela\CSS\Element + support(ElementInterface $child)TBela\CSS\Element\AtRule + toObject()TBela\CSS\Element + traverse(callable $fn, $event)TBela\CSS\Element diff --git a/docs/api/html/pages.html b/docs/api/html/d6/dcc/classTBela_1_1CSS_1_1Process_1_1Helper-members.html similarity index 57% rename from docs/api/html/pages.html rename to docs/api/html/d6/dcc/classTBela_1_1CSS_1_1Process_1_1Helper-members.html index e232b0d3..b359f13d 100644 --- a/docs/api/html/pages.html +++ b/docs/api/html/d6/dcc/classTBela_1_1CSS_1_1Process_1_1Helper-members.html @@ -5,18 +5,18 @@ -CSS: Related Pages - - - - - - - - - - - +CSS: Member List + + + + + + + + + + +
@@ -36,15 +36,15 @@ - - + + @@ -62,7 +62,7 @@
@@ -82,22 +82,21 @@
-
Related Pages
+
TBela\CSS\Process\Helper Member List
-
Here is a list of all related documentation pages:
+ +

This is the complete list of members for TBela\CSS\Process\Helper, including all inherited members.

- -
 Deprecated List
-
-
+ getCPUCount() (defined in TBela\CSS\Process\Helper)TBela\CSS\Process\Helperstatic + diff --git a/docs/api/html/d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.html b/docs/api/html/d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.html index 763dcfa0..0ceb81b8 100644 --- a/docs/api/html/d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.html +++ b/docs/api/html/d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.html @@ -98,7 +98,6 @@ TBela\CSS\Interfaces\RenderableInterface TBela\CSS\Value -TBela\CSS\Value\Set TBela\CSS\Property\Property TBela\CSS\Query\QueryInterface TBela\CSS\Value\BackgroundClip @@ -109,20 +108,23 @@ TBela\CSS\Value\Color TBela\CSS\Value\Comment TBela\CSS\Value\CssAttribute -TBela\CSS\Value\CSSFunction +TBela\CSS\Value\CssFunction TBela\CSS\Value\CssParenthesisExpression TBela\CSS\Value\CssString TBela\CSS\Value\FontStretch TBela\CSS\Value\FontStyle TBela\CSS\Value\FontVariant TBela\CSS\Value\FontWeight -TBela\CSS\Value\LineHeight -TBela\CSS\Value\Number -TBela\CSS\Value\Operator -TBela\CSS\Value\OutlineStyle -TBela\CSS\Value\Separator -TBela\CSS\Value\ShortHand -TBela\CSS\Value\Whitespace +TBela\CSS\Value\InvalidComment +TBela\CSS\Value\InvalidCssFunction +TBela\CSS\Value\InvalidCssString +TBela\CSS\Value\LineHeight +TBela\CSS\Value\Number +TBela\CSS\Value\Operator +TBela\CSS\Value\OutlineStyle +TBela\CSS\Value\Separator +TBela\CSS\Value\ShortHand +TBela\CSS\Value\Whitespace @@ -148,12 +150,12 @@

convert to object

Returns
mixed
-

Implemented in TBela\CSS\Value, TBela\CSS\Element, and TBela\CSS\Value\Set.

+

Implemented in TBela\CSS\Value, and TBela\CSS\Element.


The documentation for this interface was generated from the following file:
    -
  • src/TBela/CSS/Interfaces/ObjectInterface.php
  • +
  • src/Interfaces/ObjectInterface.php
diff --git a/docs/api/html/d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.png b/docs/api/html/d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.png index a2935963..2cfffaa8 100644 Binary files a/docs/api/html/d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.png and b/docs/api/html/d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.png differ diff --git a/docs/api/html/d6/ddc/classTBela_1_1CSS_1_1Value_1_1OutlineColor.html b/docs/api/html/d6/ddc/classTBela_1_1CSS_1_1Value_1_1OutlineColor.html index 8fd8cb8b..514c7734 100644 --- a/docs/api/html/d6/ddc/classTBela_1_1CSS_1_1Value_1_1OutlineColor.html +++ b/docs/api/html/d6/ddc/classTBela_1_1CSS_1_1Value_1_1OutlineColor.html @@ -107,6 +107,10 @@

+ + + + @@ -123,43 +127,47 @@ static  + + + + - - + + + + + + + + + + - - - - - - + + + + + +
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value\Color
static match (object $data, $type)
 
static doRender (object $data, array $options=[])
 
static rgba2string ($data, array $options=[])
 
rgba2cmyk_values (array $rgba_values, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- - - - - - - - @@ -167,9 +175,9 @@ - - - + + + @@ -178,12 +186,12 @@ - - - - - - + + + + + + @@ -272,7 +280,7 @@

@@ -107,24 +108,54 @@

+ + + + - - + + + + + + + + + + - - - - - - + + + + + + +

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value\Color
 getHash ()
 
 match ($type)
 
 render (array $options=[])
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 toObject ()
 
 __toString ()
 jsonSerialize ()
 
- Protected Member Functions inherited from TBela\CSS\Value\Color
 __construct ($data)
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value\Color
static validate ($data)
 
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
static matchKeyword (string $string, array $keywords=null)
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
+ + + + + + + + + + + + + + + +

+Static Protected Member Functions

static doParse ($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
@@ -151,16 +182,10 @@ - - - - - - @@ -171,21 +196,8 @@   - - - - - - - - - - - - - - - + + @@ -194,6 +206,66 @@

Static Protected Attributes

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 getHash ()
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
jsonSerialize ()
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

+ +

◆ doParse()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
static TBela\CSS\Value\BackgroundRepeat::doParse ( $string,
 $capture_whitespace = true,
 $context = '',
 $contextName = '',
 $preserve_quotes = false 
)
+
+staticprotected
+
+

@inheritDoc

Exceptions
+ + +
+
+
+ +
+

◆ matchKeyword()

@@ -331,7 +403,7 @@

$defaults (defined in TBela\CSS\Value\BackgroundClip)TBela\CSS\Value\BackgroundClipprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\BackgroundClip)TBela\CSS\Value\BackgroundClipprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d6/ded/namespaceCSS.html b/docs/api/html/d6/ded/namespaceCSS.html index 1b455ac0..7e5f9e02 100644 --- a/docs/api/html/d6/ded/namespaceCSS.html +++ b/docs/api/html/d6/ded/namespaceCSS.html @@ -88,10 +88,543 @@

Detailed Description

Css property

Property list

-

string tokens set

CSS value base class

+
__construct($value)
Definition: TokenSelectorValueAttributeFunction.php:15
+
Definition: MissingParameterException.php:5
+
tokenize()
Definition: Lexer.php:153
+
__construct(array $tokens)
Definition: TokenList.php:20
+
Definition: ShortHand.php:13
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeFunctionNot.php:25
+
static indexOf(array $array, $search, int $offset=0)
Definition: Value.php:1294
+
render(array $options)
Definition: TokenSelectorValueAttributeFunctionNot.php:40
+
const REJECT
Definition: ValidatorInterface.php:23
+
__construct($value)
Definition: TokenSelectorValueAttributeFunctionNot.php:15
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: FontWeight.php:84
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: LineHeight.php:25
+
setLeadingComments(?array $comments)
Definition: Element.php:335
+
Definition: OutlineColor.php:9
+
const ELEMENT_AT_DECLARATIONS_LIST
Definition: AtRule.php:23
+
getSrc()
Definition: Element.php:272
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: InvalidComment.php:12
+
const VALID
Definition: ValidatorInterface.php:13
+
Definition: Outline.php:9
+
getRawValue()
Definition: Element.php:182
+
render(array $options=[])
Definition: CssSrcFormat.php:16
+
static doParse($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
Definition: FontWeight.php:109
+
select_all_nodes(QueryInterface $element)
Definition: TokenSelect.php:96
+
static match(object $data, string $type)
Definition: Value.php:217
+
Definition: RuleListInterface.php:15
+
Definition: TokenSelectorValueAttributeTest.php:5
+
__construct(array $options=[])
Definition: Renderer.php:54
+
static escape($value)
Definition: Value.php:1261
+
render(array $options=[])
Definition: TokenSelectorValueAttributeTest.php:38
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: NestingMedialRule.php:12
+
Definition: Comment.php:12
+
Definition: RenderableInterface.php:9
+
getValue()
Definition: InvalidCssString.php:26
+
render(array $options=[])
Definition: TokenSelectorValueAttributeSelector.php:168
+
on(string $event, callable $callable)
Definition: Parser.php:262
+
getProperties()
Definition: PropertyMap.php:392
+
render(array $options)
Definition: TokenSelectorValueAttributeFunctionColor.php:99
+
Definition: TokenSelectorValueAttributeFunctionNot.php:5
+ +
Definition: CssString.php:11
+
static doParse($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
Definition: BackgroundRepeat.php:71
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: Parser.php:929
+ +
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: FontVariant.php:32
+
Definition: TokenWhitespace.php:5
+
__toString()
Definition: PropertyMap.php:429
+
appendCss($css)
Definition: RuleList.php:224
+
Definition: ElementInterface.php:13
+
static validate($data)
Definition: CssUrl.php:13
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: OutlineColor.php:16
+ +
static resolvePath(string $file, string $path='')
Definition: Helper.php:75
+
Definition: FontWeight.php:11
+
setContent(string $css, string $media='')
Definition: Parser.php:482
+
static compress(string $value, array $options=[])
Definition: Number.php:56
+
static matchPattern(array $tokens)
Definition: ShortHand.php:79
+
insert(ElementInterface $element, $position)
Definition: RuleList.php:234
+
__construct($data)
Definition: Number.php:16
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, ?int $index=null, array $tokens=[])
Definition: FontSize.php:34
+
Definition: Operator.php:11
+
static match(object $data, $type)
Definition: Unit.php:23
+
stream(string $content, object $root, string $file)
Definition: Parser.php:286
+
getType()
Definition: Element.php:217
+
Definition: AtRule.php:12
+
Definition: Background.php:11
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: InvalidDeclaration.php:12
+
addPosition($generated, object $ast)
Definition: Renderer.php:882
+
getValue()
Definition: CssFunction.php:40
+
load(string $file, string $media='')
Definition: Parser.php:514
+
Definition: Token.php:5
+
append(ElementInterface ... $elements)
Definition: RuleList.php:189
+ +
static getNumericValue(?object $value, array $options=[])
Definition: Value.php:1409
+
render(array $options=[])
Definition: Comment.php:60
+
getTokenType(string $token, string $context)
Definition: Parser.php:670
+
evaluate(array $context)
Definition: TokenSelectorValueAttribute.php:63
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeFunctionGeneric.php:43
+
__isset($name)
Definition: Value.php:206
+
static check(array $set, $value,... $values)
Definition: BackgroundPosition.php:184
+
static match(object $data, $type)
Definition: FontWeight.php:75
+
enterNode(object $token, object $parentRule, object $parentStylesheet)
Definition: Parser.php:998
+
Definition: Value.php:22
+
Definition: TokenSelectorValueAttributeFunctionGeneric.php:5
+
Definition: Parser.php:24
+
Definition: TokenSelectorValueSeparator.php:5
+
walk(array $tree, object $position, ?int $level=0)
Definition: Renderer.php:232
+
Definition: Rule.php:9
+
handleError(string $message, int $error_code=400)
Definition: Parser.php:904
+
static absolutePath($file, $ref)
Definition: Helper.php:129
+
__construct($value)
Definition: TokenSelectorValueAttributeIndex.php:13
+
load($file, $media='')
Definition: Lexer.php:83
+
Definition: PropertyList.php:15
+
Definition: InvalidComment.php:12
+
getValue()
Definition: Property.php:71
+
Definition: TokenSelectorValueAttributeFunctionComment.php:5
+ +
addComment($value)
Definition: RuleList.php:51
+
Definition: TokenSelectorValueAttributeFunctionColor.php:8
+
setLeadingComments(?array $comments)
Definition: Comment.php:89
+
evaluate(array $context)
Definition: TokenSelectorValueSeparator.php:32
+
static addSet($shorthand, $pattern, array $properties, $separator=null, $shorthandOverride=null)
Definition: Config.php:139
+
setName($name)
Definition: Property.php:98
+
Definition: TokenSelectorValueAttributeExpression.php:7
+
static validate($data)
Definition: CssAttribute.php:13
+ + +
setProperty($name, $value)
Definition: PropertyMap.php:375
+
support(ElementInterface $child)
Definition: RuleList.php:167
+
hasChildren()
Definition: RuleList.php:103
+
Definition: CssUrl.php:11
+
setProperty($name, $value, $vendor=null)
Definition: PropertySet.php:359
+
Definition: TokenSelectorValueAttributeFunctionEndswith.php:5
+
Definition: Position.php:15
+
getEnd()
Definition: SourceLocation.php:52
+
static match(object $data, string $type)
Definition: Number.php:36
+
static fromUrl($url, array $options=[])
Definition: Element.php:122
+
__construct(string $shorthand, array $config)
Definition: PropertySet.php:44
+
Definition: FontStretch.php:11
+
Definition: NestingRule.php:7
+
static doRender(object $data, array $options=[])
Definition: CssFunction.php:32
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: NestingAtRule.php:13
+
renderValue(object $ast)
Definition: Renderer.php:785
+ +
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: Value.php:288
+
render(array $options=[])
Definition: Number.php:101
+
setOptions(array $options)
Definition: Parser.php:525
+
static equals(array $value, array $otherValue)
Definition: Value.php:357
+
getName(bool $vendor=true)
Definition: Property.php:118
+
render(array $options=[])
Definition: BackgroundImage.php:30
+
parse()
Definition: Parser.php:575
+
filter(array $context)
Definition: TokenSelectorValueSeparator.php:23
+
Definition: InvalidComment.php:8
+
static validate($data)
Definition: InvalidCssString.php:18
+
setValue($value)
Definition: Element.php:190
+
toObject()
Definition: Element.php:651
+
__construct(array $value)
Definition: TokenSelectorValueAttributeSelector.php:20
+
Definition: NestingMediaRule.php:11
+
render(array $options=[])
Definition: TokenSelectorValueString.php:76
+ +
static validate($data)
Definition: CssParenthesisExpression.php:13
+
Definition: Parser.php:9
+
static doRecover(object $data)
Definition: InvalidCssString.php:41
+
Definition: ObjectInterface.php:13
+
add(string $name, string $description, string $type, array|string $alias=null, $multiple=true, $required=false, $defaultValue=null, ?array $options=[], array|string|null $dependsOn=null, $group='default')
Definition: Args.php:78
+
Definition: TokenSelectorValueAttribute.php:5
+ +
getSelector()
Definition: Rule.php:16
+
renderAst(object $ast, ?int $level=null)
Definition: Renderer.php:87
+ +
static getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
Definition: Value.php:745
+
getIterator()
Definition: RuleList.php:284
+
isLeaf()
Definition: NestingMediaRule.php:23
+
Definition: Evaluator.php:8
+
Definition: RuleSet.php:12
+
setTrailingComments(?array $comments)
Definition: Element.php:288
+
evaluate(array $context)
Definition: TokenSelectorValueString.php:31
+
Definition: NestingAtRule.php:5
+
filter(array $context)
Definition: TokenSelect.php:17
+
Definition: DuplicateArgumentException.php:5
+
Definition: OutlineStyle.php:11
+
static getType(string $token, $preserve_quotes=false)
Definition: Value.php:1315
+
Definition: FontStyle.php:11
+
getValue()
Definition: Whitespace.php:24
+
jsonSerialize()
Definition: AtRule.php:102
+
getProperties()
Definition: PropertySet.php:384
+
doParse(string $string)
Definition: Parser.php:96
+
addValue($value)
Definition: Option.php:53
+ +
Definition: InvalidTokenInterface.php:8
+
doTraverse($node, $level)
Definition: Traverser.php:79
+
update(object $position, string $string)
Definition: Renderer.php:918
+
render(array $options=[])
Definition: FontWeight.php:40
+
Definition: ParsableInterface.php:5
+
__construct($ast=null, $parent=null)
Definition: Element.php:46
+
isLeaf()
Definition: AtRule.php:33
+
parse_selectors()
Definition: Parser.php:199
+
Definition: EventInterface.php:5
+
jsonSerialize()
Definition: Element.php:616
+
render(array $options=[])
Definition: Whitespace.php:32
+
getVendor()
Definition: Property.php:89
+
sortNodes($nodes)
Definition: Evaluator.php:151
+
setContext(object $context)
Definition: Lexer.php:67
+
static getAngleValue(?object $value, array $options=[])
Definition: Value.php:1435
+
getParent()
Definition: Element.php:209
+
render($join="\n")
Definition: PropertyMap.php:403
+
Definition: Stylesheet.php:5
+
render(array $options=[])
Definition: Property.php:137
+
render(array $options=[])
Definition: CssUrl.php:18
+
Definition: InvalidRule.php:8
+
support(ElementInterface $child)
Definition: AtRule.php:50
+
getLeadingComments()
Definition: Comment.php:97
+
Definition: CssParenthesisExpression.php:11
+
parse_path()
Definition: Parser.php:694
+
getRoot()
Definition: Element.php:159
+
renderNestingMediaRule(object $ast, ?int $level)
Definition: Renderer.php:563
+
Definition: QueryInterface.php:7
+
RuleListInterface $parent
Definition: Element.php:34
+ +
static reduce(array $tokens, array $options=[])
Definition: Value.php:618
+
static toUrl(array $data)
Definition: Helper.php:281
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: InvalidAtRule.php:12
+
support(ElementInterface $child)
Definition: NestingMediaRule.php:40
+
Definition: BackgroundRepeat.php:12
+
render(array $options=[])
Definition: CssAttribute.php:18
+
getPosition()
Definition: Element.php:280
+
setLeadingComments(?array $comments)
Definition: Property.php:185
+
traverse(callable $fn, $event)
Definition: Element.php:131
+
getIterator()
Definition: PropertyList.php:351
+
Definition: Traverser.php:13
+ +
render(array $options=[])
Definition: CssParenthesisExpression.php:18
+
getType()
Definition: Property.php:127
+
static matchKeyword(string $string, array $keywords=null)
Definition: Value.php:1383
+
static getClassName(string $type)
Definition: Value.php:228
+
render(array $options=[])
Definition: TokenSelectorValueAttribute.php:73
+ +
static validate($data)
Definition: Unit.php:15
+
getStart()
Definition: SourceLocation.php:44
+
render(array $options=[])
Definition: Comment.php:24
+
Definition: BackgroundClip.php:11
+
isEmpty()
Definition: PropertyList.php:343
+
Definition: BackgroundOrigin.php:11
+
Definition: TokenSelector.php:5
+
__construct($value)
Definition: TokenSelectorValueAttributeFunctionGeneric.php:22
+
render(array $options=[])
Definition: FontSize.php:52
+
parseFlag(string &$name, array &$dynamicArgs)
Definition: Args.php:380
+
search(array $selectors, array $search)
Definition: Evaluator.php:99
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeExpression.php:48
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: AtRule.php:12
+
render(array $options=[])
Definition: InvalidCssString.php:35
+
getLeadingComments()
Definition: Element.php:343
+
Definition: TokenSelectorValueAttributeSelector.php:9
+
removeSelector($selector)
Definition: Rule.php:107
+
pushContext(object $context)
Definition: Parser.php:972
+
Definition: Color.php:20
+
Definition: TokenSelectorValueAttributeFunctionEmpty.php:5
+
Definition: Comment.php:11
+
render(array $options=[])
Definition: Separator.php:25
+
render(array $options=[])
Definition: BackgroundPosition.php:201
+
render(array $options)
Definition: TokenSelectorValueAttributeFunction.php:67
+
Definition: TokenSelectorValueInterface.php:5
+
Definition: ValidatorInterface.php:7
+
static renderTokens(array $tokens, array $options=[], $join=null)
Definition: Value.php:71
+
deduplicateDeclarations(object $ast)
Definition: Parser.php:843
+
Definition: Declaration.php:7
+
static validate($data)
Definition: Comment.php:16
+
doValidate(object $token, object $context, object $parentStylesheet)
Definition: Parser.php:1099
+
static keywords()
Definition: Value.php:1371
+
__toString()
Definition: PropertySet.php:532
+
Definition: TokenSelectorValueAttributeIndex.php:5
+
queryByClassNames($query)
Definition: Element.php:151
+ +
setTrailingComments(?array $comments)
Definition: Property.php:168
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeFunction.php:59
+
evaluate(array $context)
Definition: TokenSelectorValueWhitespace.php:18
+
Definition: SyntaxError.php:7
+
static validate($data)
Definition: Operator.php:25
+
Definition: Property.php:16
+
const REMOVE
Definition: ValidatorInterface.php:18
+
render(array $options=[])
Definition: TokenSelect.php:115
+
setEnd($end)
Definition: SourceLocation.php:73
+
append(ElementInterface ... $elements)
+
static validate($data)
Definition: Separator.php:17
+
hasDeclarations()
Definition: AtRule.php:42
+
static doRecover(object $data)
Definition: InvalidCssFunction.php:38
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeTest.php:18
+
static doParse($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
Definition: FontFamily.php:23
+
static match(object $data, $type)
Definition: FontStyle.php:28
+
Definition: SourceLocation.php:15
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: Comment.php:12
+
Definition: Whitespace.php:11
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: Rule.php:13
+
merge(Parser $parser)
Definition: Parser.php:452
+
__construct($value)
Definition: TokenSelectorValueAttributeFunctionColor.php:18
+
static reduce(array $tokens, array $options=[])
Definition: BackgroundSize.php:56
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeFunctionColor.php:72
+
Definition: TokenSelectorInterface.php:10
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: InvalidRule.php:12
+
static doRecover(object $data)
Definition: InvalidComment.php:25
+
render($join="\n")
Definition: PropertySet.php:514
+
static validate($data)
Definition: Color.php:19
+
Definition: Separator.php:11
+
__toString()
Definition: Value.php:1464
+
render(array $options=[])
Definition: InvalidComment.php:19
+
render(array $options=[])
Definition: CssFunction.php:24
+
Definition: CssAttribute.php:11
+
getValue()
Definition: Comment.php:50
+ +
Definition: TokenSelectorValueAttributeFunctionContains.php:5
+
support(ElementInterface $child)
+
static relativePath(string $file, string $ref)
Definition: Helper.php:173
+
static fromUrl($url, array $options=[])
+
static validate($data)
Definition: CssFunction.php:16
+ +
render(array $options=[])
Definition: Operator.php:34
+
static matchKeyword(string $string, array $keywords=null)
Definition: BackgroundRepeat.php:54
+ +
static validate($data)
Definition: Number.php:45
+
static getInstance($ast)
Definition: Element.php:86
+
static isAbsolute($path)
Definition: Helper.php:271
+
render(array $options=[])
Definition: CssString.php:44
+
Definition: CssFunction.php:11
+
render(array $options=[])
Definition: TokenSelectorValueAttributeExpression.php:94
+
render($glue=';', $join="\n")
Definition: PropertyList.php:283
+
off(string $event, callable $callable)
Definition: Parser.php:274
+
__get($name)
Definition: Value.php:186
+
Definition: TokenSelectorValueAttributeFunction.php:5
+
Definition: BackgroundSize.php:11
+
renderAtRule(object $ast, ?int $level)
Definition: Renderer.php:393
+
Definition: Element.php:21
+
addAtRule($name, $value=null, $type=0)
Definition: RuleSet.php:25
+
static type()
Definition: Value.php:249
+
Definition: TokenSelect.php:8
+
__toString()
Definition: Property.php:160
+
static getCurrentDirectory()
Definition: Helper.php:52
+
static matchKeyword(string $string, array $keywords=null)
Definition: BackgroundSize.php:37
+
hasDeclarations()
Definition: NestingMediaRule.php:32
+
static load($file)
Definition: Config.php:32
+
render(array $options=[])
Definition: Color.php:42
+
Definition: TokenSelectorValueWhitespace.php:5
+
render(array $options)
Definition: TokenSelectorValueAttributeFunctionGeneric.php:51
+
setContent($css)
Definition: Lexer.php:55
+
append(string $file, string $media='')
Definition: Parser.php:332
+ +
deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])
Definition: Element.php:351
+
Definition: UnknownParameterException.php:5
+
toObject()
Definition: Value.php:1348
+
Definition: TokenList.php:7
+
render(array $options)
Definition: TokenSelectorValueAttributeString.php:46
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: OutlineWidth.php:22
+
evaluate(string $expression, QueryInterface $context)
Definition: Evaluator.php:16
+
deduplicateDeclarations(array $options=[])
Definition: Element.php:537
+
evaluate(array $context)
Definition: TokenWhitespace.php:12
+
__construct(string $css='', array $options=[])
Definition: Parser.php:89
+
renderNestingAtRule(object $ast, ?int $level)
Definition: Renderer.php:534
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: BackgroundPosition.php:74
+
static doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
Definition: BackgroundColor.php:17
+
Definition: CssSrcFormat.php:9
+
query($query)
Definition: Element.php:141
+
Definition: RuleList.php:21
+
deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])
+
static doRender(object $data, array $options=[])
Definition: Unit.php:38
+
__construct(string $css='', object $context=null)
Definition: Lexer.php:38
+
match(string $type)
Definition: Operator.php:17
+
getTrailingComments()
Definition: Property.php:177
+
static doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
Definition: Value.php:730
+
Definition: IOException.php:5
+
static validate($data)
Definition: Whitespace.php:16
+
appendContent(string $css, string $media='')
Definition: Parser.php:417
+ +
copy()
Definition: Element.php:246
+
Definition: Color.php:13
+
renderName(object $ast)
Definition: Renderer.php:752
+
static validate($data)
Definition: Value.php:299
+
Definition: InvalidCssFunction.php:12
+
Definition: BackgroundAttachment.php:9
+
addDeclaration($name, $value)
Definition: Rule.php:134
+
static doRender(object $data, array $options=[])
Definition: Color.php:51
+
renderCollection(object $ast, ?int $level)
Definition: Renderer.php:432
+
__construct($value)
Definition: TokenSelectorValueAttributeString.php:15
+
getTrailingComments()
Definition: Comment.php:81
+
Definition: TokenInterface.php:5
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: FontFamily.php:14
+
Definition: BackgroundImage.php:9
+
toObject()
Definition: PropertyList.php:360
+
renderAtRuleMedia(object $ast, ?int $level)
Definition: Renderer.php:351
+
static doRender(object $data, array $options=[])
Definition: CssUrl.php:26
+
Definition: LineHeight.php:12
+
removeChildren()
Definition: RuleList.php:112
+
Definition: TokenSelectorValueAttributeString.php:7
+
static doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
Definition: ShortHand.php:39
+
static match(object $data, $type)
Definition: Color.php:33
+
Definition: Number.php:11
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeFunctionComment.php:14
+
Definition: Option.php:5
+ +
getStatus($event, object $rule, $context, $parentStylesheet)
Definition: Lexer.php:865
+
static keywords()
Definition: FontWeight.php:144
+
setStart($start)
Definition: SourceLocation.php:61
+
__construct(object $data)
Definition: Value.php:62
+
Definition: Renderer.php:20
+
addDeclaration($name, $value)
Definition: AtRule.php:88
+
static fetchContent(string $url, array $options=[], array $curlOptions=[])
Definition: Helper.php:331
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: BackgroundColor.php:34
+
__construct(string $name)
Definition: TokenSelectorValueAttributeTest.php:13
+
getAst()
Definition: Parser.php:589
+
static format($string, ?array &$comments=null)
Definition: Value.php:369
+
__construct($value)
Definition: Comment.php:24
+
Definition: FontFamily.php:9
+
Definition: BackgroundPosition.php:11
+
static exists($path)
Definition: Config.php:42
+
render(array $options)
Definition: TokenSelectorValueAttributeFunctionEmpty.php:25
+
expandProperties(array $result, ?array $leadingcomments=null, ?array $trailingcomments=null, $vendor=null)
Definition: PropertySet.php:185
+
getContext()
Definition: Parser.php:960
+
__toString()
Definition: Element.php:624
+
computeSignature(object $ast)
Definition: Parser.php:697
+
render(array $options=[])
Definition: TokenSelectorValueWhitespace.php:26
+
insert(ElementInterface $element, $position)
+
static validate($data)
Definition: BackgroundImage.php:20
+
getErrors()
Definition: Parser.php:892
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: BackgroundSize.php:50
+ + + +
render(RenderableInterface $element, ?int $level=null, bool $parent=false)
Definition: Renderer.php:69
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeIndex.php:21
+
__clone()
Definition: Element.php:642
+
Definition: OutlineWidth.php:9
+
render(array $options=[])
Definition: TokenSelectorValueSeparator.php:41
+
setTrailingComments(?array $comments)
Definition: Comment.php:73
+
__construct($data)
Definition: BackgroundPosition.php:63
+
render(array $options=[])
Definition: TokenSelector.php:71
+ +
Definition: Helper.php:11
+
Definition: InvalidDeclaration.php:8
+
Definition: Declaration.php:8
+
getValue()
Definition: Element.php:174
+
validate(object $token, object $parentRule, object $parentStylesheet)
+
parse(string $string)
Definition: Parser.php:33
+
setComments(?array $comments, $type)
Definition: Element.php:305
+
__construct($name)
Definition: Property.php:51
+
stdClass $data
Definition: Value.php:30
+
__construct($data)
Definition: TokenSelectorValueAttribute.php:17
+
save(object $ast, $file)
Definition: Renderer.php:129
+
Definition: Helper.php:5
+
Definition: TokenSelectorValueAttributeFunctionBeginswith.php:5
+
const ELEMENT_AT_RULE_LIST
Definition: AtRule.php:19
+
render(array $options)
Definition: TokenSelectorValueAttributeFunctionComment.php:25
+
renderStylesheet(object $ast, ?int $level)
Definition: Renderer.php:309
+
Definition: Unit.php:10
+
static from($css, array $options=[])
+
static getInstance($data)
Definition: Value.php:310
+
parse_selector(string $selector, string $context='selector')
Definition: Parser.php:282
+
Definition: Pool.php:27
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeFunctionEmpty.php:14
+
addRule($selectors)
Definition: RuleSet.php:62
+
static from($css, array $options=[])
Definition: Element.php:113
+ +
static validate($data)
Definition: CssSrcFormat.php:11
+
support(ElementInterface $child)
Definition: Rule.php:167
+
setOptions(array $options)
Definition: Renderer.php:813
+
Definition: AtRule.php:8
+
Definition: NestingMedialRule.php:8
+
expand($value)
Definition: PropertySet.php:212
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: FontStyle.php:37
+
Definition: Event.php:5
+
static matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
Definition: BackgroundImage.php:40
+
renderNestingRule(object $ast, ?int $level)
Definition: Renderer.php:549
+
evaluate(array $context)
Definition: TokenSelectorValueAttributeString.php:23
+
getName(bool $vendor=false)
Definition: Comment.php:30
+ +
traverse($ast)
Definition: Traverser.php:30
+ +
render(array $options)
Definition: TokenWhitespace.php:20
+
render(array $options=[])
Definition: TokenList.php:68
+
__construct(array $value)
Definition: TokenSelectorValueAttributeExpression.php:17
+
Definition: NestingAtRule.php:9
+
setVendor($vendor)
Definition: Property.php:80
+
render(array $options=[])
+
render(array $options=[])
Definition: Value.php:344
+
renderRule(object $ast, ?int $level)
Definition: Renderer.php:324
+
Definition: TokenSelectorValueString.php:13
+ +
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: NestingRule.php:13
+
static doParseUrl($url)
Definition: Helper.php:26
+ +
evaluate(array $context)
Definition: TokenSelectorValueAttributeSelector.php:52
+
Definition: Lexer.php:11
+
Definition: Font.php:9
+
render(array $options)
Definition: TokenSelectorValueAttributeIndex.php:29
+
static getProperty($name=null, $default=null)
Definition: Config.php:109
+
Definition: Config.php:17
+
Definition: Comment.php:8
+ +
merge(Rule $rule)
Definition: Rule.php:151
+
Definition: NestingRule.php:9
+
getAst()
Definition: Property.php:202
+
getLeadingComments()
Definition: Property.php:194
+
static doRender(object $data, array $options=[])
Definition: BackgroundImage.php:35
+
deduplicateRules(object $ast, ?int $index=null)
Definition: Parser.php:732
+
Definition: FontSize.php:11
+
computeSignature()
Definition: Element.php:382
+
__toString()
Definition: PropertyList.php:308
+
setSelector($selectors)
Definition: Rule.php:70
+
filter(array $context)
Definition: TokenList.php:28
+
static parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
Definition: Value.php:577
+
Definition: PropertySet.php:12
+
static validate($data)
Definition: InvalidCssFunction.php:17
+
process($node, array $data)
Definition: Traverser.php:50
+
Definition: FontVariant.php:11
+
flatten(object $node)
Definition: Renderer.php:969
+
emit(Exception $error)
Definition: Parser.php:320
+
isEmpty()
Definition: PropertyMap.php:419
+
static getRGBValue(object $value)
Definition: Value.php:1424
+
__construct(string $shorthand, array $config)
Definition: PropertyMap.php:45
+
static getPath($path, $default=null)
Definition: Config.php:86
+
Definition: TokenSelectorValueAttributeFunctionEquals.php:5
+
__construct($data)
Definition: CssString.php:18
+
parseVendor($str)
Definition: Lexer.php:845
+
validate(object $token, object $parentRule, object $parentStylesheet)
Definition: Declaration.php:12
+
Definition: InvalidAtRule.php:8
+
exitNode(object $token)
Definition: Parser.php:1062
+
static matchDefaults($token)
Definition: Value.php:272
+
Definition: PropertyMap.php:12
+
support(ElementInterface $child)
Definition: NestingRule.php:13
+
Definition: TokenSelectorValue.php:5
+
render(array $options=[])
Definition: InvalidCssFunction.php:25
+
Definition: Rule.php:9
+
setValue($value)
Definition: Comment.php:40
+
createContext()
Definition: Lexer.php:715
+ +
getTrailingComments()
Definition: Element.php:296
+
addSelector($selector)
Definition: Rule.php:82
+
setValue($value)
Definition: Property.php:61
+
Definition: BackgroundColor.php:9
+
renderComment(object $ast, ?int $level)
Definition: Renderer.php:575
+
renderSelector(object $ast, ?int $level)
Definition: Renderer.php:605
+
render(array $options=[])
Definition: Unit.php:32
+
static keywords()
Definition: FontStretch.php:55
+
Definition: InvalidCssString.php:12
+
render(array $options=[])
Definition: LineHeight.php:59
+
setChildren(array $elements)
Definition: RuleList.php:144
+
getAst()
Definition: Element.php:589
+
render(array $options=[])
Definition: FontStretch.php:36
+
Definition: Comment.php:11
+
static getInstance($location)
Definition: SourceLocation.php:35
+
remove(ElementInterface $element)
+
getChildren()
Definition: RuleList.php:138
+
deduplicate(object $ast, ?int $index=null)
Definition: Parser.php:666
+
popContext()
Definition: Parser.php:983
+
Definition: Args.php:8
+
Definition: TokenSelectInterface.php:5
+
getValue()
Definition: InvalidCssFunction.php:33
+
Definition: RenderablePropertyInterface.php:11
diff --git a/docs/api/html/d6/dfd/classTBela_1_1CSS_1_1Element_1_1Comment.png b/docs/api/html/d6/dfd/classTBela_1_1CSS_1_1Element_1_1Comment.png index bbd1308b..ff58d52e 100644 Binary files a/docs/api/html/d6/dfd/classTBela_1_1CSS_1_1Element_1_1Comment.png and b/docs/api/html/d6/dfd/classTBela_1_1CSS_1_1Element_1_1Comment.png differ diff --git a/docs/api/html/d7/d0d/classTBela_1_1CSS_1_1Element_1_1AtRule.html b/docs/api/html/d7/d0d/classTBela_1_1CSS_1_1Element_1_1AtRule.html index 06d46b16..5e2a4127 100644 --- a/docs/api/html/d7/d0d/classTBela_1_1CSS_1_1Element_1_1AtRule.html +++ b/docs/api/html/d7/d0d/classTBela_1_1CSS_1_1Element_1_1AtRule.html @@ -111,6 +111,7 @@ TBela\CSS\Interfaces\ObjectInterface TBela\CSS\Interfaces\ParsableInterface TBela\CSS\Interfaces\ObjectInterface +TBela\CSS\Element\NestingMediaRule @@ -132,6 +133,9 @@ + + @@ -165,6 +169,8 @@ + + @@ -232,11 +238,14 @@ - - + + + +
 addRule ($selectors)
 
- Public Member Functions inherited from TBela\CSS\Element\RuleList
__get ($name)
 
 addComment ($value)
 
 hasChildren ()
 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
 deduplicateDeclarations (array $options=[])
 
- Protected Attributes inherited from TBela\CSS\Element
$ast = null
 
+object $ast = null
 
RuleListInterface $parent = null
 
+array $rawValue = null
 

Member Function Documentation

@@ -297,6 +306,8 @@

test if this at-rule node contains declaration

Returns
bool
+

Reimplemented in TBela\CSS\Element\NestingMediaRule.

+ @@ -315,6 +326,8 @@

test if this at-rule node is a leaf

Returns
bool
+

Reimplemented in TBela\CSS\Element\NestingMediaRule.

+ @@ -356,6 +369,8 @@

TBela\CSS\Element\RuleList.

+

Reimplemented in TBela\CSS\Element\NestingMediaRule.

+

Member Data Documentation

@@ -394,7 +409,7 @@

$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected $parentTBela\CSS\Elementprotected - __clone()TBela\CSS\Element - __construct($ast=null, $parent=null)TBela\CSS\Element - __toString()TBela\CSS\Element - computeSignature()TBela\CSS\Elementprotected - copy()TBela\CSS\Element - deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element - deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected - from($css, array $options=[])TBela\CSS\Elementstatic - fromUrl($url, array $options=[])TBela\CSS\Elementstatic - getAst()TBela\CSS\Element - getInstance($ast)TBela\CSS\Elementstatic - getLeadingComments()TBela\CSS\Element - getParent()TBela\CSS\Element - getPosition()TBela\CSS\Element + $rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected + __clone()TBela\CSS\Element + __construct($ast=null, $parent=null)TBela\CSS\Element + __toString()TBela\CSS\Element + computeSignature()TBela\CSS\Elementprotected + copy()TBela\CSS\Element + deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element + deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected + from($css, array $options=[])TBela\CSS\Elementstatic + fromUrl($url, array $options=[])TBela\CSS\Elementstatic + getAst()TBela\CSS\Element + getInstance($ast)TBela\CSS\Elementstatic + getLeadingComments()TBela\CSS\Element + getParent()TBela\CSS\Element + getPosition()TBela\CSS\Element + getRawValue()TBela\CSS\Element getRoot()TBela\CSS\Element getSrc()TBela\CSS\Element getTrailingComments()TBela\CSS\Element diff --git a/docs/api/html/d7/d25/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule-members.html b/docs/api/html/d7/d25/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule-members.html new file mode 100644 index 00000000..1f777965 --- /dev/null +++ b/docs/api/html/d7/d25/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Validator\InvalidRule Member List
+
+ +
+ + + + diff --git a/docs/api/html/d7/d2a/classTBela_1_1CSS_1_1Value_1_1Operator-members.html b/docs/api/html/d7/d2a/classTBela_1_1CSS_1_1Value_1_1Operator-members.html index 4e018d05..dafd14a6 100644 --- a/docs/api/html/d7/d2a/classTBela_1_1CSS_1_1Value_1_1Operator-members.html +++ b/docs/api/html/d7/d2a/classTBela_1_1CSS_1_1Value_1_1Operator-members.html @@ -93,29 +93,33 @@ $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic match(string $type)TBela\CSS\Value\Operator - matchDefaults($token)TBela\CSS\Valueprotectedstatic - matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic - matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic - reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic - render(array $options=[])TBela\CSS\Value\Operator + TBela::CSS::Value::match(object $data, string $type)TBela\CSS\Valuestatic + matchDefaults($token)TBela\CSS\Valueprotectedstatic + matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic + matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic + render(array $options=[])TBela\CSS\Value\Operator + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic toObject()TBela\CSS\Value type()TBela\CSS\Valueprotectedstatic validate($data)TBela\CSS\Value\Operatorprotectedstatic diff --git a/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html b/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html index 55bf535e..078b75ea 100644 --- a/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html +++ b/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html @@ -108,15 +108,21 @@ TBela\CSS\Interfaces\ObjectInterface TBela\CSS\Interfaces\ParsableInterface TBela\CSS\Interfaces\ObjectInterface -TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet +TBela\CSS\Element\Rule +TBela\CSS\Element\RuleSet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule + + @@ -152,6 +158,8 @@ + + @@ -211,11 +219,14 @@ - - + + + +

Public Member Functions

__get ($name)
 
 addComment ($value)
 
 hasChildren ()
 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
 deduplicateDeclarations (array $options=[])
 
- Protected Attributes inherited from TBela\CSS\Element
$ast = null
 
+object $ast = null
 
RuleListInterface $parent = null
 
+array $rawValue = null
 

Member Function Documentation

@@ -337,21 +348,7 @@

-
Parameters
- - - - -
int$offset
int | null$length
...ElementInterface|null$replacement
-
-
-
Returns
ElementInterface[]
-
Exceptions
- - -
-
-
+

@inheritDoc

Implements TBela\CSS\Interfaces\RuleListInterface.

@@ -481,14 +478,14 @@

TBela\CSS\Interfaces\RuleListInterface.

-

Reimplemented in TBela\CSS\Element\Rule, and TBela\CSS\Element\AtRule.

+

Reimplemented in TBela\CSS\Element\Rule, TBela\CSS\Element\AtRule, TBela\CSS\Element\NestingMediaRule, and TBela\CSS\Element\NestingRule.

Referenced by TBela\CSS\Element\RuleList\append(), and TBela\CSS\Element\RuleList\insert().


The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Element/RuleList.php
  • +
  • src/Element/RuleList.php
diff --git a/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.js b/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.js index f43216b0..5c0060dd 100644 --- a/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.js +++ b/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.js @@ -1,5 +1,6 @@ var classTBela_1_1CSS_1_1Element_1_1RuleList = [ + [ "__get", "d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html#a747430223f69d98cb20721ab9ae20dc2", null ], [ "addComment", "d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html#abda37d91d1cdd1f1d384148cce772bd7", null ], [ "append", "d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html#a76a3af82acf7646c5c8f0f8c363f2a9b", null ], [ "appendCss", "d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html#afb947d72aaae84c85ccdd3d4f758c256", null ], diff --git a/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.png b/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.png index c626bda2..2c0c03fe 100644 Binary files a/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.png and b/docs/api/html/d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.png differ diff --git a/docs/api/html/d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html b/docs/api/html/d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html index 18fe43ae..09a1f58e 100644 --- a/docs/api/html/d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html +++ b/docs/api/html/d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html @@ -95,8 +95,14 @@ Public Member Functions

 __construct (string $shorthand, array $config)   - set (string $name, $value, ?array $leadingcomments=null, ?array $trailingcomments=null) -  +has ($property) +  +remove ($property) +  + set (string $name, $value, ?array $leadingcomments=null, ?array $trailingcomments=null, $vendor=null) +   getProperties ()    render ($join="\n") @@ -106,15 +112,12 @@ - - + + - - - - + +

Protected Member Functions

expandProperties (array $result, ?array $leadingcomments=null, ?array $trailingcomments=null)
 
 expandProperties (array $result, ?array $leadingcomments=null, ?array $trailingcomments=null, $vendor=null)
 
 expand ($value)
 
 reduce ()
 
 setProperty ($name, $value)
 
 setProperty ($name, $value, $vendor=null)
 
@@ -183,6 +186,12 @@

convert this object to string

Returns
string
+
Exceptions
+

Protected Attributes

+ +
+ + @@ -211,59 +220,99 @@

expand shorthand property

Parameters
- +
Set$value
array | string$value
Returns
array|bool @ignore
-

Referenced by TBela\CSS\Property\PropertySet\set().

+

Referenced by TBela\CSS\Property\PropertySet\set().

- -

◆ getProperties()

+ +

◆ expandProperties()

+ + + + + +
- + - + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Property\PropertySet::getProperties TBela\CSS\Property\PropertySet::expandProperties ()array $result,
?array $leadingcomments = null,
?array $trailingcomments = null,
 $vendor = null 
)
+
+protected
-

return Property array

Returns
Property[]
+
Parameters
+ + + + + +
array$result
array | null$leadingcomments
array | null$trailingcomments
string | null$vendor
+
+
+
Returns
$this
+ +

Referenced by TBela\CSS\Property\PropertySet\set().

- -

◆ reduce()

+ +

◆ getProperties()

- - - - - -
- +
TBela\CSS\Property\PropertySet::reduce TBela\CSS\Property\PropertySet::getProperties ( )
-
-protected
-

convert 'border-radius: 10% 17% 10% 17% / 50% 20% 50% 20% -> 'border-radius: 10% 17% / 50% 20%

Returns
string @ignore
+

return Property array

Returns
Property[]
+
Exceptions
+ + +
+
+
-

Referenced by TBela\CSS\Property\PropertySet\getProperties(), and TBela\CSS\Property\PropertySet\render().

+

Referenced by TBela\CSS\Property\PropertySet\render().

@@ -289,13 +338,19 @@

Returns
string
+
Exceptions
+ + +
+
+

Referenced by TBela\CSS\Property\PropertySet\__toString().

- -

◆ set()

+ +

◆ set()

diff --git a/docs/api/html/d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.js b/docs/api/html/d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.js index f31b27cd..eba2276e 100644 --- a/docs/api/html/d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.js +++ b/docs/api/html/d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.js @@ -3,12 +3,13 @@ var classTBela_1_1CSS_1_1Property_1_1PropertySet = [ "__construct", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#afd7b34d535d9da3b2ef62ee2eeb45c4a", null ], [ "__toString", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a68b0278d50d518f765e419d21aeb23a4", null ], [ "expand", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#af35098e0ca1502a43b532bf434776c66", null ], - [ "expandProperties", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#afc3141c22ac0c630a75ebee6ea259e01", null ], + [ "expandProperties", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#afd21322e1818f9b92109a4895a726577", null ], [ "getProperties", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a881df7cdba626c77a542b2c6fc5056e7", null ], - [ "reduce", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a223117af3db3d9fa3a612eea9a25de90", null ], + [ "has", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#ae41efeb0f007959e5929a389d6f38d3a", null ], + [ "remove", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#aedb75dfdf7965d0cb832be39d87ad0d0", null ], [ "render", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a8317a13a28227d69b79be689894a7fb2", null ], - [ "set", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a091f15978043fac141aac93f01fd61c3", null ], - [ "setProperty", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a6d1273d05cbd59386e97354ef8955053", null ], + [ "set", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#abcf978ed18db024ca3284f8c0483cda5", null ], + [ "setProperty", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#aaa7eead93826c51d83d60663c5641fa3", null ], [ "$config", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a4039f6e1aa5d05fe5236f2b47be11891", null ], [ "$properties", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a344fd77b379ec3c4ddb61160df555814", null ], [ "$property_type", "d7/d6d/classTBela_1_1CSS_1_1Property_1_1PropertySet.html#a1b9c94654c627dcc1f25ce76547c956a", null ], diff --git a/docs/api/html/d7/d73/classTBela_1_1CSS_1_1Element_1_1Declaration-members.html b/docs/api/html/d7/d73/classTBela_1_1CSS_1_1Element_1_1Declaration-members.html index 387ce8a3..d66dd1c1 100644 --- a/docs/api/html/d7/d73/classTBela_1_1CSS_1_1Element_1_1Declaration-members.html +++ b/docs/api/html/d7/d73/classTBela_1_1CSS_1_1Element_1_1Declaration-members.html @@ -90,20 +90,22 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/docs/api/html/d7/d86/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectInterface.html b/docs/api/html/d7/d86/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectInterface.html index 9cb16e18..859cc93d 100644 --- a/docs/api/html/d7/d86/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectInterface.html +++ b/docs/api/html/d7/d86/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectInterface.html @@ -109,7 +109,7 @@
$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
$parentTBela\CSS\Elementprotected
__clone()TBela\CSS\Element
__construct($ast=null, $parent=null)TBela\CSS\Element
__toString()TBela\CSS\Element
computeSignature()TBela\CSS\Elementprotected
copy()TBela\CSS\Element
deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element
deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected
from($css, array $options=[])TBela\CSS\Elementstatic
fromUrl($url, array $options=[])TBela\CSS\Elementstatic
getAst()TBela\CSS\Element
getInstance($ast)TBela\CSS\Elementstatic
getLeadingComments()TBela\CSS\Element
getParent()TBela\CSS\Element
getPosition()TBela\CSS\Element
$rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
__clone()TBela\CSS\Element
__construct($ast=null, $parent=null)TBela\CSS\Element
__toString()TBela\CSS\Element
computeSignature()TBela\CSS\Elementprotected
copy()TBela\CSS\Element
deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element
deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected
from($css, array $options=[])TBela\CSS\Elementstatic
fromUrl($url, array $options=[])TBela\CSS\Elementstatic
getAst()TBela\CSS\Element
getInstance($ast)TBela\CSS\Elementstatic
getLeadingComments()TBela\CSS\Element
getParent()TBela\CSS\Element
getPosition()TBela\CSS\Element
getRawValue()TBela\CSS\Element
getRoot()TBela\CSS\Element
getSrc()TBela\CSS\Element
getTrailingComments()TBela\CSS\Element
 

The documentation for this interface was generated from the following file:
    -
  • src/TBela/CSS/Query/TokenSelectInterface.php
  • +
  • src/Query/TokenSelectInterface.php
diff --git a/docs/api/html/d7/d86/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectInterface.png b/docs/api/html/d7/d86/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectInterface.png index 87ac585a..fde50c97 100644 Binary files a/docs/api/html/d7/d86/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectInterface.png and b/docs/api/html/d7/d86/interfaceTBela_1_1CSS_1_1Query_1_1TokenSelectInterface.png differ diff --git a/docs/api/html/d7/db6/classTBela_1_1CSS_1_1Renderer-members.html b/docs/api/html/d7/db6/classTBela_1_1CSS_1_1Renderer-members.html index 59e19fb7..783fc86b 100644 --- a/docs/api/html/d7/db6/classTBela_1_1CSS_1_1Renderer-members.html +++ b/docs/api/html/d7/db6/classTBela_1_1CSS_1_1Renderer-members.html @@ -91,26 +91,32 @@ $indents (defined in TBela\CSS\Renderer)TBela\CSS\Rendererprotected $options (defined in TBela\CSS\Renderer)TBela\CSS\Rendererprotected $outFile (defined in TBela\CSS\Renderer)TBela\CSS\Rendererprotected - __construct(array $options=[])TBela\CSS\Renderer - addPosition($data, $ast)TBela\CSS\Rendererprotected - getOptions($name=null, $default=null)TBela\CSS\Renderer - render(RenderableInterface $element, ?int $level=null, $parent=false)TBela\CSS\Renderer - renderAst($ast, ?int $level=null)TBela\CSS\Renderer - renderAtRule($ast, $level)TBela\CSS\Rendererprotected - renderAtRuleMedia($ast, $level)TBela\CSS\Rendererprotected - renderCollection($ast, ?int $level)TBela\CSS\Rendererprotected - renderComment($ast, ?int $level)TBela\CSS\Rendererprotected - renderDeclaration($ast, ?int $level)TBela\CSS\Rendererprotected - renderName($ast)TBela\CSS\Rendererprotected - renderProperty($ast, ?int $level)TBela\CSS\Rendererprotected - renderRule($ast, $level)TBela\CSS\Rendererprotected - renderSelector($ast, $level)TBela\CSS\Rendererprotected - renderStylesheet($ast, $level)TBela\CSS\Rendererprotected - renderValue($ast)TBela\CSS\Rendererprotected - save($ast, $file)TBela\CSS\Renderer + $sourcemap (defined in TBela\CSS\Renderer)TBela\CSS\Rendererprotected + __construct(array $options=[])TBela\CSS\Renderer + addPosition($generated, object $ast)TBela\CSS\Rendererprotected + flatten(object $node)TBela\CSS\Renderer + flattenChildren(object $node)TBela\CSS\Rendererprotected + getOptions($name=null, $default=null)TBela\CSS\Renderer + render(RenderableInterface $element, ?int $level=null, bool $parent=false)TBela\CSS\Renderer + renderAst(object $ast, ?int $level=null)TBela\CSS\Renderer + renderAtRule(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderAtRuleMedia(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderCollection(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderComment(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderDeclaration($ast, ?int $level)TBela\CSS\Rendererprotected + renderName(object $ast)TBela\CSS\Rendererprotected + renderNestingAtRule(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderNestingMediaRule(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderNestingRule(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderProperty(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderRule(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderSelector(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderStylesheet(object $ast, ?int $level)TBela\CSS\Rendererprotected + renderValue(object $ast)TBela\CSS\Rendererprotected + save(object $ast, $file)TBela\CSS\Renderer setOptions(array $options)TBela\CSS\Renderer - update($position, string $string)TBela\CSS\Rendererprotected - walk($ast, $data, ?int $level=null)TBela\CSS\Rendererprotected + update(object $position, string $string)TBela\CSS\Rendererprotected + walk(array $tree, object $position, ?int $level=0)TBela\CSS\Rendererprotected diff --git a/docs/api/html/d7/dcc/classTBela_1_1CSS_1_1Value_1_1BackgroundAttachment-members.html b/docs/api/html/d7/dcc/classTBela_1_1CSS_1_1Value_1_1BackgroundAttachment-members.html index 997b252d..70387a4e 100644 --- a/docs/api/html/d7/dcc/classTBela_1_1CSS_1_1Value_1_1BackgroundAttachment-members.html +++ b/docs/api/html/d7/dcc/classTBela_1_1CSS_1_1Value_1_1BackgroundAttachment-members.html @@ -94,33 +94,36 @@ $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\BackgroundAttachment)TBela\CSS\Value\BackgroundAttachmentprotectedstatic $patterns (defined in TBela\CSS\Value\BackgroundAttachment)TBela\CSS\Value\BackgroundAttachmentprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\ShortHandprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\ShortHandprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\ShortHand - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchPattern(array $tokens)TBela\CSS\Value\ShortHandstatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/d8/d0d/classTBela_1_1CSS_1_1Value_1_1BackgroundAttachment.html b/docs/api/html/d8/d0d/classTBela_1_1CSS_1_1Value_1_1BackgroundAttachment.html index a8d12029..9277e821 100644 --- a/docs/api/html/d8/d0d/classTBela_1_1CSS_1_1Value_1_1BackgroundAttachment.html +++ b/docs/api/html/d8/d0d/classTBela_1_1CSS_1_1Value_1_1BackgroundAttachment.html @@ -127,18 +127,11 @@ - - - - - - - @@ -152,32 +145,44 @@ + + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + - - + + @@ -185,10 +190,10 @@ - - - - + + + + @@ -219,10 +224,7 @@

= [
'fixed',
'local',
-
'scroll',
-
-
-
+
'scroll'
]
@@ -254,7 +256,7 @@

TBela\CSS\Element\Comment TBela\CSS\Element\Declaration -TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet +TBela\CSS\Element\RuleSet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value\ShortHand
 getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
static matchPattern (array $tokens)
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value\ShortHand
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
@@ -128,6 +131,8 @@ + + @@ -187,11 +192,14 @@
 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
- - + + + +

Protected Attributes

$ast = null
 
+object $ast = null
 
RuleListInterface $parent = null
 
+array $rawValue = null
 

Constructor & Destructor Documentation

@@ -505,7 +513,7 @@

TBela\CSS\Interfaces\ElementInterface.

-

Referenced by TBela\CSS\Element\copy(), TBela\CSS\Parser\parse(), TBela\CSS\Element\RuleList\setChildren(), and TBela\CSS\Compiler\setData().

+

Referenced by TBela\CSS\Element\copy(), TBela\CSS\Parser\parse(), and TBela\CSS\Element\RuleList\setChildren().

@@ -567,6 +575,26 @@

TBela\CSS\Interfaces\ElementInterface.

+ + + +

◆ getRawValue()

+ +
+
+ + + + + + + +
TBela\CSS\Element::getRawValue ()
+
+

@inheritDoc

+ +

Implements TBela\CSS\Interfaces\ElementInterface.

+
@@ -925,7 +953,7 @@

 render (array $options=[])   - match ($type) -  - getHash () -  - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - match (string $type) -   toObject ()    __toString () @@ -131,32 +123,49 @@ + + + + + + + + - - + + + + + + + + + + - - - - - - + + + + + +

Static Public Member Functions

+static doRender (object $data, array $options=[])
 
static match (object $data, $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static keywords ()
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- - + + @@ -164,12 +173,12 @@ - - - - - - + + + + + +

Static Protected Member Functions

static doParse ($string, $capture_whitespace=true, $context='', $contextName='')
 
static doParse ($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
@@ -192,8 +201,8 @@ - - + + @@ -202,8 +211,8 @@

Static Protected Attributes

Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ doParse()

+ +

◆ doParse()

@@ -233,7 +242,13 @@

  - $contextName = ''  + $contextName = '', + + + + +   + $preserve_quotes = false  @@ -254,26 +269,6 @@

-

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\FontWeight::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

-
@@ -304,28 +299,40 @@

-

◆ match()

+ +

◆ match()

+ + + + + +
- + + + + + + + - + + + + +
TBela\CSS\Value\FontWeight::match static TBela\CSS\Value\FontWeight::match (object $data,
 $type)$type 
)
+
+static
-

test if this object matches the specified type

Parameters
- - -
string$type
-
-
-
Returns
bool
+

@inheritDoc

@@ -417,8 +424,6 @@

TBela\CSS\Value.

-

Referenced by TBela\CSS\Value\FontWeight\getHash().

-

Member Data Documentation

@@ -466,7 +471,7 @@

- - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

 getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
+ + + + - - + + + + + + + + + + - - - - - - + + + + + +

Static Public Member Functions

static matchPattern (array $tokens)
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- - + + @@ -169,10 +157,10 @@ - - - - + + + +

Static Protected Member Functions

static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
@@ -191,9 +179,23 @@

Static Protected Attributes

+ + + + + + + + + + + + + - - + + @@ -202,8 +204,8 @@

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 render (array $options=[])
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ doParse()

+ +

◆ doParse()

- -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\ShortHand::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

+

Reimplemented from TBela\CSS\Value.

@@ -345,7 +333,7 @@

 
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Query/TokenSelectorValueAttributeFunctionEndswith.php
  • +
  • src/Query/TokenSelectorValueAttributeFunctionEndswith.php
diff --git a/docs/api/html/d8/d61/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEndswith.png b/docs/api/html/d8/d61/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEndswith.png index dccb6645..a65128eb 100644 Binary files a/docs/api/html/d8/d61/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEndswith.png and b/docs/api/html/d8/d61/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEndswith.png differ diff --git a/docs/api/html/d8/d66/classTBela_1_1CSS_1_1Value_1_1Comment.html b/docs/api/html/d8/d66/classTBela_1_1CSS_1_1Value_1_1Comment.html index 4531dd21..126a5275 100644 --- a/docs/api/html/d8/d66/classTBela_1_1CSS_1_1Value_1_1Comment.html +++ b/docs/api/html/d8/d66/classTBela_1_1CSS_1_1Value_1_1Comment.html @@ -104,19 +104,13 @@ - - - - - - @@ -134,39 +128,51 @@ - - - - - - + + + + + +

Public Member Functions

 getHash ()
 
 render (array $options=[])
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 toObject ()
 
 __toString ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + @@ -185,26 +191,6 @@

Additional Inherited Members

- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

-
-

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\Comment::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

- -
-

◆ render()

@@ -256,7 +242,7 @@

Public Member Functions | Protected Member Functions | Protected Attributes | +Static Protected Attributes | List of all members
TBela\CSS\Parser Class Reference
@@ -104,31 +105,33 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - + +

Public Member Functions

 __construct ($css='', array $options=[])
 
 load ($file, $media='')
 
 append ($file, $media='')
 
 merge ($parser)
 
 appendContent ($css, $media='')
 
 setContent ($css, $media='')
 
 getContent ()
 
 __construct (string $css='', array $options=[])
 
slice ($css, $position, $size)
 
 on (string $event, callable $callable)
 
 off (string $event, callable $callable)
 
 append (string $file, string $media='')
 
 appendContent (string $css, string $media='')
 
 merge (Parser $parser)
 
 setContent (string $css, string $media='')
 
 load (string $file, string $media='')
 
 setOptions (array $options)
 
 parse ()
 
 getAst ()
 
 setAst (ElementInterface $element)
 
deduplicate ($ast)
 
 deduplicate (object $ast, ?int $index=null)
 
 getErrors ()
 
@@ -137,74 +140,80 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Protected Member Functions

 computeSignature ($ast)
 
 deduplicateRules ($ast)
 
 deduplicateDeclarations ($ast)
 
 getFileContent (string $file, string $media='')
 
 getRoot ()
 
 doParse ()
 
 analyse ()
 
 update ($position, string $string)
 
 next ()
 
 getNextPosition ($input, $currentIndex, $currentLine, $currentColumn)
 
 getBlockType ($block)
 
 parseComment ($comment, $position)
 
 parseAtRule ($rule, $position, $blockType='')
 
doParseComments ($node)
 
 parseRule ($rule, $position)
 
 parseDeclarations ($rule, $block, $position)
 
 parseVendor ($str)
 
enQueue ($src, $buffer, $position)
 
 stream (string $content, object $root, string $file)
 
 emit (Exception $error)
 
reset ()
 
 computeSignature (object $ast)
 
 deduplicateRules (object $ast, ?int $index=null)
 
 deduplicateDeclarations (object $ast)
 
 handleError (string $message, int $error_code=400)
 
 validate (object $token, object $parentRule, object $parentStylesheet)
 
 getContext ()
 
 pushContext (object $context)
 
 popContext ()
 
 enterNode (object $token, object $parentRule, object $parentStylesheet)
 
 exitNode (object $token)
 
 doValidate (object $token, object $context, object $parentStylesheet)
 
- - - - - - + + + + - - - - - - - - + + + + + + + + + + + + +

Protected Attributes

-stdClass $currentPosition
 
-stdClass $previousPosition
 
-int $end = 0
 
+array $context = []
 
+Lexer $lexer
 
array $errors = []
 
-stdClass $ast = null
 
-RuleListInterface $element = null
 
-string $css = ''
 
-string $src = ''
 
+string $error
 
+object $ast = null
 
array $options
 
+Pool $pool
 
+array $output = []
 
+int $lastDedupIndex = null
 
+string $format = 'serialize'
 
+ + +

+Static Protected Attributes

+static array $validators = []
 

Constructor & Destructor Documentation

- -

◆ __construct()

+ +

◆ __construct()

@@ -212,7 +221,7 @@

TBela\CSS\Parser::__construct ( -   + string  $css = '', @@ -235,46 +244,19 @@

Member Function Documentation

- -

◆ analyse()

- -
-
- - - - - -
- - - - - - - -
TBela\CSS\Parser::analyse ()
-
-protected
-
-
Returns
stdClass|null
Exceptions
+
IOException
SyntaxError
-

Referenced by TBela\CSS\Parser\appendContent(), and TBela\CSS\Parser\doParse().

-
- -

◆ append()

+

Member Function Documentation

+ +

◆ append()

- -

◆ appendContent()

+ +

◆ appendContent()

- -

◆ computeSignature()

+ +

◆ computeSignature()

- -

◆ deduplicateDeclarations()

+ +

◆ deduplicate()

- - - - - -
- + - - + + + + + + + + + + + +
TBela\CSS\Parser::deduplicateDeclarations TBela\CSS\Parser::deduplicate ( $ast)object $ast,
?int $index = null 
)
-
-protected
Parameters
- + +
stdClass$ast
object$ast
int | null$index
-
Returns
stdClass
+
Returns
object
+ +

Referenced by TBela\CSS\Parser\deduplicateRules(), and TBela\CSS\Parser\getAst().

- -

◆ deduplicateRules()

+ +

◆ deduplicateDeclarations()

- -

◆ doParse()

+ +

◆ deduplicateRules()

- -

◆ getAst()

- -
-
- - - - - - - -
TBela\CSS\Parser::getAst ()
-
-

@inheritDoc

Exceptions
- - +
Parameters
+
SyntaxError
+ +
object$ast
int | null$index
+
Returns
object
-

Implements TBela\CSS\Interfaces\ParsableInterface.

+

Referenced by TBela\CSS\Parser\deduplicate().

- -

◆ getBlockType()

+ +

◆ doValidate()

- -

◆ getContent()

- -
-
- - - - - - - -
TBela\CSS\Parser::getContent ()
-
-
Returns
string
- -
-
- -

◆ getErrors()

- -
-
- - - - - - - -
TBela\CSS\Parser::getErrors ()
-
-

return parse errors

Returns
Exception[]
- -
-
- -

◆ getFileContent()

+ +

◆ emit()

- -

◆ getNextPosition()

+ +

◆ enterNode()

- -

◆ getRoot()

+ +

◆ exitNode()

- -

◆ load()

- -
-
- - - - - - - - - - - - - - - - - - -
TBela\CSS\Parser::load ( $file,
 $media = '' 
)
-
-

load css content from a file

Parameters
+

parse event handler

Parameters
- - +
string$file
string$media
object$token
-
Returns
Parser
+
Returns
void
Exceptions
- +
Exception
SyntaxError@ignore
-

Referenced by TBela\CSS\Parser\append().

-
- -

◆ merge()

+ +

◆ getAst()

- + - - +
TBela\CSS\Parser::merge TBela\CSS\Parser::getAst ( $parser))
-
Parameters
- - -
Parser$parser
-
-
-
Returns
Parser
-
Exceptions
+

@inheritDoc

Exceptions
- +
SyntaxError
SyntaxError|Exception
-

Referenced by TBela\CSS\Parser\append().

+

Implements TBela\CSS\Interfaces\ParsableInterface.

+ +

Referenced by TBela\CSS\Parser\getContext(), TBela\CSS\Parser\merge(), and TBela\CSS\Parser\parse().

- -

◆ next()

+ +

◆ getContext()

- -

◆ parse()

+ +

◆ getErrors()

- +
TBela\CSS\Parser::parse TBela\CSS\Parser::getErrors ( )
-

parse Css

Returns
RuleListInterface|null
-
Exceptions
- - -
SyntaxError
-
-
+

return parse errors

Returns
Exception[]
- -

◆ parseAtRule()

+ +

◆ handleError()

- -

◆ parseComment()

+ +

◆ load()

- - - + + @@ -172,14 +174,17 @@ - - + + + +
- + - - + + - - + + @@ -939,51 +840,72 @@

-protected -

-
TBela\CSS\Parser::parseComment TBela\CSS\Parser::load ( $comment, string $file,
 $position string $media = '' 
- -

◆ parseDeclarations()

+ +

◆ merge()

- - - - - - - - - - + + + + + + + + + - - - - - - + + + + + + - + - + - - - + + + +
- + - - + + + +
TBela\CSS\Parser::parseDeclarations TBela\CSS\Parser::merge ( $rule, Parser $parser)
+
+
Parameters
+ + +
Parser$parser
+
+
+
Returns
Parser
+
Exceptions
+ + +
SyntaxError
+
+
+ +
+ + +

◆ off()

+ + - -

◆ parseRule()

+ +

◆ on()

- - - - + - + @@ -1148,8 +1083,15 @@

Returns
Parser
+
Exceptions
+

- + - - + + - - + + @@ -1038,27 +949,46 @@

-protected -

-
TBela\CSS\Parser::parseRule TBela\CSS\Parser::on ( $rule, string $event,
 $position callable $callable 
- -

◆ parseVendor()

+ +

◆ parse()

+ +
+
+ + + + + + + +
TBela\CSS\Parser::parse ()
+
+

parse Css

Returns
RuleListInterface|null
+
Exceptions
+ + +
SyntaxError
+
+
+ +
+
+ +

◆ popContext()

- -

◆ setAst()

+ +

◆ pushContext()

+ + + + + +
- + - - + +
TBela\CSS\Parser::setAst TBela\CSS\Parser::pushContext (ElementInterface $element)object $context)
+
+protected
-
Parameters
+

push the current parent node

Parameters
- +
ElementInterface$element
object$context
-
Returns
Parser
+
Returns
void @ignore
+ +

Referenced by TBela\CSS\Parser\append(), TBela\CSS\Parser\enterNode(), and TBela\CSS\Parser\getAst().

- -

◆ setContent()

+ +

◆ setContent()

@@ -1124,13 +1059,13 @@

TBela\CSS\Parser::setContent

( string  $css,
 string  $media = '' 
+ + +
IOException
SyntaxError
+ + -

Referenced by TBela\CSS\Parser\__construct().

+

Referenced by TBela\CSS\Parser\__construct(), and TBela\CSS\Parser\appendContent().

@@ -1176,12 +1118,12 @@

Returns
Parser
-

Referenced by TBela\CSS\Parser\__construct().

+

Referenced by TBela\CSS\Parser\__construct().

- -

◆ update()

+ +

◆ stream()

+ +

◆ validate()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser::validate (object $token,
object $parentRule,
object $parentStylesheet 
)
+
+protected
+
+

syntax validation

Parameters
- - + + +
stdClass$position
string$string
object$token
object$parentRule
object$parentStylesheet
-
Returns
stdClass @ignore
+
Returns
int @ignore
-

Referenced by TBela\CSS\Parser\analyse(), TBela\CSS\Parser\parseAtRule(), and TBela\CSS\Parser\parseComment().

+

Referenced by TBela\CSS\Parser\doValidate().

@@ -1247,16 +1252,24 @@

Initial value:
= [
+
'capture_errors' => true,
'flatten_import' => false,
'allow_duplicate_rules' => ['font-face'],
-
'allow_duplicate_declarations' => false
+
'allow_duplicate_declarations' => true,
+
'multi_processing' => true,
+
+
'multi_processing_threshold' => 66560,
+
'children_process' => 20,
+
'ast_src' => '',
+
'ast_position_line' => 1,
+
'ast_position_column' => 1,
+
'ast_position_index' => 0
]
-
The documentation for this class was generated from the following files:
    -
  • src/TBela/CSS/Parser.php
  • -
  • src/TBela/CSS/Parser/SourceLocation.php
  • +
    The documentation for this class was generated from the following file:
      +
    • src/Parser.php
    diff --git a/docs/api/html/d8/d8b/classTBela_1_1CSS_1_1Parser.js b/docs/api/html/d8/d8b/classTBela_1_1CSS_1_1Parser.js index dc6cbf43..e8ceb9d8 100644 --- a/docs/api/html/d8/d8b/classTBela_1_1CSS_1_1Parser.js +++ b/docs/api/html/d8/d8b/classTBela_1_1CSS_1_1Parser.js @@ -1,43 +1,43 @@ var classTBela_1_1CSS_1_1Parser = [ - [ "__construct", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#acaf97e88e1c69375279ea0c90839b277", null ], + [ "__construct", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ad419239107f66a22b185ae2c467e3511", null ], [ "__toString", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a39192f15f9c438b763f4154d8f94be78", null ], - [ "analyse", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a91a54d88bb56a4a971eee063cc33d2e3", null ], - [ "append", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ab1d6bf7aef366b080453c10fcff306ad", null ], - [ "appendContent", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ab1bcc9b477e9bf3017c8d3f6fc7e9935", null ], - [ "computeSignature", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a9de6f792a0c603ca726d91d21f046b50", null ], - [ "deduplicate", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ae613c74d62e7fdfaf971af756c2719f4", null ], - [ "deduplicateDeclarations", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a0e8078a59a7adbfc137376b5b1582a01", null ], - [ "deduplicateRules", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a5302b551a3108818291edcdb1462ef9c", null ], - [ "doParse", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a5a261eaed23d8fddeff22347f8a10f8e", null ], - [ "doParseComments", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a28ba46df7d5ed410278abadc7e6a2a4a", null ], + [ "append", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a14871f2037b09ce772c86d94d443b142", null ], + [ "appendContent", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#acbfb4d3a11979c2e552345bf292e58aa", null ], + [ "computeSignature", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a5118a91d238ca473d495a56ef8559218", null ], + [ "deduplicate", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a19ac983e750eb003b53de0db41ae01ce", null ], + [ "deduplicateDeclarations", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a70aebeb55df2a75bff578fa961e48210", null ], + [ "deduplicateRules", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a8cb0f526a894f28c376ced4c3175e7a6", null ], + [ "doValidate", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a69e8ea05f9978d5f524bbaa1745e9e81", null ], + [ "emit", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a9758cb7dbfe216d7b6ee9093e2e471d3", null ], + [ "enQueue", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a41f042f26b6ec9551a8a297df917478e", null ], + [ "enterNode", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a2c6f22060da77378a8521375b5a4662d", null ], + [ "exitNode", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#aebbaaa847b8a9e00d6aa6e817e171015", null ], [ "getAst", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a85f196c5c9b78aaaffcacf5cb9489c12", null ], - [ "getBlockType", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a8fd676df3fea2b492e6f2267b5e16d33", null ], - [ "getContent", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a65f8f4c7d256bcb5da62c9d1b49c5cd9", null ], + [ "getContext", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a8d932515f7adf79c0c7b8f0681be800f", null ], [ "getErrors", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#aa6e2f81f666a24121daf8b3851031b08", null ], - [ "getFileContent", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a586e5bfa866239cac94b39f266ce9aa1", null ], - [ "getNextPosition", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a2039fc9b1774f6f8352989159a4d5c7a", null ], - [ "getRoot", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a299a92fee34ab304a74894329f36270d", null ], - [ "load", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ad1335ca97b7df6d1e76050a72c2c3636", null ], - [ "merge", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a40e8b10045b13eecb37de5523887d39a", null ], - [ "next", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#aa1d14b517feeb1d3680fe05aa52a3c34", null ], + [ "handleError", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#aa0104f1da333e40258b9c4ab8954717a", null ], + [ "load", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a5d80454b44283a3e8ba0dbe5727528ea", null ], + [ "merge", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#adc29c15a39c0eb036a49456ae09eefc4", null ], + [ "off", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ac5c299286d6527ed1841d43a9511507a", null ], + [ "on", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a718f2b424932a0617415ed66f39e1332", null ], [ "parse", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a6152ca7676387969b743bbe2d9beb1c7", null ], - [ "parseAtRule", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a294ae8859aecabbd47a644ca1e70b45f", null ], - [ "parseComment", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a934b00ed1b620c5f7298b48caf91cf71", null ], - [ "parseDeclarations", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#aceb102b2ac12924d3b548df2ef87dcea", null ], - [ "parseRule", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ae53e81934397b69d063eaeb437d4b383", null ], - [ "parseVendor", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a696308a77ac4dcaba558816fea8897bc", null ], - [ "setAst", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a2651457d74591d955c2e2f7f1ce28141", null ], - [ "setContent", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a79c934517c6176c32ab0cd4be384a445", null ], + [ "popContext", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#aba80269b0612190d9fd2a5c9790a8ea3", null ], + [ "pushContext", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#afac0ce0eeda237d2ea4a1ecd72d4c28d", null ], + [ "reset", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a2709c774f3d01c89c96f369fdcf269b8", null ], + [ "setContent", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a71fe3434c98572506a59455319ba1c37", null ], [ "setOptions", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#af4e4fd8936810411640833eaed052d81", null ], - [ "update", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a1a081ded08a4b8c5e11507b0a604f188", null ], - [ "$ast", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a41fbcdc61fe346dbfc9788b19ed8e233", null ], - [ "$css", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ac97b52708b9f8676e33feaa964fdfb81", null ], - [ "$currentPosition", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#af4a9e93f486f90a21bbde3a10e5a72d3", null ], - [ "$element", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a1f7803eb0f7835d44b0c3560782d118d", null ], - [ "$end", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a4d575db6b36b4bcecf9419fa8f165dd8", null ], + [ "slice", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ab1ab9dbb07132461d8a861ea6502bbad", null ], + [ "stream", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ae2fd5f35f673a9448bb72b889fc8510c", null ], + [ "validate", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#ad14b3a6becb9231846ada01bfc4a9c05", null ], + [ "$ast", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#aff8ad9b9c3507ec291082b65d387d238", null ], + [ "$context", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a2ce1540abf6ec51068a326c77c77411e", null ], + [ "$error", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a57306d343a6a48395c96dfac7e8d9113", null ], [ "$errors", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a6a0b862ef987c01a8f5f9559323dfbbe", null ], + [ "$format", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a3a91c36d477f3f8bea1399166a4948c8", null ], + [ "$lastDedupIndex", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a80397b1d52e8158f6e64d0ac042077ba", null ], + [ "$lexer", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a9003f8816b9c1e16c3f830d00b149bc5", null ], [ "$options", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a2b333ff50f141d6db45fa483e8b2d3f7", null ], - [ "$previousPosition", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a8e44477ad38c5cfa32ba3d0d0124c1b7", null ], - [ "$src", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a80565010d06795b3a7062198184c1ee1", null ] + [ "$output", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a42fe719a3063142cf64647dd250f6d79", null ], + [ "$pool", "d8/d8b/classTBela_1_1CSS_1_1Parser.html#a2978a7eb1bf94b54b7888e95c6a95192", null ] ]; \ No newline at end of file diff --git a/docs/api/html/d8/d9d/classTBela_1_1CSS_1_1Value_1_1FontVariant-members.html b/docs/api/html/d8/d9d/classTBela_1_1CSS_1_1Value_1_1FontVariant-members.html index 6c86b44e..b381487e 100644 --- a/docs/api/html/d8/d9d/classTBela_1_1CSS_1_1Value_1_1FontVariant-members.html +++ b/docs/api/html/d8/d9d/classTBela_1_1CSS_1_1Value_1_1FontVariant-members.html @@ -93,32 +93,35 @@

$defaults (defined in TBela\CSS\Value\FontVariant)TBela\CSS\Value\FontVariantprotectedstatic
$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
$keywords (defined in TBela\CSS\Value\FontVariant)TBela\CSS\Value\FontVariantprotectedstatic
__construct($data)TBela\CSS\Valueprotected
__destruct()TBela\CSS\Value
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic
getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic
__construct(object $data)TBela\CSS\Valueprotected
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
equals(array $value, array $otherValue)TBela\CSS\Valuestatic
escape($value)TBela\CSS\Valuestatic
format($string, ?array &$comments=null)TBela\CSS\Valuestatic
getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getHash()TBela\CSS\Value\FontVariant
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(Value $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic
getType(string $token)TBela\CSS\Valueprotectedstatic
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(object $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
keywords()TBela\CSS\Valuestatic
match(string $type)TBela\CSS\Value
match(object $data, string $type)TBela\CSS\Valuestatic
matchDefaults($token)TBela\CSS\Valueprotectedstatic
matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\FontVariantstatic
parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic
parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
render(array $options=[])TBela\CSS\Value
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Valueprotectedstatic
renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Valueprotectedstatic
diff --git a/docs/api/html/d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html b/docs/api/html/d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html new file mode 100644 index 00000000..eed7b4b8 --- /dev/null +++ b/docs/api/html/d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html @@ -0,0 +1,209 @@ + + + + + + + +CSS: TBela\CSS\Cli\Option Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Cli\Option Class Reference
+
+
+ + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

__construct (string $type=Option::AUTO, bool $multiple=true, bool $required=false, $defaultValue=null, array $options=[])
 
getType ()
 
 addValue ($value)
 
isValueSet ()
 
isRequired ()
 
getValue ()
 
isMultiple ()
 
getDefaultValue ()
 
getOptions ()
 
+ + + + + + + + + + + + + +

+Public Attributes

+const AUTO = 'auto'
 
+const BOOL = 'bool'
 
+const INT = 'int'
 
+const FLOAT = 'float'
 
+const STRING = 'string'
 
+const NUMBER = 'number'
 
+ + + + + + + + + + + + + + + +

+Protected Attributes

+bool $isset = false
 
+string $type
 
+bool $multiple
 
+bool $required
 
+mixed $defaultValue
 
+array $options
 
+mixed $value = null
 
+

Member Function Documentation

+ +

◆ addValue()

+ +
+
+ + + + + + + + +
TBela\CSS\Cli\Option::addValue ( $value)
+
+
Parameters
+ + +
$value
+
+
+
Returns
$this
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Cli/Option.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.js b/docs/api/html/d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.js new file mode 100644 index 00000000..f9159afa --- /dev/null +++ b/docs/api/html/d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.js @@ -0,0 +1,25 @@ +var classTBela_1_1CSS_1_1Cli_1_1Option = +[ + [ "__construct", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#acf1238246e99ab0e2afd3356b0838fcf", null ], + [ "addValue", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a3dfd42518ba6a6c8f42fc295af6719c3", null ], + [ "getDefaultValue", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a6e31c4dfe3e0d94802338c8c3aee4712", null ], + [ "getOptions", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a4e7c6daa236b6a00a0e2e1b2ea2c28a8", null ], + [ "getType", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#af26c1ce129db7aeb960c49625c24f025", null ], + [ "getValue", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a066ad6a2d013ab716a8803bfab571dac", null ], + [ "isMultiple", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a93626a774521759332d4613ba2b6415d", null ], + [ "isRequired", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a9e04ccb5d09d679e223b8f6fd7621883", null ], + [ "isValueSet", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a9e34f208da5e5083243035914266b485", null ], + [ "$defaultValue", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a58146379d359370f02af938ae470a255", null ], + [ "$isset", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a9b2cb4c03d0d68d4b51002385f7ae99d", null ], + [ "$multiple", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a6707426072ce754120522a1300b977ca", null ], + [ "$options", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a413f2b587ef425557ca266e2a269abba", null ], + [ "$required", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a8783689244e791b3cf5a6348fb2cb9a0", null ], + [ "$type", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a5c87ba7809e836abe661c828d743a98c", null ], + [ "$value", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a730ed40a1bc618b73f113d1fd6559df4", null ], + [ "AUTO", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#adacf137e2117837045b027f4c1befb84", null ], + [ "BOOL", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a123a8f0090c61bcbcca2b3cbeb8000bf", null ], + [ "FLOAT", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a7f139ac51f61cf6ec9a793ef0573eb91", null ], + [ "INT", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a2d0d864fefa55205f942a83bb5a90776", null ], + [ "NUMBER", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#a05faece6ce3c9de63e2232e5f1a53bc5", null ], + [ "STRING", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html#aae1243cdb9655e91ee63204aa7a72341", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.html b/docs/api/html/d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.html index 477cced6..40c8e361 100644 --- a/docs/api/html/d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.html +++ b/docs/api/html/d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.html @@ -119,6 +119,8 @@
 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
 deduplicateDeclarations (array $options=[])
 
- Protected Attributes inherited from TBela\CSS\Element
$ast = null
 
+object $ast = null
 
RuleListInterface $parent = null
 
+array $rawValue = null
 

The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Element/Declaration.php
  • +
  • src/Element/Declaration.php
diff --git a/docs/api/html/d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.png b/docs/api/html/d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.png index 5ee7e5ca..dc6ff597 100644 Binary files a/docs/api/html/d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.png and b/docs/api/html/d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.png differ diff --git a/docs/api/html/d1/d80/classTBela_1_1CSS_1_1Value_1_1CSSFunction.html b/docs/api/html/d8/dab/classTBela_1_1CSS_1_1Value_1_1InvalidComment.html similarity index 69% rename from docs/api/html/d1/d80/classTBela_1_1CSS_1_1Value_1_1CSSFunction.html rename to docs/api/html/d8/dab/classTBela_1_1CSS_1_1Value_1_1InvalidComment.html index 7b426743..78ffdc45 100644 --- a/docs/api/html/d1/d80/classTBela_1_1CSS_1_1Value_1_1CSSFunction.html +++ b/docs/api/html/d8/dab/classTBela_1_1CSS_1_1Value_1_1InvalidComment.html @@ -5,7 +5,7 @@ -CSS: TBela\CSS\Value\CSSFunction Class Reference +CSS: TBela\CSS\Value\InvalidComment Class Reference @@ -62,7 +62,7 @@

@@ -83,42 +83,35 @@
-
TBela\CSS\Value\CSSFunction Class Reference
+
TBela\CSS\Value\InvalidComment Class Reference
- + Inheritance diagram for TBela\CSS\Value\CSSFunction:
+ + Inheritance diagram for TBela\CSS\Value\InvalidComment:
- - - - - - + + - - - - @@ -127,48 +120,62 @@  

Public Member Functions

 render (array $options=[])
 
 getValue ()
 
 getHash ()
 
 render (array $options=[])
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 toObject ()
 
 __toString ()
jsonSerialize ()
 
- - - - - - - - - - - - - - -

-Static Protected Member Functions

static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
- + + + + + + + - - + + + + + + + + + + - - - - - - + + + + + + +

-Additional Inherited Members

+Static Public Member Functions

static doRecover (object $data)
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
+ - - + + + + + + + + + + + + + + + @@ -187,52 +194,43 @@

+Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ getHash()

+ +

◆ doRecover()

+ + + + + +
- + - + +
TBela\CSS\Value\CSSFunction::getHash static TBela\CSS\Value\InvalidComment::doRecover ()object $data)
+
+static
-

@inheritDoc

+

recover an invalid token

-

Reimplemented from TBela\CSS\Value.

+

Implements TBela\CSS\Interfaces\InvalidTokenInterface.

- -

◆ getValue()

+ +

◆ render()

- - - - - -
TBela\CSS\Value\CSSFunction::getValue ()
-
-

@inheritDoc

- -
-
- -

◆ render()

- -
-
- - - + @@ -240,50 +238,21 @@

-

@inheritDoc

+

@inheritDoc @ignore

Reimplemented from TBela\CSS\Value.

- - - -

◆ validate()

- -
-
-

TBela\CSS\Value\CSSFunction::render TBela\CSS\Value\InvalidComment::render ( array  $options = [])
- - - - -
- - - - - - - - -
static TBela\CSS\Value\CSSFunction::validate ( $data)
-
-staticprotected
-
-

@inheritDoc

- -

Reimplemented from TBela\CSS\Value.

-

The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Value/CssFunction.php
  • +
  • src/Value/InvalidComment.php
- - - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

 match ($type)
 
 getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
+ + + + + + - - + + + + + + + + + + - - - - - - + + + + + +

Static Public Member Functions

static match (object $data, $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
@@ -172,9 +160,23 @@

Static Protected Attributes

+ + + + + + + + + + + + + - - + + @@ -182,12 +184,12 @@ - - - - - - + + + + + + @@ -196,48 +198,40 @@

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 render (array $options=[])
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ getHash()

+ +

◆ match()

+ + + + + +
- + - - + + -
TBela\CSS\Value\FontStyle::getHash static TBela\CSS\Value\FontStyle::match ()object $data,
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

- -
- - -

◆ match()

- -
-
- - - + + - + + + + +
TBela\CSS\Value\FontStyle::match (  $type)$type 
)
+
+static
-

test if this object matches the specified type

Parameters
- - -
string$type
-
-
-
Returns
bool
+

@inheritDoc

@@ -339,7 +333,7 @@

$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected $parentTBela\CSS\Elementprotected - __clone()TBela\CSS\Element - __construct($ast=null, $parent=null)TBela\CSS\Element + $rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected + __clone()TBela\CSS\Element + __construct($ast=null, $parent=null)TBela\CSS\Element + __get($name) (defined in TBela\CSS\Element\RuleList)TBela\CSS\Element\RuleList __toString()TBela\CSS\Element addAtRule($name, $value=null, $type=0)TBela\CSS\Element\RuleSet addComment($value)TBela\CSS\Element\RuleList @@ -112,28 +114,29 @@ getLeadingComments()TBela\CSS\Element getParent()TBela\CSS\Element getPosition()TBela\CSS\Element - getRoot()TBela\CSS\Element - getSrc()TBela\CSS\Element - getTrailingComments()TBela\CSS\Element - getType()TBela\CSS\Element - getValue()TBela\CSS\Element - hasChildren()TBela\CSS\Element\RuleList - insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList - jsonSerialize()TBela\CSS\Element - query($query)TBela\CSS\Element - TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface - queryByClassNames($query)TBela\CSS\Element - remove(ElementInterface $element)TBela\CSS\Element\RuleList - removeChildren()TBela\CSS\Element\RuleList - setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element - setChildren(array $elements)TBela\CSS\Element\RuleList - setComments(?array $comments, $type)TBela\CSS\Elementprotected - setLeadingComments(?array $comments)TBela\CSS\Element - setTrailingComments(?array $comments)TBela\CSS\Element - setValue($value)TBela\CSS\Element - support(ElementInterface $child)TBela\CSS\Element\RuleList - toObject()TBela\CSS\Element - traverse(callable $fn, $event)TBela\CSS\Element + getRawValue()TBela\CSS\Element + getRoot()TBela\CSS\Element + getSrc()TBela\CSS\Element + getTrailingComments()TBela\CSS\Element + getType()TBela\CSS\Element + getValue()TBela\CSS\Element + hasChildren()TBela\CSS\Element\RuleList + insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList + jsonSerialize()TBela\CSS\Element + query($query)TBela\CSS\Element + TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface + queryByClassNames($query)TBela\CSS\Element + remove(ElementInterface $element)TBela\CSS\Element\RuleList + removeChildren()TBela\CSS\Element\RuleList + setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element + setChildren(array $elements)TBela\CSS\Element\RuleList + setComments(?array $comments, $type)TBela\CSS\Elementprotected + setLeadingComments(?array $comments)TBela\CSS\Element + setTrailingComments(?array $comments)TBela\CSS\Element + setValue($value)TBela\CSS\Element + support(ElementInterface $child)TBela\CSS\Element\RuleList + toObject()TBela\CSS\Element + traverse(callable $fn, $event)TBela\CSS\Element diff --git a/docs/api/html/d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html b/docs/api/html/d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html new file mode 100644 index 00000000..e0d06241 --- /dev/null +++ b/docs/api/html/d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html @@ -0,0 +1,327 @@ + + + + + + + +CSS: TBela\CSS\Cli\Args Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+ + + + + + + + + + + + + + + + + + +

+Public Member Functions

__construct (array $argv)
 
setDescription (string $description)
 
setStrict (bool $strict)
 
getGroups ()
 
addGroup (string $group, string $description, bool $internal=false)
 
 add (string $name, string $description, string $type, array|string $alias=null, $multiple=true, $required=false, $defaultValue=null, ?array $options=[], array|string|null $dependsOn=null, $group='default')
 
getArguments ()
 
help ($extended=false)
 
+ + + + + +

+Protected Member Functions

printGroupHelp (array $group, bool $extended)
 
 parseFlag (string &$name, array &$dynamicArgs)
 
+ + + + + + + + + + + + + + + +

+Protected Attributes

+bool $strict = false
 
array $groups
 
+array $flags = []
 
+array $settings = []
 
+array $alias = []
 
+array $argv
 
+array $args = []
 
+

Member Function Documentation

+ +

◆ add()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Cli\Args::add (string $name,
string $description,
string $type,
array|string $alias = null,
 $multiple = true,
 $required = false,
 $defaultValue = null,
?array $options = [],
array|string|null $dependsOn = null,
 $group = 'default' 
)
+
+
Exceptions
+ + +
Exceptions
+
+
+ +
+
+ +

◆ parseFlag()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
TBela\CSS\Cli\Args::parseFlag (string & $name,
array & $dynamicArgs 
)
+
+protected
+
+
Parameters
+ + + +
string$name
array$dynamicArgs
+
+
+
Returns
Option|null
+
Exceptions
+ + +
Exceptions
+
+
+ +
+
+

Member Data Documentation

+ +

◆ $groups

+ +
+
+ + + + + +
+ + + + +
array TBela\CSS\Cli\Args::$groups
+
+protected
+
+Initial value:
= [
+
'default' => [
+
'description' => "\nUsage: \n\$ %s [OPTIONS] [PARAMETERS]\n"
+
]
+
]
+
+
+
+
The documentation for this class was generated from the following file:
    +
  • src/Cli/Args.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.js b/docs/api/html/d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.js new file mode 100644 index 00000000..6a48ba94 --- /dev/null +++ b/docs/api/html/d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.js @@ -0,0 +1,20 @@ +var classTBela_1_1CSS_1_1Cli_1_1Args = +[ + [ "__construct", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a4208341de4f76587d46d0c9d3139ecd2", null ], + [ "add", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a003885903f35aa4d10a168b5dd1142fe", null ], + [ "addGroup", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a4dd5befd7e4ad1e135a7c39e017009f9", null ], + [ "getArguments", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#af50df8dac7cf9814d4b7e20f6a5c165f", null ], + [ "getGroups", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a232ba3c8a4bb25b614e6c57870a4d42b", null ], + [ "help", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#adf0d12f5fb83c22c93c61f4d4eedbb13", null ], + [ "parseFlag", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#aae62a2b0a12b3aa3215e9da5079f63cc", null ], + [ "printGroupHelp", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a46948ce8f1369da23d5e7a58f9096afc", null ], + [ "setDescription", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#aac7f2550cfdc68fb29534d6e9ca6823b", null ], + [ "setStrict", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a2480d1dad9fa077e7d969c1a55cd4048", null ], + [ "$alias", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#acc74ce9c05c306736dce4e2d1492280f", null ], + [ "$args", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a20be14fe24189a9666e1dca10b01fd01", null ], + [ "$argv", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#ada5ce60faed84c43dae285cf58243dce", null ], + [ "$flags", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#ac83bb60b8024fb19067324bbdf4c013c", null ], + [ "$groups", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a692aaaff8db0fd931793cd5fe01634bc", null ], + [ "$settings", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a07ddf39a0cc15138f566aba91b3570ac", null ], + [ "$strict", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html#a93327a63d2836acd09f0f4b4661350d3", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d9/d03/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeSelector.html b/docs/api/html/d9/d03/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeSelector.html index 7e6e0842..3121b05e 100644 --- a/docs/api/html/d9/d03/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeSelector.html +++ b/docs/api/html/d9/d03/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeSelector.html @@ -194,7 +194,7 @@

$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\OutlineWidth)TBela\CSS\Value\OutlineWidthprotectedstatic __construct($data)TBela\CSS\Value\Numberprotected - __destruct()TBela\CSS\Value + TBela::CSS::Value::__construct(object $data)TBela\CSS\Valueprotected __get($name)TBela\CSS\Value __isset($name)TBela\CSS\Value __toString()TBela\CSS\Value - compress(string $value)TBela\CSS\Value\Numberstatic - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + compress(string $value, array $options=[])TBela\CSS\Value\Numberstatic + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[])TBela\CSS\Value\Unitstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\OutlineWidth - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match($type)TBela\CSS\Value\Unit - TBela::CSS::Value::Number::match(string $type)TBela\CSS\Value\Number + match(object $data, $type)TBela\CSS\Value\Unitstatic + TBela::CSS::Value::Number::match(object $data, string $type)TBela\CSS\Value\Numberstatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\OutlineWidthstatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\Unit - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Value\Unitprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Value\Unitprotectedstatic diff --git a/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html b/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html index 9264f065..c31e062e 100644 --- a/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html +++ b/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html @@ -95,26 +95,161 @@ + + +TBela\CSS\Value\CssFunction +TBela\CSS\Value +TBela\CSS\Interfaces\ObjectInterface + + - + - - + + + + + + + + + + + + + +

Public Member Functions

render (array $options=[])
 render (array $options=[])
 
getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value\CssFunction
 getValue ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
- + + + + + + + + + + + + +

Static Protected Member Functions

-static validate ($data)
static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from TBela\CSS\Value\CssFunction
static doRender (object $data, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+string $hash = null
 
- Static Protected Attributes inherited from TBela\CSS\Value
+static array $defaults = []
 
+static array $keywords = []
 
+static array $cache = []
 
+

Member Function Documentation

+ +

◆ render()

+ +
+
+ + + + + + + + +
TBela\CSS\Value\CssSrcFormat::render (array $options = [])
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value\CssFunction.

+ +
+
+ +

◆ validate()

+ +
+
+ + + + + +
+ + + + + + + + +
static TBela\CSS\Value\CssSrcFormat::validate ( $data)
+
+staticprotected
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value\CssFunction.

+ +
+

The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Value/CssSrcFormat.php
  • +
  • src/Value/CssSrcFormat.php
diff --git a/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.js b/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.js index c034dba8..ff31779f 100644 --- a/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.js +++ b/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.js @@ -1,5 +1,4 @@ var classTBela_1_1CSS_1_1Value_1_1CssSrcFormat = [ - [ "getHash", "d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html#a4f39de356285456c3dc2402028c88248", null ], [ "render", "d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html#abd8d489d102a90249a556377c4fcf4b0", null ] ]; \ No newline at end of file diff --git a/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.png b/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.png index cbcb728a..368fd3d3 100644 Binary files a/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.png and b/docs/api/html/d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.png differ diff --git a/docs/api/html/d9/d4a/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1UnknownParameterException.html b/docs/api/html/d9/d4a/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1UnknownParameterException.html new file mode 100644 index 00000000..95333987 --- /dev/null +++ b/docs/api/html/d9/d4a/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1UnknownParameterException.html @@ -0,0 +1,111 @@ + + + + + + + +CSS: TBela\CSS\Cli\Exceptions\UnknownParameterException Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Cli\Exceptions\UnknownParameterException Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Cli\Exceptions\UnknownParameterException:
+
+
+ +
The documentation for this class was generated from the following file:
    +
  • src/Cli/Exceptions/UnknownParameterException.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d9/d4a/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1UnknownParameterException.png b/docs/api/html/d9/d4a/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1UnknownParameterException.png new file mode 100644 index 00000000..5c9749f9 Binary files /dev/null and b/docs/api/html/d9/d4a/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1UnknownParameterException.png differ diff --git a/docs/api/html/d9/d56/classTBela_1_1CSS_1_1Element_1_1RuleSet.html b/docs/api/html/d9/d56/classTBela_1_1CSS_1_1Element_1_1RuleSet.html index e47aeaf1..5c4d6ae4 100644 --- a/docs/api/html/d9/d56/classTBela_1_1CSS_1_1Element_1_1RuleSet.html +++ b/docs/api/html/d9/d56/classTBela_1_1CSS_1_1Element_1_1RuleSet.html @@ -111,6 +111,7 @@ TBela\CSS\Interfaces\ObjectInterface TBela\CSS\Element\AtRule TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingMediaRule @@ -121,6 +122,9 @@ + + @@ -156,6 +160,8 @@ + + @@ -215,11 +221,14 @@ - - + + + +
 addRule ($selectors)
 
- Public Member Functions inherited from TBela\CSS\Element\RuleList
__get ($name)
 
 addComment ($value)
 
 hasChildren ()
 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
 deduplicateDeclarations (array $options=[])
 
- Protected Attributes inherited from TBela\CSS\Element
$ast = null
 
+object $ast = null
 
RuleListInterface $parent = null
 
+array $rawValue = null
 

Member Function Documentation

@@ -308,7 +317,7 @@

+ + + + + + +CSS: TBela\CSS\Value\CssFunction Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
+ + Inheritance diagram for TBela\CSS\Value\CssFunction:
+
+
+ + + + + + + + + + + + + + + + + + +

+Public Member Functions

 render (array $options=[])
 
 getValue ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Static Public Member Functions

static doRender (object $data, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
+ + + + + + + + + + + + + + +

+Static Protected Member Functions

static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+string $hash = null
 
- Static Protected Attributes inherited from TBela\CSS\Value
+static array $defaults = []
 
+static array $keywords = []
 
+static array $cache = []
 
+

Member Function Documentation

+ +

◆ doRender()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
static TBela\CSS\Value\CssFunction::doRender (object $data,
array $options = [] 
)
+
+static
+
+

@inheritDoc

+ +

Reimplemented in TBela\CSS\Value\BackgroundImage, and TBela\CSS\Value\CssUrl.

+ +
+
+ +

◆ getValue()

+ +
+
+ + + + + + + +
TBela\CSS\Value\CssFunction::getValue ()
+
+

@inheritDoc

+ +
+
+ +

◆ render()

+ +
+
+ + + + + + + + +
TBela\CSS\Value\CssFunction::render (array $options = [])
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value.

+ +

Reimplemented in TBela\CSS\Value\BackgroundImage, TBela\CSS\Value\CssUrl, and TBela\CSS\Value\CssSrcFormat.

+ +
+
+ +

◆ validate()

+ +
+
+ + + + + +
+ + + + + + + + +
static TBela\CSS\Value\CssFunction::validate ( $data)
+
+staticprotected
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value.

+ +

Reimplemented in TBela\CSS\Value\BackgroundImage, TBela\CSS\Value\CssUrl, and TBela\CSS\Value\CssSrcFormat.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Value/CssFunction.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.js b/docs/api/html/d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.js new file mode 100644 index 00000000..e6c38178 --- /dev/null +++ b/docs/api/html/d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.js @@ -0,0 +1,5 @@ +var classTBela_1_1CSS_1_1Value_1_1CssFunction = +[ + [ "getValue", "d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.html#ac99448d15f59d092005432d83e060c3c", null ], + [ "render", "d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.html#a6e10141f378487ceb196188afe44ff90", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.png b/docs/api/html/d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.png new file mode 100644 index 00000000..34955b26 Binary files /dev/null and b/docs/api/html/d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.png differ diff --git a/docs/api/html/d9/d61/classTBela_1_1CSS_1_1Query_1_1TokenSelect.html b/docs/api/html/d9/d61/classTBela_1_1CSS_1_1Query_1_1TokenSelect.html index 3aae1ce8..d39fca2a 100644 --- a/docs/api/html/d9/d61/classTBela_1_1CSS_1_1Query_1_1TokenSelect.html +++ b/docs/api/html/d9/d61/classTBela_1_1CSS_1_1Query_1_1TokenSelect.html @@ -210,7 +210,7 @@

+ + + + + + +CSS: TBela\CSS\Element\NestingMediaRule Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Element\NestingMediaRule Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Element\NestingMediaRule:
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

getName (bool $getVendor=true)
 
 isLeaf ()
 
 hasDeclarations ()
 
 support (ElementInterface $child)
 
- Public Member Functions inherited from TBela\CSS\Element\AtRule
 addDeclaration ($name, $value)
 
 jsonSerialize ()
 
- Public Member Functions inherited from TBela\CSS\Element\RuleSet
 addAtRule ($name, $value=null, $type=0)
 
 addRule ($selectors)
 
- Public Member Functions inherited from TBela\CSS\Element\RuleList
__get ($name)
 
 addComment ($value)
 
 hasChildren ()
 
 removeChildren ()
 
 getChildren ()
 
 setChildren (array $elements)
 
 append (ElementInterface ... $elements)
 
 appendCss ($css)
 
 insert (ElementInterface $element, $position)
 
 remove (ElementInterface $element)
 
 getIterator ()
 
- Public Member Functions inherited from TBela\CSS\Element
 __construct ($ast=null, $parent=null)
 
 traverse (callable $fn, $event)
 
 query ($query)
 
 queryByClassNames ($query)
 
 getRoot ()
 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
 
 getType ()
 
 copy ()
 
 getSrc ()
 
 getPosition ()
 
 setTrailingComments (?array $comments)
 
 getTrailingComments ()
 
 setLeadingComments (?array $comments)
 
 getLeadingComments ()
 
 deduplicate (array $options=['allow_duplicate_rules'=>['font-face']])
 
setAst (ElementInterface $element)
 
 getAst ()
 
 __toString ()
 
 __clone ()
 
 toObject ()
 
- Public Member Functions inherited from TBela\CSS\Query\QueryInterface
 query (string $query)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\RuleListInterface
 computeShortHand ()
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from TBela\CSS\Element
static getInstance ($ast)
 
static from ($css, array $options=[])
 
static fromUrl ($url, array $options=[])
 
- Public Attributes inherited from TBela\CSS\Element\AtRule
const ELEMENT_AT_RULE_LIST = 0
 
const ELEMENT_AT_DECLARATIONS_LIST = 1
 
+const ELEMENT_AT_NO_LIST = 2
 
- Protected Member Functions inherited from TBela\CSS\Element
 setComments (?array $comments, $type)
 
 computeSignature ()
 
 deduplicateDeclarations (array $options=[])
 
- Protected Attributes inherited from TBela\CSS\Element
+object $ast = null
 
RuleListInterface $parent = null
 
+array $rawValue = null
 
+

Member Function Documentation

+ +

◆ hasDeclarations()

+ +
+
+ + + + + + + +
TBela\CSS\Element\NestingMediaRule::hasDeclarations ()
+
+

test if this at-rule node contains declaration

Returns
bool
+ +

Reimplemented from TBela\CSS\Element\AtRule.

+ +
+
+ +

◆ isLeaf()

+ +
+
+ + + + + + + +
TBela\CSS\Element\NestingMediaRule::isLeaf ()
+
+

test if this at-rule node is a leaf

Returns
bool
+ +

Reimplemented from TBela\CSS\Element\AtRule.

+ +
+
+ +

◆ support()

+ +
+
+ + + + + + + + +
TBela\CSS\Element\NestingMediaRule::support (ElementInterface $child)
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Element\AtRule.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Element/NestingMediaRule.php
  • +
+
+
+ + + + diff --git a/docs/api/html/d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.js b/docs/api/html/d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.js new file mode 100644 index 00000000..d1edb7fb --- /dev/null +++ b/docs/api/html/d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.js @@ -0,0 +1,7 @@ +var classTBela_1_1CSS_1_1Element_1_1NestingMediaRule = +[ + [ "getName", "d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.html#af797c262754af624646ef8b05d011363", null ], + [ "hasDeclarations", "d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.html#a8ae6a0f0fd3fcf84fb2bfe45f00e695d", null ], + [ "isLeaf", "d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.html#a9f51a45cc68df062f963fddae06ffa9b", null ], + [ "support", "d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.html#aee90bf112a223c8a05c524264c7ebcf2", null ] +]; \ No newline at end of file diff --git a/docs/api/html/d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.png b/docs/api/html/d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.png new file mode 100644 index 00000000..d570a4c2 Binary files /dev/null and b/docs/api/html/d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.png differ diff --git a/docs/api/html/d9/d83/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression-members.html b/docs/api/html/d9/d83/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression-members.html index 3767eabc..f293b1e3 100644 --- a/docs/api/html/d9/d83/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression-members.html +++ b/docs/api/html/d9/d83/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression-members.html @@ -93,32 +93,35 @@ $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\CssParenthesisExpression - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\CssParenthesisExpression - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Value\CssParenthesisExpressionprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Value\CssParenthesisExpressionprotectedstatic diff --git a/docs/api/html/d9/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction-members.html b/docs/api/html/d9/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction-members.html new file mode 100644 index 00000000..0aa7c4aa --- /dev/null +++ b/docs/api/html/d9/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction-members.html @@ -0,0 +1,138 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Value\InvalidCssFunction Member List
+
+
+ +

This is the complete list of members for TBela\CSS\Value\InvalidCssFunction, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$cache (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$dataTBela\CSS\Valueprotected
$defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
$keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
__construct(object $data)TBela\CSS\Valueprotected
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
doRecover(object $data)TBela\CSS\Value\InvalidCssFunctionstatic
equals(array $value, array $otherValue)TBela\CSS\Valuestatic
escape($value)TBela\CSS\Valuestatic
format($string, ?array &$comments=null)TBela\CSS\Valuestatic
getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(object $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
getValue()TBela\CSS\Value\InvalidCssFunction
indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
keywords()TBela\CSS\Valuestatic
match(object $data, string $type)TBela\CSS\Valuestatic
matchDefaults($token)TBela\CSS\Valueprotectedstatic
matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic
parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
render(array $options=[])TBela\CSS\Value\InvalidCssFunction
renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Value\InvalidCssFunctionprotectedstatic
+
+ + + + diff --git a/docs/api/html/d9/da1/classTBela_1_1CSS_1_1Value_1_1InvalidCssString-members.html b/docs/api/html/d9/da1/classTBela_1_1CSS_1_1Value_1_1InvalidCssString-members.html new file mode 100644 index 00000000..09fa35a6 --- /dev/null +++ b/docs/api/html/d9/da1/classTBela_1_1CSS_1_1Value_1_1InvalidCssString-members.html @@ -0,0 +1,138 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Value\InvalidCssString Member List
+
+
+ +

This is the complete list of members for TBela\CSS\Value\InvalidCssString, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$cache (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$dataTBela\CSS\Valueprotected
$defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
$keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
__construct(object $data)TBela\CSS\Valueprotected
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
doRecover(object $data)TBela\CSS\Value\InvalidCssStringstatic
equals(array $value, array $otherValue)TBela\CSS\Valuestatic
escape($value)TBela\CSS\Valuestatic
format($string, ?array &$comments=null)TBela\CSS\Valuestatic
getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(object $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
getValue()TBela\CSS\Value\InvalidCssString
indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
keywords()TBela\CSS\Valuestatic
match(object $data, string $type)TBela\CSS\Valuestatic
matchDefaults($token)TBela\CSS\Valueprotectedstatic
matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic
parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
render(array $options=[])TBela\CSS\Value\InvalidCssString
renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Value\InvalidCssStringprotectedstatic
+
+ + + + diff --git a/docs/api/html/d9/dd3/classTBela_1_1CSS_1_1Property_1_1PropertyList.html b/docs/api/html/d9/dd3/classTBela_1_1CSS_1_1Property_1_1PropertyList.html index 1006e41a..a8676979 100644 --- a/docs/api/html/d9/dd3/classTBela_1_1CSS_1_1Property_1_1PropertyList.html +++ b/docs/api/html/d9/dd3/classTBela_1_1CSS_1_1Property_1_1PropertyList.html @@ -103,8 +103,14 @@  __construct (RuleList $list=null, array $options=[])   - set (?string $name, $value, $propertyType=null, ?array $leadingcomments=null, ?array $trailingcomments=null, $src=null) -  +has ($property) +  +remove ($property) +  + set (?string $name, $value, ?string $propertyType=null, ?array $leadingcomments=null, ?array $trailingcomments=null, ?string $src='', ?string $vendor=null) +   render ($glue=';', $join="\n")    __toString () @@ -217,8 +223,8 @@

-

◆ set()

+ +

◆ set()

@@ -238,7 +244,7 @@

-   + ?string  $propertyType = null, @@ -256,8 +262,14 @@

-   - $src = null  + ?string  + $src = '', + + + + + ?string  + $vendor = null  @@ -273,6 +285,8 @@

string | null$propertyType array | null$leadingcomments array | null$trailingcomments + string | null$src + string | null$vendor @@ -327,7 +341,7 @@

$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic __construct($data)TBela\CSS\Value\Numberprotected - __destruct()TBela\CSS\Value + TBela::CSS::Value::__construct(object $data)TBela\CSS\Valueprotected __get($name)TBela\CSS\Value __isset($name)TBela\CSS\Value __toString()TBela\CSS\Value - compress(string $value)TBela\CSS\Value\Numberstatic - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + compress(string $value, array $options=[])TBela\CSS\Value\Numberstatic + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[])TBela\CSS\Value\Unitstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\Unit - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match($type)TBela\CSS\Value\Unit - TBela::CSS::Value::Number::match(string $type)TBela\CSS\Value\Number + match(object $data, $type)TBela\CSS\Value\Unitstatic + TBela::CSS::Value::Number::match(object $data, string $type)TBela\CSS\Value\Numberstatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\Unit - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Value\Unitprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Value\Unitprotectedstatic

diff --git a/docs/api/html/da/d01/classTBela_1_1CSS_1_1Query_1_1TokenList.html b/docs/api/html/da/d01/classTBela_1_1CSS_1_1Query_1_1TokenList.html index 788ec476..d5c0cdda 100644 --- a/docs/api/html/da/d01/classTBela_1_1CSS_1_1Query_1_1TokenList.html +++ b/docs/api/html/da/d01/classTBela_1_1CSS_1_1Query_1_1TokenList.html @@ -191,7 +191,7 @@

Public Member Functions

getHash () -  - match (string $type) -   render (array $options=[])   - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name) @@ -132,34 +126,52 @@ - - + + + + + + + + - - + + + + + + + + + + - - - - - - + + + + + +

Static Public Member Functions

static compress (string $value)
 
static match (object $data, string $type)
 
static compress (string $value, array $options=[])
 
+static doRender (object $data, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
+ + +

Protected Member Functions

 __construct ($data)
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
@@ -170,12 +182,12 @@ - - - - - - + + + + + +

Static Protected Member Functions

 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
@@ -222,13 +234,11 @@

@inheritDoc

-

Reimplemented from TBela\CSS\Value.

-

Member Function Documentation

- -

◆ compress()

+ +

◆ compress()

- + + + + + + + + + + +

Additional Inherited Members

( string $value)$value,
array $options = [] 
)
@@ -258,50 +278,44 @@

Returns
string @ignore
-

Referenced by TBela\CSS\Value\Unit\render(), TBela\CSS\Value\FontWeight\render(), TBela\CSS\Value\FontSize\render(), TBela\CSS\Value\LineHeight\render(), TBela\CSS\Value\Number\render(), and TBela\CSS\Value\BackgroundPosition\render().

- - -

◆ getHash()

+ +

◆ match()

+ + + + + +
- + - - + + -
TBela\CSS\Value\Number::getHash static TBela\CSS\Value\Number::match ()object $data,
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

- -

Reimplemented in TBela\CSS\Value\FontSize, TBela\CSS\Value\Unit, and TBela\CSS\Value\OutlineWidth.

- -
- - -

◆ match()

- -
-
- - - + + - + + + + +
TBela\CSS\Value\Number::match ( string $type)$type 
)
+
+static

@inheritDoc

-

Reimplemented from TBela\CSS\Value.

+

Reimplemented from TBela\CSS\Value.

@@ -360,7 +374,7 @@

+ + + + + + +CSS: TBela\CSS\Parser\Validator\NestingAtRule Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Parser\Validator\NestingAtRule Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Parser\Validator\NestingAtRule:
+
+
+ + + + + + + + +

+Public Member Functions

 validate (object $token, object $parentRule, object $parentStylesheet)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
getError ()
 
+ + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
const VALID = 1
 
const REMOVE = 2
 
const REJECT = 3
 
+

Member Function Documentation

+ +

◆ validate()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Validator\NestingAtRule::validate (object $token,
object $parentRule,
object $parentStylesheet 
)
+
+
Parameters
+ + + + +
object$token
object$parentRule
object | null$parentStylesheet
+
+
+
Returns
int
+ +

Implements TBela\CSS\Interfaces\ValidatorInterface.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Parser/Validator/NestingAtRule.php
  • +
+
+
+ + + + diff --git a/docs/api/html/da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.js b/docs/api/html/da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.js new file mode 100644 index 00000000..69a5cdb0 --- /dev/null +++ b/docs/api/html/da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule = +[ + [ "validate", "da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.html#a644bc24aa6f765662e223c99a52d9e33", null ] +]; \ No newline at end of file diff --git a/docs/api/html/da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.png b/docs/api/html/da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.png new file mode 100644 index 00000000..5cf9bc7f Binary files /dev/null and b/docs/api/html/da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.png differ diff --git a/docs/api/html/da/d7d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment-members.html b/docs/api/html/da/d7d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment-members.html new file mode 100644 index 00000000..13abec8b --- /dev/null +++ b/docs/api/html/da/d7d/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Validator\InvalidComment Member List
+
+ +
+ + + + diff --git a/docs/api/html/da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment.html b/docs/api/html/da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment.html index e4087d8c..8724418d 100644 --- a/docs/api/html/da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment.html +++ b/docs/api/html/da/db5/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionComment.html @@ -166,7 +166,7 @@

   getValue ()   - getName () -  + setVendor ($vendor) +  + getVendor () +  + setName ($name) +  + getName (bool $vendor=true) +   getType ()   - getHash () -   render (array $options=[])    __toString () @@ -142,6 +146,9 @@ string $name   + +string $vendor = null +  array $leadingcomments = null   @@ -173,7 +180,7 @@

Property constructor.

Parameters
- +
Value\Set | string$name
string$name
@@ -219,26 +226,6 @@

TBela\CSS\Interfaces\ParsableInterface.

- - - -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Property\Property::getHash ()
-
-

get property hash.

Returns
string
- -

Reimplemented in TBela\CSS\Property\Comment.

-
@@ -263,8 +250,8 @@

-

◆ getName()

+ +

◆ getName()

@@ -337,10 +325,28 @@

-

get the property value

Returns
Set|null
+

get the property value

Returns
array|null

Reimplemented in TBela\CSS\Property\Comment.

+ + + +

◆ getVendor()

+ +
+
+ + + + + + + +
TBela\CSS\Property\Property::getVendor ()
+
+
Returns
string|null
+
@@ -393,6 +399,33 @@

TBela\CSS\Property\Comment.

+ + + +

◆ setName()

+ +
+
+ + + + + + + + +
TBela\CSS\Property\Property::setName ( $name)
+
+
Parameters
+ + +
string$name
+
+
+
Returns
Property
+ +

Referenced by TBela\CSS\Property\Property\__construct().

+
@@ -435,18 +468,43 @@

set the property value

Parameters
- +
Set | string$value
array | string$value
-
Returns
$this
+
Returns
Property

Reimplemented in TBela\CSS\Property\Comment.

+ + + +

◆ setVendor()

+ +
+
+ + + + + + + + +
TBela\CSS\Property\Property::setVendor ( $vendor)
+
+
Parameters
+ + +
$vendor
+
+
+
Returns
Property
+

The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Property/Property.php
  • +
  • src/Property/Property.php
diff --git a/docs/api/html/da/db6/classTBela_1_1CSS_1_1Property_1_1Property.js b/docs/api/html/da/db6/classTBela_1_1CSS_1_1Property_1_1Property.js index 8a0ec723..2b7b6b2e 100644 --- a/docs/api/html/da/db6/classTBela_1_1CSS_1_1Property_1_1Property.js +++ b/docs/api/html/da/db6/classTBela_1_1CSS_1_1Property_1_1Property.js @@ -3,19 +3,22 @@ var classTBela_1_1CSS_1_1Property_1_1Property = [ "__construct", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a69b712f23e57c41144edfac21229ba04", null ], [ "__toString", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a5dbaa67198e75e054531d1339c3eafe7", null ], [ "getAst", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#afd930ac967392f697efd9639e56e34bc", null ], - [ "getHash", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#afa0891055f899a7caa3b5ac02c1cd266", null ], [ "getLeadingComments", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#af526ce44ce8e2d82a1e994d9705fd64d", null ], - [ "getName", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a416a60aa76b6036c9a732c2913e0bce5", null ], + [ "getName", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a8490ff7d395bee0ee901e5cb0d0a23a8", null ], [ "getTrailingComments", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a9ae8bac7db2a865fd0c0a313dbe8e044", null ], [ "getType", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#ad808845739651ce4af38245a6965cec3", null ], [ "getValue", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a22e3b4144fccefe4daa572837a313ebb", null ], + [ "getVendor", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#ad949135cf8903e1a29f11a391ba13dba", null ], [ "render", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a106c453c10b8d0a29069c5243aecac08", null ], [ "setLeadingComments", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#abc42f51fcc7998f09e97d0320d663981", null ], + [ "setName", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a5c50c5fec1f9ee857e7671ff09320b44", null ], [ "setTrailingComments", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#aa30844f65a8fc5c309c378672ba535f0", null ], [ "setValue", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a5a11e6df5dc9ce3da575becf41b8ba27", null ], + [ "setVendor", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a64c7e0592ac22f9d8a4b76a5566221f7", null ], [ "$leadingcomments", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#aefcc8750a24c66538ad53a47d7af1d17", null ], [ "$name", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#afc2fc523bc9ce5217dddceee43e19713", null ], [ "$trailingcomments", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a54a66ffea143f926efe71e465a0bcfd0", null ], [ "$type", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a95a77ce7585938d50c3ca8dd49b57325", null ], - [ "$value", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a30ff98f55943a221b10fd80781b9cbb3", null ] + [ "$value", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a30ff98f55943a221b10fd80781b9cbb3", null ], + [ "$vendor", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html#a279e7435cfa63c43979a87a4949dec87", null ] ]; \ No newline at end of file diff --git a/docs/api/html/da/db6/classTBela_1_1CSS_1_1Property_1_1Property.png b/docs/api/html/da/db6/classTBela_1_1CSS_1_1Property_1_1Property.png index 0eed5754..c43f7b72 100644 Binary files a/docs/api/html/da/db6/classTBela_1_1CSS_1_1Property_1_1Property.png and b/docs/api/html/da/db6/classTBela_1_1CSS_1_1Property_1_1Property.png differ diff --git a/docs/api/html/da/db6/classTBela_1_1CSS_1_1Value_1_1Outline.html b/docs/api/html/da/db6/classTBela_1_1CSS_1_1Value_1_1Outline.html index 1891cdcb..550f6147 100644 --- a/docs/api/html/da/db6/classTBela_1_1CSS_1_1Value_1_1Outline.html +++ b/docs/api/html/da/db6/classTBela_1_1CSS_1_1Value_1_1Outline.html @@ -122,18 +122,11 @@ - - - - - - - @@ -147,32 +140,44 @@ + + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + - - + + @@ -180,10 +185,10 @@ - - - - + + + + @@ -223,7 +228,7 @@

+ + + + + + +CSS: TBela\CSS\Cli\Exceptions\MissingParameterException Class Reference + + + + + + + + + + + + + +
+
+

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value\ShortHand
 getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
static matchPattern (array $tokens)
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value\ShortHand
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+ + + + + +
+
CSS +
+
+ + + + + + + + + +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Cli\Exceptions\MissingParameterException Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Cli\Exceptions\MissingParameterException:
+
+
+ +
The documentation for this class was generated from the following file:
    +
  • src/Cli/Exceptions/MissingParameterException.php
  • +
+
+
+ +
+ + diff --git a/docs/api/html/da/db8/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1MissingParameterException.png b/docs/api/html/da/db8/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1MissingParameterException.png new file mode 100644 index 00000000..ce4b7ffa Binary files /dev/null and b/docs/api/html/da/db8/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1MissingParameterException.png differ diff --git a/docs/api/html/da/dc4/classTBela_1_1CSS_1_1Parser_1_1SyntaxError.html b/docs/api/html/da/dc4/classTBela_1_1CSS_1_1Parser_1_1SyntaxError.html index 5793c72c..a6ca2b97 100644 --- a/docs/api/html/da/dc4/classTBela_1_1CSS_1_1Parser_1_1SyntaxError.html +++ b/docs/api/html/da/dc4/classTBela_1_1CSS_1_1Parser_1_1SyntaxError.html @@ -94,7 +94,7 @@
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Parser/SyntaxError.php
  • +
  • src/Parser/SyntaxError.php
diff --git a/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.html b/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.html index 907165c0..c04dc370 100644 --- a/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.html +++ b/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.html @@ -83,6 +83,7 @@ - + - - + + + + + + + + + + + + + + +

Public Member Functions

render (array $options=[])
 render (array $options=[])
 
getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value\CssFunction
 getValue ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Static Public Member Functions

static doRender (object $data, array $options=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- + + + + + + + + + + + + +

Static Protected Member Functions

-static validate ($data)
static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+string $hash = null
 
- Static Protected Attributes inherited from TBela\CSS\Value
+static array $defaults = []
 
+static array $keywords = []
 
+static array $cache = []
 
+

Member Function Documentation

+ +

◆ doRender()

+ +
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
static TBela\CSS\Value\CssUrl::doRender (object $data,
array $options = [] 
)
+
+static
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value\CssFunction.

+ +
+
+ +

◆ render()

+ +
+
+ + + + + + + + +
TBela\CSS\Value\CssUrl::render (array $options = [])
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value\CssFunction.

+ +
+
+ +

◆ validate()

+ +
+
+ + + + + +
+ + + + + + + + +
static TBela\CSS\Value\CssUrl::validate ( $data)
+
+staticprotected
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value\CssFunction.

+ +
+

The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Value/CssUrl.php
  • +
  • src/Value/CssUrl.php
diff --git a/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.js b/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.js index 620746f4..3e467956 100644 --- a/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.js +++ b/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.js @@ -1,5 +1,4 @@ var classTBela_1_1CSS_1_1Value_1_1CssUrl = [ - [ "getHash", "da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.html#a5132ec226f00530b73e03946437c488a", null ], [ "render", "da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.html#a786765ec6d134cb4e991999acfc6a9f6", null ] ]; \ No newline at end of file diff --git a/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.png b/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.png index 6e72b789..7265a0ba 100644 Binary files a/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.png and b/docs/api/html/da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.png differ diff --git a/docs/api/html/da/df5/classTBela_1_1CSS_1_1Query_1_1Parser.html b/docs/api/html/da/df5/classTBela_1_1CSS_1_1Query_1_1Parser.html index e31f5a7d..2055e025 100644 --- a/docs/api/html/da/df5/classTBela_1_1CSS_1_1Query_1_1Parser.html +++ b/docs/api/html/da/df5/classTBela_1_1CSS_1_1Query_1_1Parser.html @@ -371,7 +371,7 @@

 
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Query/TokenSelectorValueAttributeFunctionEquals.php
  • +
  • src/Query/TokenSelectorValueAttributeFunctionEquals.php
diff --git a/docs/api/html/da/dff/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEquals.png b/docs/api/html/da/dff/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEquals.png index e3fa7437..2371f20a 100644 Binary files a/docs/api/html/da/dff/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEquals.png and b/docs/api/html/da/dff/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionEquals.png differ diff --git a/docs/api/html/db/d18/classTBela_1_1CSS_1_1Value_1_1BackgroundOrigin-members.html b/docs/api/html/db/d18/classTBela_1_1CSS_1_1Value_1_1BackgroundOrigin-members.html index b8116910..7ccb2c95 100644 --- a/docs/api/html/db/d18/classTBela_1_1CSS_1_1Value_1_1BackgroundOrigin-members.html +++ b/docs/api/html/db/d18/classTBela_1_1CSS_1_1Value_1_1BackgroundOrigin-members.html @@ -93,32 +93,35 @@ $defaults (defined in
TBela\CSS\Value\BackgroundOrigin)TBela\CSS\Value\BackgroundOriginprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\BackgroundOrigin)TBela\CSS\Value\BackgroundOriginprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/db/d38/classTBela_1_1CSS_1_1Process_1_1Helper.html b/docs/api/html/db/d38/classTBela_1_1CSS_1_1Process_1_1Helper.html new file mode 100644 index 00000000..60b2d44f --- /dev/null +++ b/docs/api/html/db/d38/classTBela_1_1CSS_1_1Process_1_1Helper.html @@ -0,0 +1,113 @@ + + + + + + + +CSS: TBela\CSS\Process\Helper Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Process\Helper Class Reference
+
+
+ + + + +

+Static Public Member Functions

+static getCPUCount ()
 
+
The documentation for this class was generated from the following file:
    +
  • src/Process/Helper.php
  • +
+
+
+ + + + diff --git a/docs/api/html/db/d5f/classTBela_1_1CSS_1_1Value_1_1Operator.html b/docs/api/html/db/d5f/classTBela_1_1CSS_1_1Value_1_1Operator.html index 5fc7d9d8..223988c2 100644 --- a/docs/api/html/db/d5f/classTBela_1_1CSS_1_1Value_1_1Operator.html +++ b/docs/api/html/db/d5f/classTBela_1_1CSS_1_1Value_1_1Operator.html @@ -109,14 +109,10 @@  render (array $options=[])   - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - getHash () -   toObject ()    __toString () @@ -134,39 +130,51 @@   static matchDefaults ($token)   -static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='') -  -static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='') -  -static getType (string $token) -  +static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static indexOf (array $array, $search, int $offset=0) +  +static getType (string $token, $preserve_quotes=false) +  + + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + @@ -202,8 +210,6 @@

@inheritDoc

-

Reimplemented from TBela\CSS\Value.

- @@ -257,7 +263,7 @@

+ + + + + + +CSS: TBela\CSS\Interfaces\ValidatorInterface Interface Reference + + + + + + + + + + + + + +
+
+

Additional Inherited Members

- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+ + + + + +
+
CSS +
+
+ + + + + + + + + +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Interfaces\ValidatorInterface Interface Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Interfaces\ValidatorInterface:
+
+
+ + + + + + + +

+Public Member Functions

 validate (object $token, object $parentRule, object $parentStylesheet)
 
getError ()
 
+ + + + + + + +

+Public Attributes

const VALID = 1
 
const REMOVE = 2
 
const REJECT = 3
 
+

Member Function Documentation

+ +

◆ validate()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Interfaces\ValidatorInterface::validate (object $token,
object $parentRule,
object $parentStylesheet 
)
+
+
+

Member Data Documentation

+ +

◆ REJECT

+ +
+
+ + + + +
const TBela\CSS\Interfaces\ValidatorInterface::REJECT = 3
+
+

reject is parse error for unexpected | invalid token

+ +

Referenced by TBela\CSS\Parser\doValidate().

+ +
+
+ +

◆ REMOVE

+ +
+
+ + + + +
const TBela\CSS\Interfaces\ValidatorInterface::REMOVE = 2
+
+

the token must be removed

+ +
+
+ +

◆ VALID

+ +
+
+ + + + +
const TBela\CSS\Interfaces\ValidatorInterface::VALID = 1
+
+

the token is valid

+ +

Referenced by TBela\CSS\Parser\enterNode(), and TBela\CSS\Parser\validate().

+ +
+
+
The documentation for this interface was generated from the following file:
    +
  • src/Interfaces/ValidatorInterface.php
  • +
+
+
+ + + + diff --git a/docs/api/html/db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.js b/docs/api/html/db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.js new file mode 100644 index 00000000..4a43aaf8 --- /dev/null +++ b/docs/api/html/db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.js @@ -0,0 +1,8 @@ +var interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface = +[ + [ "getError", "db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.html#af83a53680dce73216a5247eade13af69", null ], + [ "validate", "db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.html#aa980010d4ea7d2c50d8a106135f7e202", null ], + [ "REJECT", "db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.html#ac700afe224253c7c331ce25119d2bceb", null ], + [ "REMOVE", "db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.html#a5c4e05764d5918bc1ed80c418dc612ab", null ], + [ "VALID", "db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.html#a3838e97921c40286f7d8c26733f2c1f0", null ] +]; \ No newline at end of file diff --git a/docs/api/html/db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.png b/docs/api/html/db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.png new file mode 100644 index 00000000..c57cc0ed Binary files /dev/null and b/docs/api/html/db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.png differ diff --git a/docs/api/html/db/d6a/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule-members.html b/docs/api/html/db/d6a/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule-members.html new file mode 100644 index 00000000..7269e58a --- /dev/null +++ b/docs/api/html/db/d6a/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Validator\NestingAtRule Member List
+
+ +
+ + + + diff --git a/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.html b/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.html new file mode 100644 index 00000000..8e78aa3f --- /dev/null +++ b/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\Rule Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Parser\Validator\Rule Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Parser\Validator\Rule:
+
+
+ + + + + + + + +

+Public Member Functions

 validate (object $token, object $parentRule, object $parentStylesheet)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
getError ()
 
+ + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
const VALID = 1
 
const REMOVE = 2
 
const REJECT = 3
 
+

Member Function Documentation

+ +

◆ validate()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Validator\Rule::validate (object $token,
object $parentRule,
object $parentStylesheet 
)
+
+
Parameters
+ + + + +
object$token
object$parentRule
object | null$parentStylesheet
+
+
+
Returns
int
+ +

Implements TBela\CSS\Interfaces\ValidatorInterface.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Parser/Validator/Rule.php
  • +
+
+
+ + + + diff --git a/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.js b/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.js new file mode 100644 index 00000000..3e5cb40e --- /dev/null +++ b/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule = +[ + [ "validate", "db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.html#a4f6c053e2831498f557dcb6e4a1ff856", null ] +]; \ No newline at end of file diff --git a/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.png b/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.png new file mode 100644 index 00000000..f98006fc Binary files /dev/null and b/docs/api/html/db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.png differ diff --git a/docs/api/html/db/d84/interfaceTBela_1_1CSS_1_1Query_1_1TokenInterface.html b/docs/api/html/db/d84/interfaceTBela_1_1CSS_1_1Query_1_1TokenInterface.html index 6bc6c1fa..4613ab61 100644 --- a/docs/api/html/db/d84/interfaceTBela_1_1CSS_1_1Query_1_1TokenInterface.html +++ b/docs/api/html/db/d84/interfaceTBela_1_1CSS_1_1Query_1_1TokenInterface.html @@ -171,7 +171,7 @@

+ + + + + + +CSS: TBela\CSS\Element\NestingAtRule Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Element\NestingAtRule Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Element\NestingAtRule:
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Element\NestingRule
 support (ElementInterface $child)
 
- Public Member Functions inherited from TBela\CSS\Element\Rule
 getSelector ()
 
 setSelector ($selectors)
 
 addSelector ($selector)
 
 removeSelector ($selector)
 
 addDeclaration ($name, $value)
 
 merge (Rule $rule)
 
- Public Member Functions inherited from TBela\CSS\Element\RuleList
__get ($name)
 
 addComment ($value)
 
 hasChildren ()
 
 removeChildren ()
 
 getChildren ()
 
 setChildren (array $elements)
 
 append (ElementInterface ... $elements)
 
 appendCss ($css)
 
 insert (ElementInterface $element, $position)
 
 remove (ElementInterface $element)
 
 getIterator ()
 
- Public Member Functions inherited from TBela\CSS\Element
 __construct ($ast=null, $parent=null)
 
 traverse (callable $fn, $event)
 
 query ($query)
 
 queryByClassNames ($query)
 
 getRoot ()
 
 getValue ()
 
 getRawValue ()
 
 setValue ($value)
 
 getParent ()
 
 getType ()
 
 copy ()
 
 getSrc ()
 
 getPosition ()
 
 setTrailingComments (?array $comments)
 
 getTrailingComments ()
 
 setLeadingComments (?array $comments)
 
 getLeadingComments ()
 
 deduplicate (array $options=['allow_duplicate_rules'=>['font-face']])
 
setAst (ElementInterface $element)
 
 getAst ()
 
 jsonSerialize ()
 
 __toString ()
 
 __clone ()
 
 toObject ()
 
- Public Member Functions inherited from TBela\CSS\Query\QueryInterface
 query (string $query)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\RuleListInterface
 computeShortHand ()
 
- Static Public Member Functions inherited from TBela\CSS\Element
static getInstance ($ast)
 
static from ($css, array $options=[])
 
static fromUrl ($url, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Element\Rule
parseSelector ($selectors)
 
- Protected Member Functions inherited from TBela\CSS\Element
 setComments (?array $comments, $type)
 
 computeSignature ()
 
 deduplicateDeclarations (array $options=[])
 
- Protected Attributes inherited from TBela\CSS\Element
+object $ast = null
 
RuleListInterface $parent = null
 
+array $rawValue = null
 
+
The documentation for this class was generated from the following file:
    +
  • src/Element/NestingAtRule.php
  • +
+
+
+ + + + diff --git a/docs/api/html/db/d88/classTBela_1_1CSS_1_1Element_1_1NestingAtRule.png b/docs/api/html/db/d88/classTBela_1_1CSS_1_1Element_1_1NestingAtRule.png new file mode 100644 index 00000000..97d208aa Binary files /dev/null and b/docs/api/html/db/d88/classTBela_1_1CSS_1_1Element_1_1NestingAtRule.png differ diff --git a/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.html b/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.html new file mode 100644 index 00000000..3446410f --- /dev/null +++ b/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\NestingMedialRule Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Parser\Validator\NestingMedialRule Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Parser\Validator\NestingMedialRule:
+
+
+ + + + + + + + +

+Public Member Functions

 validate (object $token, object $parentRule, object $parentStylesheet)
 
- Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
getError ()
 
+ + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
const VALID = 1
 
const REMOVE = 2
 
const REJECT = 3
 
+

Member Function Documentation

+ +

◆ validate()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
TBela\CSS\Parser\Validator\NestingMedialRule::validate (object $token,
object $parentRule,
object $parentStylesheet 
)
+
+
Parameters
+ + + + +
object$token
object$parentRule
object | null$parentStylesheet
+
+
+
Returns
int
+ +

Implements TBela\CSS\Interfaces\ValidatorInterface.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Parser/Validator/NestingMedialRule.php
  • +
+
+
+ + + + diff --git a/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.js b/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.js new file mode 100644 index 00000000..6707c3b8 --- /dev/null +++ b/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule = +[ + [ "validate", "db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.html#a7725fcefe89d93b43184aad880b890a8", null ] +]; \ No newline at end of file diff --git a/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.png b/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.png new file mode 100644 index 00000000..5e4e9051 Binary files /dev/null and b/docs/api/html/db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.png differ diff --git a/docs/api/html/db/de0/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression.html b/docs/api/html/db/de0/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression.html index f42cd4f3..da4643f2 100644 --- a/docs/api/html/db/de0/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression.html +++ b/docs/api/html/db/de0/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression.html @@ -106,17 +106,11 @@ Public Member Functions

 render (array $options=[])   - getHash () -  - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - match (string $type) -   toObject ()    __toString () @@ -134,39 +128,51 @@   static matchDefaults ($token)   -static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='') -  -static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='') -  -static getType (string $token) -  +static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static indexOf (array $array, $search, int $offset=0) +  +static getType (string $token, $preserve_quotes=false) +  + + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + @@ -185,26 +191,6 @@

Additional Inherited Members

- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
 

Member Function Documentation

- -

◆ getHash()

- -
-
- - - - - - - -
TBela\CSS\Value\CssParenthesisExpression::getHash ()
-
-

compute the hash value

Returns
string|null
- -

Reimplemented from TBela\CSS\Value.

- -
-

◆ render()

@@ -268,7 +254,7 @@

$defaults (defined in TBela\CSS\Value\FontWeight)TBela\CSS\Value\FontWeightprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value\FontWeight)TBela\CSS\Value\FontWeightprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse($string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Value\FontWeightprotectedstatic - TBela::CSS::Value::doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\FontWeight + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse($string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Value\FontWeightprotectedstatic + TBela::CSS::Value::doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[]) (defined in TBela\CSS\Value\FontWeight)TBela\CSS\Value\FontWeightstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getClassName(string $type)TBela\CSS\Valuestatic getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic - jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value - keywords()TBela\CSS\Value\FontWeightstatic - match($type)TBela\CSS\Value\FontWeight - TBela::CSS::Value::match(string $type)TBela\CSS\Value - matchDefaults($token)TBela\CSS\Valueprotectedstatic - matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic - matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\FontWeightstatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic - reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic - render(array $options=[])TBela\CSS\Value\FontWeight + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic + jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value + keywords()TBela\CSS\Value\FontWeightstatic + match(object $data, $type)TBela\CSS\Value\FontWeightstatic + TBela::CSS::Value::match(object $data, string $type)TBela\CSS\Valuestatic + matchDefaults($token)TBela\CSS\Valueprotectedstatic + matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic + matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\FontWeightstatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic + render(array $options=[])TBela\CSS\Value\FontWeight + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic toObject()TBela\CSS\Value type()TBela\CSS\Valueprotectedstatic validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.html b/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.html new file mode 100644 index 00000000..a6fb2ef4 --- /dev/null +++ b/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.html @@ -0,0 +1,315 @@ + + + + + + + +CSS: TBela\CSS\Value\InvalidCssString Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TBela\CSS\Value\InvalidCssString Class Reference
+
+
+
+ + Inheritance diagram for TBela\CSS\Value\InvalidCssString:
+
+
+ + + + + + + + + + + + + + + + + + +

+Public Member Functions

 getValue ()
 
 render (array $options=[])
 
- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Static Public Member Functions

static doRecover (object $data)
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
+ + + + + + + + + + + + + + +

+Static Protected Member Functions

static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+string $hash = null
 
- Static Protected Attributes inherited from TBela\CSS\Value
+static array $defaults = []
 
+static array $keywords = []
 
+static array $cache = []
 
+

Member Function Documentation

+ +

◆ doRecover()

+ +
+
+ + + + + +
+ + + + + + + + +
static TBela\CSS\Value\InvalidCssString::doRecover (object $data)
+
+static
+
+

recover an invalid token

+ +

Implements TBela\CSS\Interfaces\InvalidTokenInterface.

+ +
+
+ +

◆ getValue()

+ +
+
+ + + + + + + +
TBela\CSS\Value\InvalidCssString::getValue ()
+
+

@inheritDoc

+ +
+
+ +

◆ render()

+ +
+
+ + + + + + + + +
TBela\CSS\Value\InvalidCssString::render (array $options = [])
+
+

@inheritDoc @ignore

+ +

Reimplemented from TBela\CSS\Value.

+ +
+
+ +

◆ validate()

+ +
+
+ + + + + +
+ + + + + + + + +
static TBela\CSS\Value\InvalidCssString::validate ( $data)
+
+staticprotected
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/Value/InvalidCssString.php
  • +
+
+
+ + + + diff --git a/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.js b/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.js new file mode 100644 index 00000000..50c991d7 --- /dev/null +++ b/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.js @@ -0,0 +1,5 @@ +var classTBela_1_1CSS_1_1Value_1_1InvalidCssString = +[ + [ "getValue", "db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.html#ab34f6085e6b9037f6be555b3bc266af9", null ], + [ "render", "db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.html#a223e19988bc767336ce6a1130b77cc4e", null ] +]; \ No newline at end of file diff --git a/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.png b/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.png new file mode 100644 index 00000000..6204d77a Binary files /dev/null and b/docs/api/html/db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.png differ diff --git a/docs/api/html/dc/d0a/classTBela_1_1CSS_1_1Value_1_1Font.html b/docs/api/html/dc/d0a/classTBela_1_1CSS_1_1Value_1_1Font.html index b50c0d89..5a16e69a 100644 --- a/docs/api/html/dc/d0a/classTBela_1_1CSS_1_1Value_1_1Font.html +++ b/docs/api/html/dc/d0a/classTBela_1_1CSS_1_1Value_1_1Font.html @@ -125,18 +125,11 @@ - - - - - - - @@ -150,32 +143,44 @@ + + + + - - + + + + + + + + + + - - - - - - + + + + + + - - + + - - + + @@ -183,10 +188,10 @@ - - - - + + + + @@ -231,7 +236,7 @@

TBela\CSS\Value\CssSrcFormat, including all inherited members.

Additional Inherited Members

- Public Member Functions inherited from TBela\CSS\Value\ShortHand
 getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __destruct ()
 
 __get ($name)
 
 __isset ($name)
 
 match (string $type)
 
 render (array $options=[])
 
 toObject ()
static matchPattern (array $tokens)
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
static getInstance ($data)
 
static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?Value $value, array $options=[])
 
static getRGBValue (Value $value)
 
static getAngleValue (?Value $value, array $options=[])
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
- Protected Member Functions inherited from TBela\CSS\Value
 __construct ($data)
 
 __construct (object $data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value\ShortHand
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
 
static validate ($data)
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
 
static getType (string $token)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
- - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
getHash() (defined in TBela\CSS\Value\CssSrcFormat)TBela\CSS\Value\CssSrcFormat
render(array $options=[]) (defined in TBela\CSS\Value\CssSrcFormat)TBela\CSS\Value\CssSrcFormat
validate($data) (defined in TBela\CSS\Value\CssSrcFormat)TBela\CSS\Value\CssSrcFormatprotectedstatic
$cache (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$dataTBela\CSS\Valueprotected
$defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
$keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
__construct(object $data)TBela\CSS\Valueprotected
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
doRender(object $data, array $options=[])TBela\CSS\Value\CssFunctionstatic
equals(array $value, array $otherValue)TBela\CSS\Valuestatic
escape($value)TBela\CSS\Valuestatic
format($string, ?array &$comments=null)TBela\CSS\Valuestatic
getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(object $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
getValue()TBela\CSS\Value\CssFunction
indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
keywords()TBela\CSS\Valuestatic
match(object $data, string $type)TBela\CSS\Valuestatic
matchDefaults($token)TBela\CSS\Valueprotectedstatic
matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic
parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
render(array $options=[])TBela\CSS\Value\CssSrcFormat
renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Value\CssSrcFormatprotectedstatic
diff --git a/docs/api/html/dc/d63/classTBela_1_1CSS_1_1Property_1_1Property-members.html b/docs/api/html/dc/d63/classTBela_1_1CSS_1_1Property_1_1Property-members.html index 2c4e8faf..625246f7 100644 --- a/docs/api/html/dc/d63/classTBela_1_1CSS_1_1Property_1_1Property-members.html +++ b/docs/api/html/dc/d63/classTBela_1_1CSS_1_1Property_1_1Property-members.html @@ -93,20 +93,23 @@ $trailingcomments (defined in TBela\CSS\Property\Property)TBela\CSS\Property\Propertyprotected $type (defined in TBela\CSS\Property\Property)TBela\CSS\Property\Propertyprotected $value (defined in TBela\CSS\Property\Property)TBela\CSS\Property\Propertyprotected - __construct($name)TBela\CSS\Property\Property - __toString()TBela\CSS\Property\Property - getAst()TBela\CSS\Property\Property - getHash()TBela\CSS\Property\Property + $vendor (defined in TBela\CSS\Property\Property)TBela\CSS\Property\Propertyprotected + __construct($name)TBela\CSS\Property\Property + __toString()TBela\CSS\Property\Property + getAst()TBela\CSS\Property\Property getLeadingComments()TBela\CSS\Property\Property - getName()TBela\CSS\Property\Property + getName(bool $vendor=true)TBela\CSS\Property\Property getTrailingComments()TBela\CSS\Property\Property getType()TBela\CSS\Property\Property getValue()TBela\CSS\Property\Property - render(array $options=[])TBela\CSS\Property\Property - setLeadingComments(?array $comments)TBela\CSS\Property\Property + getVendor()TBela\CSS\Property\Property + render(array $options=[])TBela\CSS\Property\Property + setLeadingComments(?array $comments)TBela\CSS\Property\Property + setName($name)TBela\CSS\Property\Property setTrailingComments(?array $comments)TBela\CSS\Property\Property setValue($value)TBela\CSS\Property\Property - toObject()TBela\CSS\Interfaces\ObjectInterface + setVendor($vendor)TBela\CSS\Property\Property + toObject()TBela\CSS\Interfaces\ObjectInterface diff --git a/docs/api/html/dc/d6c/classTBela_1_1CSS_1_1Value_1_1Number-members.html b/docs/api/html/dc/d6c/classTBela_1_1CSS_1_1Value_1_1Number-members.html index d554a1e7..59b1c053 100644 --- a/docs/api/html/dc/d6c/classTBela_1_1CSS_1_1Value_1_1Number-members.html +++ b/docs/api/html/dc/d6c/classTBela_1_1CSS_1_1Value_1_1Number-members.html @@ -94,32 +94,37 @@ $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic __construct($data)TBela\CSS\Value\Numberprotected - __destruct()TBela\CSS\Value + TBela::CSS::Value::__construct(object $data)TBela\CSS\Valueprotected __get($name)TBela\CSS\Value __isset($name)TBela\CSS\Value __toString()TBela\CSS\Value - compress(string $value)TBela\CSS\Value\Numberstatic - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + compress(string $value, array $options=[])TBela\CSS\Value\Numberstatic + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[]) (defined in TBela\CSS\Value\Number)TBela\CSS\Value\Numberstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\Number - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value\Number + match(object $data, string $type)TBela\CSS\Value\Numberstatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\Number - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Value\Numberprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Value\Numberprotectedstatic diff --git a/docs/api/html/dc/d81/classTBela_1_1CSS_1_1Value_1_1Comment-members.html b/docs/api/html/dc/d81/classTBela_1_1CSS_1_1Value_1_1Comment-members.html index 14ae1f16..498b02c0 100644 --- a/docs/api/html/dc/d81/classTBela_1_1CSS_1_1Value_1_1Comment-members.html +++ b/docs/api/html/dc/d81/classTBela_1_1CSS_1_1Value_1_1Comment-members.html @@ -93,32 +93,35 @@ $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\Comment - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\Comment - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Value\Commentprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Value\Commentprotectedstatic diff --git a/docs/api/html/dc/d98/classTBela_1_1CSS_1_1Value_1_1BackgroundImage-members.html b/docs/api/html/dc/d98/classTBela_1_1CSS_1_1Value_1_1BackgroundImage-members.html index ea8b587d..4bbde33a 100644 --- a/docs/api/html/dc/d98/classTBela_1_1CSS_1_1Value_1_1BackgroundImage-members.html +++ b/docs/api/html/dc/d98/classTBela_1_1CSS_1_1Value_1_1BackgroundImage-members.html @@ -88,11 +88,41 @@

This is the complete list of members for TBela\CSS\Value\BackgroundImage, including all inherited members.

+ + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$cache (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
$dataTBela\CSS\Valueprotected
$defaults (defined in TBela\CSS\Value\BackgroundImage)TBela\CSS\Value\BackgroundImagestatic
$keywords (defined in TBela\CSS\Value\BackgroundImage)TBela\CSS\Value\BackgroundImagestatic
getHash()TBela\CSS\Value\BackgroundImage
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[]) (defined in TBela\CSS\Value\BackgroundImage)TBela\CSS\Value\BackgroundImagestatic
render(array $options=[]) (defined in TBela\CSS\Value\BackgroundImage)TBela\CSS\Value\BackgroundImage
$hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
$keywords (defined in TBela\CSS\Value\BackgroundImage)TBela\CSS\Value\BackgroundImagestatic
__construct(object $data)TBela\CSS\Valueprotected
__get($name)TBela\CSS\Value
__isset($name)TBela\CSS\Value
__toString()TBela\CSS\Value
doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
doRender(object $data, array $options=[])TBela\CSS\Value\BackgroundImagestatic
equals(array $value, array $otherValue)TBela\CSS\Valuestatic
escape($value)TBela\CSS\Valuestatic
format($string, ?array &$comments=null)TBela\CSS\Valuestatic
getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getClassName(string $type)TBela\CSS\Valuestatic
getInstance($data)TBela\CSS\Valuestatic
getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
getRGBValue(object $value)TBela\CSS\Valuestatic
getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
getValue()TBela\CSS\Value\CssFunction
indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
keywords()TBela\CSS\Valuestatic
match(object $data, string $type)TBela\CSS\Valuestatic
matchDefaults($token)TBela\CSS\Valueprotectedstatic
matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\BackgroundImagestatic
parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
render(array $options=[])TBela\CSS\Value\BackgroundImage
renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
toObject()TBela\CSS\Value
type()TBela\CSS\Valueprotectedstatic
validate($data)TBela\CSS\Value\BackgroundImageprotectedstatic
diff --git a/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.html b/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.html index 09fea648..cdf71b13 100644 --- a/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.html +++ b/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.html @@ -97,22 +97,71 @@ + + +TBela\CSS\Value\CssFunction +TBela\CSS\Value +TBela\CSS\Interfaces\ObjectInterface + + - + - - + + + + + + + + + + + + + +

Public Member Functions

render (array $options=[])
 render (array $options=[])
 
 getHash ()
 
- Public Member Functions inherited from TBela\CSS\Value\CssFunction
 getValue ()
 
- Public Member Functions inherited from TBela\CSS\Value
 __get ($name)
 
 __isset ($name)
 
 toObject ()
 
 __toString ()
 
jsonSerialize ()
 
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Static Public Member Functions

-static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
static doRender (object $data, array $options=[])
 
static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
 
- Static Public Member Functions inherited from TBela\CSS\Value
static renderTokens (array $tokens, array $options=[], $join=null)
 
static match (object $data, string $type)
 
static getClassName (string $type)
 
static getInstance ($data)
 
static equals (array $value, array $otherValue)
 
static format ($string, ?array &$comments=null)
 
static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static reduce (array $tokens, array $options=[])
 
static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static escape ($value)
 
static keywords ()
 
static matchKeyword (string $string, array $keywords=null)
 
static getNumericValue (?object $value, array $options=[])
 
static getRGBValue (object $value)
 
static getAngleValue (?object $value, array $options=[])
 
@@ -127,24 +176,180 @@ Static Protected Member Functions + + + + + + + + + + + +

Static Public Attributes

static validate ($data)
 
- Static Protected Member Functions inherited from TBela\CSS\Value
static type ()
 
static matchDefaults ($token)
 
static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
 
static indexOf (array $array, $search, int $offset=0)
 
static getType (string $token, $preserve_quotes=false)
 
+ + + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from TBela\CSS\Value
 __construct (object $data)
 
- Protected Attributes inherited from TBela\CSS\Value
stdClass $data = null
 
+string $hash = null
 
- Static Protected Attributes inherited from TBela\CSS\Value
+static array $defaults = []
 
+static array $keywords = []
 
+static array $cache = []
 

Member Function Documentation

- -

◆ getHash()

+ +

◆ doRender()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
static TBela\CSS\Value\BackgroundImage::doRender (object $data,
array $options = [] 
)
+
+static
+
+

@inheritDoc

+ +

Reimplemented from TBela\CSS\Value\CssFunction.

+ +
+
+ +

◆ matchToken()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
static TBela\CSS\Value\BackgroundImage::matchToken ( $token,
 $previousToken = null,
 $previousValue = null,
 $nextToken = null,
 $nextValue = null,
int $index = null,
array $tokens = [] 
)
+
+static
+
+
Parameters
+ + + + + + + + +
object$token
object | null$previousToken
object | null$previousValue
object | null$nextToken
object | null$nextValue
int | null$index
array$tokens
+
+
+
Returns
bool
+ +

Reimplemented from TBela\CSS\Value.

+ +
+
+ +

◆ render()

- + - + +
TBela\CSS\Value\BackgroundImage::getHash TBela\CSS\Value\BackgroundImage::render ()array $options = [])

@inheritDoc

+

Reimplemented from TBela\CSS\Value\CssFunction.

+
@@ -172,10 +377,12 @@

@inheritDoc

+

Reimplemented from TBela\CSS\Value\CssFunction.

+
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Value/BackgroundImage.php
  • +
  • src/Value/BackgroundImage.php
diff --git a/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.js b/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.js index 82d6f1fa..0ec5888a 100644 --- a/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.js +++ b/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.js @@ -1,5 +1,4 @@ var classTBela_1_1CSS_1_1Value_1_1BackgroundImage = [ - [ "getHash", "dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.html#ad3621fd0a96d90b79f5ec933c310c95b", null ], [ "render", "dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.html#aa29075e57fc9034c73f0f2662d30e58e", null ] ]; \ No newline at end of file diff --git a/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.png b/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.png index 29a36fee..0668ebcb 100644 Binary files a/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.png and b/docs/api/html/dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.png differ diff --git a/docs/api/html/dc/da2/classTBela_1_1CSS_1_1Value_1_1Color-members.html b/docs/api/html/dc/da2/classTBela_1_1CSS_1_1Value_1_1Color-members.html index 8aaf1d17..160240f1 100644 --- a/docs/api/html/dc/da2/classTBela_1_1CSS_1_1Value_1_1Color-members.html +++ b/docs/api/html/dc/da2/classTBela_1_1CSS_1_1Value_1_1Color-members.html @@ -93,30 +93,34 @@ $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Value\Colorprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\Color + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[])TBela\CSS\Value\Colorstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getClassName(string $type)TBela\CSS\Valuestatic getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic - jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value - keywords()TBela\CSS\Valuestatic - match($type)TBela\CSS\Value\Color - TBela::CSS::Value::match(string $type)TBela\CSS\Value - matchDefaults($token)TBela\CSS\Valueprotectedstatic - matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic - matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic - reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic - render(array $options=[])TBela\CSS\Value\Color + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic + jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value + keywords()TBela\CSS\Valuestatic + match(object $data, $type)TBela\CSS\Value\Colorstatic + TBela::CSS::Value::match(object $data, string $type)TBela\CSS\Valuestatic + matchDefaults($token)TBela\CSS\Valueprotectedstatic + matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic + matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic + render(array $options=[])TBela\CSS\Value\Color + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic rgba2cmyk_values(array $rgba_values, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic rgba2hwb_values(array $rgba_values, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic rgba2string($data, array $options=[]) (defined in TBela\CSS\Value\Color)TBela\CSS\Value\Colorstatic diff --git a/docs/api/html/dc/db2/classTBela_1_1CSS_1_1Element_1_1NestingRule-members.html b/docs/api/html/dc/db2/classTBela_1_1CSS_1_1Element_1_1NestingRule-members.html new file mode 100644 index 00000000..ada77893 --- /dev/null +++ b/docs/api/html/dc/db2/classTBela_1_1CSS_1_1Element_1_1NestingRule-members.html @@ -0,0 +1,156 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Element\NestingRule Member List
+
+
+ +

This is the complete list of members for TBela\CSS\Element\NestingRule, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
$parentTBela\CSS\Elementprotected
$rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
__clone()TBela\CSS\Element
__construct($ast=null, $parent=null)TBela\CSS\Element
__get($name) (defined in TBela\CSS\Element\RuleList)TBela\CSS\Element\RuleList
__toString()TBela\CSS\Element
addComment($value)TBela\CSS\Element\RuleList
addDeclaration($name, $value)TBela\CSS\Element\Rule
addSelector($selector)TBela\CSS\Element\Rule
append(ElementInterface ... $elements)TBela\CSS\Element\RuleList
appendCss($css)TBela\CSS\Element\RuleList
computeShortHand()TBela\CSS\Interfaces\RuleListInterface
computeSignature()TBela\CSS\Elementprotected
copy()TBela\CSS\Element
deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element
deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected
from($css, array $options=[])TBela\CSS\Elementstatic
fromUrl($url, array $options=[])TBela\CSS\Elementstatic
getAst()TBela\CSS\Element
getChildren()TBela\CSS\Element\RuleList
getInstance($ast)TBela\CSS\Elementstatic
getIterator()TBela\CSS\Element\RuleList
getLeadingComments()TBela\CSS\Element
getParent()TBela\CSS\Element
getPosition()TBela\CSS\Element
getRawValue()TBela\CSS\Element
getRoot()TBela\CSS\Element
getSelector()TBela\CSS\Element\Rule
getSrc()TBela\CSS\Element
getTrailingComments()TBela\CSS\Element
getType()TBela\CSS\Element
getValue()TBela\CSS\Element
hasChildren()TBela\CSS\Element\RuleList
insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList
jsonSerialize()TBela\CSS\Element
merge(Rule $rule)TBela\CSS\Element\Rule
parseSelector($selectors) (defined in TBela\CSS\Element\Rule)TBela\CSS\Element\Ruleprotected
query($query)TBela\CSS\Element
TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface
queryByClassNames($query)TBela\CSS\Element
remove(ElementInterface $element)TBela\CSS\Element\RuleList
removeChildren()TBela\CSS\Element\RuleList
removeSelector($selector)TBela\CSS\Element\Rule
setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element
setChildren(array $elements)TBela\CSS\Element\RuleList
setComments(?array $comments, $type)TBela\CSS\Elementprotected
setLeadingComments(?array $comments)TBela\CSS\Element
setSelector($selectors)TBela\CSS\Element\Rule
setTrailingComments(?array $comments)TBela\CSS\Element
setValue($value)TBela\CSS\Element
support(ElementInterface $child)TBela\CSS\Element\NestingRule
toObject()TBela\CSS\Element
traverse(callable $fn, $event)TBela\CSS\Element
+
+ + + + diff --git a/docs/api/html/dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.html b/docs/api/html/dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.html index 0264f552..53bbde6a 100644 --- a/docs/api/html/dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.html +++ b/docs/api/html/dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.html @@ -114,7 +114,7 @@  
The documentation for this class was generated from the following file:
    -
  • src/TBela/CSS/Event/Event.php
  • +
  • src/Event/Event.php
diff --git a/docs/api/html/dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.png b/docs/api/html/dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.png index 1c120c32..6453908f 100644 Binary files a/docs/api/html/dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.png and b/docs/api/html/dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.png differ diff --git a/docs/api/html/dc/dd7/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionColor.html b/docs/api/html/dc/dd7/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionColor.html index 2a2f9d4b..d69249b8 100644 --- a/docs/api/html/dc/dd7/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionColor.html +++ b/docs/api/html/dc/dd7/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionColor.html @@ -185,7 +185,7 @@

$ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected $parentTBela\CSS\Elementprotected - __clone()TBela\CSS\Element - __construct($ast=null, $parent=null)TBela\CSS\Element + $rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected + __clone()TBela\CSS\Element + __construct($ast=null, $parent=null)TBela\CSS\Element + __get($name) (defined in TBela\CSS\Element\RuleList)TBela\CSS\Element\RuleList __toString()TBela\CSS\Element addComment($value)TBela\CSS\Element\RuleList append(ElementInterface ... $elements)TBela\CSS\Element\RuleList @@ -110,28 +112,29 @@ getLeadingComments()TBela\CSS\Element getParent()TBela\CSS\Element getPosition()TBela\CSS\Element - getRoot()TBela\CSS\Element - getSrc()TBela\CSS\Element - getTrailingComments()TBela\CSS\Element - getType()TBela\CSS\Element - getValue()TBela\CSS\Element - hasChildren()TBela\CSS\Element\RuleList - insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList - jsonSerialize()TBela\CSS\Element - query($query)TBela\CSS\Element - TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface - queryByClassNames($query)TBela\CSS\Element - remove(ElementInterface $element)TBela\CSS\Element\RuleList - removeChildren()TBela\CSS\Element\RuleList - setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element - setChildren(array $elements)TBela\CSS\Element\RuleList - setComments(?array $comments, $type)TBela\CSS\Elementprotected - setLeadingComments(?array $comments)TBela\CSS\Element - setTrailingComments(?array $comments)TBela\CSS\Element - setValue($value)TBela\CSS\Element - support(ElementInterface $child)TBela\CSS\Element\RuleList - toObject()TBela\CSS\Element - traverse(callable $fn, $event)TBela\CSS\Element + getRawValue()TBela\CSS\Element + getRoot()TBela\CSS\Element + getSrc()TBela\CSS\Element + getTrailingComments()TBela\CSS\Element + getType()TBela\CSS\Element + getValue()TBela\CSS\Element + hasChildren()TBela\CSS\Element\RuleList + insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList + jsonSerialize()TBela\CSS\Element + query($query)TBela\CSS\Element + TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface + queryByClassNames($query)TBela\CSS\Element + remove(ElementInterface $element)TBela\CSS\Element\RuleList + removeChildren()TBela\CSS\Element\RuleList + setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element + setChildren(array $elements)TBela\CSS\Element\RuleList + setComments(?array $comments, $type)TBela\CSS\Elementprotected + setLeadingComments(?array $comments)TBela\CSS\Element + setTrailingComments(?array $comments)TBela\CSS\Element + setValue($value)TBela\CSS\Element + support(ElementInterface $child)TBela\CSS\Element\RuleList + toObject()TBela\CSS\Element + traverse(callable $fn, $event)TBela\CSS\Element diff --git a/docs/api/html/dd/d36/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule-members.html b/docs/api/html/dd/d36/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule-members.html new file mode 100644 index 00000000..7ca2c68a --- /dev/null +++ b/docs/api/html/dd/d36/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
CSS +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TBela\CSS\Parser\Validator\NestingRule Member List
+
+ +
+ + + + diff --git a/docs/api/html/dd/d5a/classTBela_1_1CSS_1_1Color.html b/docs/api/html/dd/d5a/classTBela_1_1CSS_1_1Color.html index 7d130548..b2fa8473 100644 --- a/docs/api/html/dd/d5a/classTBela_1_1CSS_1_1Color.html +++ b/docs/api/html/dd/d5a/classTBela_1_1CSS_1_1Color.html @@ -165,7 +165,7 @@
  • lch <=>

  • The documentation for this class was generated from the following file:
      -
    • src/TBela/CSS/Color.php
    • +
    • src/Color.php
    diff --git a/docs/api/html/dd/d6e/classTBela_1_1CSS_1_1Query_1_1TokenSelector.html b/docs/api/html/dd/d6e/classTBela_1_1CSS_1_1Query_1_1TokenSelector.html index c8b00d4e..bef502a2 100644 --- a/docs/api/html/dd/d6e/classTBela_1_1CSS_1_1Query_1_1TokenSelector.html +++ b/docs/api/html/dd/d6e/classTBela_1_1CSS_1_1Query_1_1TokenSelector.html @@ -144,7 +144,7 @@

     
    The documentation for this class was generated from the following file:
      -
    • src/TBela/CSS/Query/Token.php
    • +
    • src/Query/Token.php
    diff --git a/docs/api/html/dd/db4/classTBela_1_1CSS_1_1Query_1_1Token.png b/docs/api/html/dd/db4/classTBela_1_1CSS_1_1Query_1_1Token.png index d97254dd..5633a4da 100644 Binary files a/docs/api/html/dd/db4/classTBela_1_1CSS_1_1Query_1_1Token.png and b/docs/api/html/dd/db4/classTBela_1_1CSS_1_1Query_1_1Token.png differ diff --git a/docs/api/html/dd/dbb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule-members.html b/docs/api/html/dd/dbb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule-members.html new file mode 100644 index 00000000..7557b3e0 --- /dev/null +++ b/docs/api/html/dd/dbb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + + + + diff --git a/docs/api/html/dd/dbc/classTBela_1_1CSS_1_1Value_1_1BackgroundColor.html b/docs/api/html/dd/dbc/classTBela_1_1CSS_1_1Value_1_1BackgroundColor.html index fef2fa0c..0ab85cc3 100644 --- a/docs/api/html/dd/dbc/classTBela_1_1CSS_1_1Value_1_1BackgroundColor.html +++ b/docs/api/html/dd/dbc/classTBela_1_1CSS_1_1Value_1_1BackgroundColor.html @@ -105,11 +105,15 @@ - - + + + + + + @@ -126,24 +130,36 @@ static  + + + + - - + + + + + + + + + + - - - - - - + + + + + +

    Static Public Member Functions

    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
     
    - Static Public Member Functions inherited from TBela\CSS\Value\Color
    static match (object $data, $type)
     
    static doRender (object $data, array $options=[])
     
    static rgba2string ($data, array $options=[])
     
    rgba2cmyk_values (array $rgba_values, array $options=[])
     
    - Static Public Member Functions inherited from TBela\CSS\Value
    static renderTokens (array $tokens, array $options=[], $join=null)
     
    static match (object $data, string $type)
     
    static getClassName (string $type)
     
    static getInstance ($data)
     
    static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
     
    static equals (array $value, array $otherValue)
     
    static format ($string, ?array &$comments=null)
     
    static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static reduce (array $tokens, array $options=[])
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static escape ($value)
     
    static keywords ()
     
    static matchKeyword (string $string, array $keywords=null)
     
    static getNumericValue (?Value $value, array $options=[])
     
    static getRGBValue (Value $value)
     
    static getAngleValue (?Value $value, array $options=[])
     
    static getNumericValue (?object $value, array $options=[])
     
    static getRGBValue (object $value)
     
    static getAngleValue (?object $value, array $options=[])
     
    @@ -154,21 +170,13 @@ - - - - - - - - @@ -176,9 +184,9 @@ - - - + + + @@ -187,10 +195,10 @@ - - - - + + + + @@ -209,8 +217,8 @@

    Static Public Attributes

    Additional Inherited Members

    - Public Member Functions inherited from TBela\CSS\Value\Color
     getHash ()
     
     match ($type)
     
     render (array $options=[])
     
    - Public Member Functions inherited from TBela\CSS\Value
     __destruct ()
     
     __get ($name)
     
     __isset ($name)
     
     match (string $type)
     
     toObject ()
     
     __toString ()
     jsonSerialize ()
     
    - Protected Member Functions inherited from TBela\CSS\Value\Color
     __construct ($data)
     
    - Protected Member Functions inherited from TBela\CSS\Value
     __construct (object $data)
     
    - Static Protected Member Functions inherited from TBela\CSS\Value\Color
    static validate ($data)
     
     
    static matchDefaults ($token)
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
     
    static getType (string $token)
     
    static indexOf (array $array, $search, int $offset=0)
     
    static getType (string $token, $preserve_quotes=false)
     
    - Protected Attributes inherited from TBela\CSS\Value
    stdClass $data = null
     
     

    Member Function Documentation

    - -

    ◆ doParse()

    + +

    ◆ doParse()

    @@ -351,7 +356,7 @@

    Returns
    mixed|null @ignore
    -

    Referenced by TBela\CSS\Property\PropertyMap\__construct(), TBela\CSS\Value\ShortHand\doParse(), TBela\CSS\Property\PropertyList\set(), and TBela\CSS\Property\PropertyMap\set().

    +

    Referenced by TBela\CSS\Property\PropertyMap\__construct(), TBela\CSS\Value\ShortHand\doParse(), TBela\CSS\Property\Config\getProperty(), TBela\CSS\Property\PropertyMap\set(), and TBela\CSS\Property\PropertyList\set().

    @@ -295,7 +295,7 @@

    Returns
    array|mixed|null
    -

    Referenced by TBela\CSS\Property\PropertySet\__construct(), TBela\CSS\Property\PropertySet\reduce(), and TBela\CSS\Property\PropertyList\set().

    +

    Referenced by TBela\CSS\Property\PropertySet\__construct(), TBela\CSS\Value\BackgroundRepeat\doParse(), TBela\CSS\Property\PropertySet\getProperties(), and TBela\CSS\Property\PropertyList\set().

    @@ -359,7 +359,7 @@

    TBela\CSS\Value\Comment TBela\CSS\Value\CssAttribute -TBela\CSS\Value\CSSFunction +TBela\CSS\Value\CssFunction TBela\CSS\Value\CssParenthesisExpression TBela\CSS\Value\CssString TBela\CSS\Value\FontStretch TBela\CSS\Value\FontStyle TBela\CSS\Value\FontVariant TBela\CSS\Value\FontWeight -TBela\CSS\Value\LineHeight -TBela\CSS\Value\Number -TBela\CSS\Value\Operator -TBela\CSS\Value\OutlineStyle -TBela\CSS\Value\Separator -TBela\CSS\Value\ShortHand -TBela\CSS\Value\Whitespace +TBela\CSS\Value\InvalidComment +TBela\CSS\Value\InvalidCssFunction +TBela\CSS\Value\InvalidCssString +TBela\CSS\Value\LineHeight +TBela\CSS\Value\Number +TBela\CSS\Value\Operator +TBela\CSS\Value\OutlineStyle +TBela\CSS\Value\Separator +TBela\CSS\Value\ShortHand +TBela\CSS\Value\Whitespace - - - - - - @@ -151,31 +148,43 @@

    Public Member Functions

     __destruct ()
     
     __get ($name)
     
     __isset ($name)
     
     getHash ()
     
     match (string $type)
     
     render (array $options=[])
     
     toObject ()
    + + + + - - + + + + + + + + + + - - - - - - + + + + + +

    Static Public Member Functions

    static renderTokens (array $tokens, array $options=[], $join=null)
     
    static match (object $data, string $type)
     
    static getClassName (string $type)
     
    static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
     
    static getInstance ($data)
     
    static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
     
    static equals (array $value, array $otherValue)
     
    static format ($string, ?array &$comments=null)
     
    static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static reduce (array $tokens, array $options=[])
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static escape ($value)
     
    static keywords ()
     
    static matchKeyword (string $string, array $keywords=null)
     
    static getNumericValue (?Value $value, array $options=[])
     
    static getRGBValue (Value $value)
     
    static getAngleValue (?Value $value, array $options=[])
     
    static getNumericValue (?object $value, array $options=[])
     
    static getRGBValue (object $value)
     
    static getAngleValue (?object $value, array $options=[])
     
    - - + +

    Protected Member Functions

     __construct ($data)
     
     __construct (object $data)
     
    @@ -185,12 +194,12 @@ - - - - - - + + + + + +

    Static Protected Member Functions

     
    static validate ($data)
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
     
    static getType (string $token)
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static indexOf (array $array, $search, int $offset=0)
     
    static getType (string $token, $preserve_quotes=false)
     
    @@ -213,8 +222,8 @@

    Protected Attributes

     

    Constructor & Destructor Documentation

    -
    -

    ◆ __construct()

    + +

    ◆ __construct()

    - -

    ◆ __destruct()

    - -
    -
    - - - - - - - -
    TBela\CSS\Value::__destruct ()
    -
    -

    Cleanup cache @ignore

    -

    Member Function Documentation

    @@ -334,8 +323,8 @@

    -

    ◆ doParse()

    + +

    ◆ doParse()

    - -

    ◆ getAngleValue()

    + +

    ◆ equals()

    - -

    ◆ getClassName()

    + +

    ◆ escape()

    @@ -448,10 +452,10 @@

    - + - - + +
    static TBela\CSS\Value::getClassName static TBela\CSS\Value::escape (string $type) $value)
    @@ -461,9 +465,9 @@

    -

    get the class name of the specified type

    Parameters
    +

    escape multibyte sequence

    Parameters
    - +
    string$type
    string$value
    @@ -471,23 +475,125 @@

    -

    ◆ getHash()

    + +

    ◆ format()

    + + + + + +
    - + - + + + + + + + + + + + +
    TBela\CSS\Value::getHash static TBela\CSS\Value::format () $string,
    ?array & $comments = null 
    )
    +
    +static
    +
    + +

    ◆ getAngleValue()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    static TBela\CSS\Value::getAngleValue (?object $value,
    array $options = [] 
    )
    +
    +static
    +
    +
    Parameters
    + + + +
    object | null$value
    array$options
    +
    +
    +
    Returns
    string|null
    + +
    +
    + +

    ◆ getClassName()

    + +
    +
    + + + + + +
    + + + + + + + + +
    static TBela\CSS\Value::getClassName (string $type)
    +
    +static
    +
    +

    get the class name of the specified type

    Parameters
    + + +
    string$type
    +
    +
    +
    Returns
    string
    + +

    Referenced by TBela\CSS\Property\PropertySet\expand().

    @@ -522,12 +628,10 @@

    Returns
    Value

    -

    Referenced by TBela\CSS\Value\ShortHand\doParse(), and TBela\CSS\Property\PropertyMap\set().

    -

    - -

    ◆ getNumericValue()

    + +

    ◆ getNumericValue()

    @@ -538,7 +642,7 @@

    static TBela\CSS\Value::getNumericValue ( - ?Value  + ?object  $value, @@ -570,8 +674,8 @@

    -

    ◆ getRGBValue()

    + +

    ◆ getRGBValue()

    @@ -582,7 +686,7 @@

    static TBela\CSS\Value::getRGBValue ( - Value  + object  $value) @@ -595,7 +699,7 @@

    Parameters
    - +
    Value$value
    object$value
    @@ -603,8 +707,8 @@

    -

    ◆ getTokens()

    + +

    ◆ getTokens()

    parse a css value

    Parameters
    - + +
    Set | string$string
    string$string
    bool$capture_whitespace
    string$context
    string$contextName
    booll$preserve_quotes
    @@ -661,8 +772,8 @@

    -

    ◆ getType()

    + +

    ◆ getType()

    + +

    ◆ indexOf()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    static TBela\CSS\Value::indexOf (array $array,
     $search,
    int $offset = 0 
    )
    +
    +staticprotected
    +
    +
    Parameters
    + + + + +
    array$array
    mixed$search
    int$offset
    +
    +
    +
    Returns
    false|int
    +
    @@ -722,20 +895,38 @@

    -

    ◆ match()

    + +

    ◆ match()

    + + + + + +
    - + + + + + + + - + + + + +
    TBela\CSS\Value::match static TBela\CSS\Value::match (object $data,
    string $type)$type 
    )
    +
    +static

    test if this object matches the specified type

    Parameters
    @@ -745,7 +936,7 @@

    Returns
    bool
    -

    Reimplemented in TBela\CSS\Value\Number, and TBela\CSS\Value\Operator.

    +

    Reimplemented in TBela\CSS\Value\Number.

    @@ -905,12 +1096,12 @@

    Returns
    bool
    -

    Reimplemented in TBela\CSS\Value\FontWeight, TBela\CSS\Value\BackgroundPosition, TBela\CSS\Value\BackgroundSize, TBela\CSS\Value\FontStyle, TBela\CSS\Value\FontVariant, TBela\CSS\Value\BackgroundColor, TBela\CSS\Value\LineHeight, TBela\CSS\Value\OutlineWidth, TBela\CSS\Value\OutlineColor, and TBela\CSS\Value\FontFamily.

    +

    Reimplemented in TBela\CSS\Value\FontWeight, TBela\CSS\Value\BackgroundPosition, TBela\CSS\Value\BackgroundSize, TBela\CSS\Value\BackgroundImage, TBela\CSS\Value\FontStyle, TBela\CSS\Value\BackgroundColor, TBela\CSS\Value\FontVariant, TBela\CSS\Value\LineHeight, TBela\CSS\Value\OutlineWidth, TBela\CSS\Value\OutlineColor, and TBela\CSS\Value\FontFamily.

    - -

    ◆ parse()

    + +

    ◆ parse()

    @@ -921,7 +1112,7 @@

    static TBela\CSS\Value::parse

    - + @@ -946,7 +1137,13 @@

    - + + + + + + + @@ -963,16 +1160,17 @@

    Parameters

    (string   $string,
     $contextName = '' $contextName = '',
     $preserve_quotes = false 
    - + +
    string$string
    string | Set | null$property
    string | null$property
    bool$capture_whitespace
    string$context
    string$contextName
    bool$preserve_quotes
    -
    Returns
    Set
    +
    Returns
    array
    -

    Referenced by TBela\CSS\Query\TokenSelectorValueAttributeFunctionColor\__construct(), TBela\CSS\Parser\computeSignature(), TBela\CSS\Property\PropertySet\expand(), TBela\CSS\Property\Property\getValue(), TBela\CSS\Element\getValue(), TBela\CSS\Query\TokenSelectorValueAttributeFunctionColor\render(), TBela\CSS\Renderer\renderValue(), TBela\CSS\Property\PropertySet\set(), TBela\CSS\Property\PropertyMap\set(), and TBela\CSS\Property\Property\setValue().

    +

    Referenced by TBela\CSS\Query\TokenSelectorValueAttributeFunctionColor\__construct(), TBela\CSS\Parser\append(), TBela\CSS\Property\PropertySet\expand(), TBela\CSS\Parser\Lexer\load(), TBela\CSS\Query\TokenSelectorValueAttributeFunctionColor\render(), TBela\CSS\Property\PropertySet\set(), TBela\CSS\Property\PropertyMap\set(), TBela\CSS\Property\Property\setValue(), and TBela\CSS\Element\setValue().

    @@ -1047,9 +1245,57 @@

    Returns
    string
    -

    Reimplemented in TBela\CSS\Value\BackgroundPosition, TBela\CSS\Value\Color, TBela\CSS\Value\Number, TBela\CSS\Value\LineHeight, TBela\CSS\Value\FontSize, TBela\CSS\Value\CssString, TBela\CSS\Value\FontWeight, TBela\CSS\Value\FontStretch, TBela\CSS\Value\Operator, TBela\CSS\Value\Unit, TBela\CSS\Value\Whitespace, TBela\CSS\Value\Comment, TBela\CSS\Value\Separator, TBela\CSS\Value\CSSFunction, TBela\CSS\Value\CssAttribute, and TBela\CSS\Value\CssParenthesisExpression.

    +

    Reimplemented in TBela\CSS\Value\BackgroundPosition, TBela\CSS\Value\Number, TBela\CSS\Value\LineHeight, TBela\CSS\Value\FontSize, TBela\CSS\Value\CssString, TBela\CSS\Value\Color, TBela\CSS\Value\FontWeight, TBela\CSS\Value\FontStretch, TBela\CSS\Value\InvalidCssString, TBela\CSS\Value\Operator, TBela\CSS\Value\Unit, TBela\CSS\Value\Whitespace, TBela\CSS\Value\BackgroundImage, TBela\CSS\Value\InvalidCssFunction, TBela\CSS\Value\Separator, TBela\CSS\Value\Comment, TBela\CSS\Value\CssFunction, TBela\CSS\Value\InvalidComment, TBela\CSS\Value\CssAttribute, TBela\CSS\Value\CssParenthesisExpression, TBela\CSS\Value\CssUrl, and TBela\CSS\Value\CssSrcFormat.

    + +

    +
    + +

    ◆ renderTokens()

    + + @@ -1132,7 +1378,7 @@

    Returns
    bool
    -

    Reimplemented in TBela\CSS\Value\Color, TBela\CSS\Value\Number, TBela\CSS\Value\Operator, TBela\CSS\Value\Separator, TBela\CSS\Value\Unit, TBela\CSS\Value\Comment, TBela\CSS\Value\CSSFunction, TBela\CSS\Value\Whitespace, TBela\CSS\Value\CssAttribute, and TBela\CSS\Value\CssParenthesisExpression.

    +

    Reimplemented in TBela\CSS\Value\Number, TBela\CSS\Value\Operator, TBela\CSS\Value\BackgroundImage, TBela\CSS\Value\Color, TBela\CSS\Value\InvalidCssString, TBela\CSS\Value\InvalidCssFunction, TBela\CSS\Value\Separator, TBela\CSS\Value\Comment, TBela\CSS\Value\CssFunction, TBela\CSS\Value\Whitespace, TBela\CSS\Value\Unit, TBela\CSS\Value\CssAttribute, TBela\CSS\Value\CssParenthesisExpression, TBela\CSS\Value\CssUrl, and TBela\CSS\Value\CssSrcFormat.

    @@ -1158,12 +1404,12 @@

    var stdClass; @ignore

    -

    Referenced by TBela\CSS\Value\Number\__construct(), TBela\CSS\Value\CssString\__construct(), TBela\CSS\Value\Color\__construct(), TBela\CSS\Value\__construct(), TBela\CSS\Value\BackgroundPosition\__construct(), TBela\CSS\Value\CssAttribute\validate(), TBela\CSS\Value\CssParenthesisExpression\validate(), TBela\CSS\Value\CSSFunction\validate(), TBela\CSS\Value\Unit\validate(), TBela\CSS\Value\Separator\validate(), TBela\CSS\Value\BackgroundImage\validate(), TBela\CSS\Value\Operator\validate(), and TBela\CSS\Value\Number\validate().

    +

    Referenced by TBela\CSS\Value\Number\__construct(), TBela\CSS\Value\CssString\__construct(), TBela\CSS\Value\__construct(), TBela\CSS\Value\BackgroundPosition\__construct(), TBela\CSS\Value\InvalidCssFunction\doRecover(), TBela\CSS\Value\InvalidCssString\doRecover(), TBela\CSS\Value\CssUrl\doRender(), TBela\CSS\Value\CssFunction\doRender(), TBela\CSS\Value\BackgroundImage\doRender(), TBela\CSS\Value\Unit\doRender(), TBela\CSS\Value\Color\doRender(), TBela\CSS\Value\Unit\match(), TBela\CSS\Value\FontStyle\match(), TBela\CSS\Value\Number\match(), TBela\CSS\Value\CssSrcFormat\validate(), TBela\CSS\Value\CssParenthesisExpression\validate(), TBela\CSS\Value\CssUrl\validate(), TBela\CSS\Value\CssAttribute\validate(), TBela\CSS\Value\Unit\validate(), TBela\CSS\Value\CssFunction\validate(), TBela\CSS\Value\InvalidCssFunction\validate(), TBela\CSS\Value\Separator\validate(), TBela\CSS\Value\InvalidCssString\validate(), TBela\CSS\Value\Color\validate(), TBela\CSS\Value\BackgroundImage\validate(), TBela\CSS\Value\Operator\validate(), and TBela\CSS\Value\Number\validate().


    The documentation for this class was generated from the following file:
      -
    • src/TBela/CSS/Value.php
    • +
    • src/Value.php
    diff --git a/docs/api/html/dd/dca/classTBela_1_1CSS_1_1Value.js b/docs/api/html/dd/dca/classTBela_1_1CSS_1_1Value.js index 26e0381f..30448b3d 100644 --- a/docs/api/html/dd/dca/classTBela_1_1CSS_1_1Value.js +++ b/docs/api/html/dd/dca/classTBela_1_1CSS_1_1Value.js @@ -1,13 +1,10 @@ var classTBela_1_1CSS_1_1Value = [ - [ "__construct", "dd/dca/classTBela_1_1CSS_1_1Value.html#ab6c53e65e591d4c820510eeaf4b62c05", null ], - [ "__destruct", "dd/dca/classTBela_1_1CSS_1_1Value.html#ab05d856fa120055afeff70478acb4b4b", null ], + [ "__construct", "dd/dca/classTBela_1_1CSS_1_1Value.html#a6e90b9ec95022322fe02d0e6a1ff4fa1", null ], [ "__get", "dd/dca/classTBela_1_1CSS_1_1Value.html#af373eb2790ad2eeffecc2a70e8d3e85a", null ], [ "__isset", "dd/dca/classTBela_1_1CSS_1_1Value.html#adc615fb581d996feea0780cf4454012e", null ], [ "__toString", "dd/dca/classTBela_1_1CSS_1_1Value.html#ac0f06ad9860d4e38f6c0ffb7b63a85fb", null ], - [ "getHash", "dd/dca/classTBela_1_1CSS_1_1Value.html#a746ea17cfc529f665fdaf7239aa2f29c", null ], [ "jsonSerialize", "dd/dca/classTBela_1_1CSS_1_1Value.html#a0a2da145cd7af258f5767476894026a2", null ], - [ "match", "dd/dca/classTBela_1_1CSS_1_1Value.html#adf189721f243920e98f5bc254160ad83", null ], [ "render", "dd/dca/classTBela_1_1CSS_1_1Value.html#a1de9767e7adc0fa928ff57816518b9f6", null ], [ "toObject", "dd/dca/classTBela_1_1CSS_1_1Value.html#afff6cd71662dd8d598e7fcbb3561c0ac", null ], [ "$data", "dd/dca/classTBela_1_1CSS_1_1Value.html#a9993f8c895176ab2e933d4a3cb2e6643", null ], diff --git a/docs/api/html/dd/dca/classTBela_1_1CSS_1_1Value.png b/docs/api/html/dd/dca/classTBela_1_1CSS_1_1Value.png index 5002a60e..0647ee3e 100644 Binary files a/docs/api/html/dd/dca/classTBela_1_1CSS_1_1Value.png and b/docs/api/html/dd/dca/classTBela_1_1CSS_1_1Value.png differ diff --git a/docs/api/html/dd/dcf/classTBela_1_1CSS_1_1Value_1_1Unit.html b/docs/api/html/dd/dcf/classTBela_1_1CSS_1_1Value_1_1Unit.html index 6ce4ae34..034069f0 100644 --- a/docs/api/html/dd/dcf/classTBela_1_1CSS_1_1Value_1_1Unit.html +++ b/docs/api/html/dd/dcf/classTBela_1_1CSS_1_1Value_1_1Unit.html @@ -83,6 +83,7 @@
    @@ -107,18 +108,9 @@ - - - - - - - - - @@ -131,51 +123,73 @@  

    Public Member Functions

     match ($type)
     
     render (array $options=[])
     
     getHash ()
     
    - Public Member Functions inherited from TBela\CSS\Value\Number
     match (string $type)
     
    - Public Member Functions inherited from TBela\CSS\Value
     __destruct ()
     
     __get ($name)
     
     __isset ($name)
    jsonSerialize ()
     
    - - - - - - - - - - - - - - -

    -Static Protected Member Functions

    static validate ($data)
     
    - Static Protected Member Functions inherited from TBela\CSS\Value
    static type ()
     
    static matchDefaults ($token)
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
     
    static getType (string $token)
     
    - + + + + + - - + + + + + + - - + + + + + + + + + + - - - - - - + + + + + + +

    -Additional Inherited Members

    +Static Public Member Functions

    static match (object $data, $type)
     
    static doRender (object $data, array $options=[])
     
    - Static Public Member Functions inherited from TBela\CSS\Value\Number
    static compress (string $value)
     
    static match (object $data, string $type)
     
    static compress (string $value, array $options=[])
     
    - Static Public Member Functions inherited from TBela\CSS\Value
    static renderTokens (array $tokens, array $options=[], $join=null)
     
    static getClassName (string $type)
     
    static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
     
    static getInstance ($data)
     
    static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
     
    static equals (array $value, array $otherValue)
     
    static format ($string, ?array &$comments=null)
     
    static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static reduce (array $tokens, array $options=[])
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static escape ($value)
     
    static keywords ()
     
    static matchKeyword (string $string, array $keywords=null)
     
    static getNumericValue (?Value $value, array $options=[])
     
    static getRGBValue (Value $value)
     
    static getAngleValue (?Value $value, array $options=[])
     
    static getNumericValue (?object $value, array $options=[])
     
    static getRGBValue (object $value)
     
    static getAngleValue (?object $value, array $options=[])
     
    + + + + + + + + + + + + + + +

    +Static Protected Member Functions

    static validate ($data)
     
    - Static Protected Member Functions inherited from TBela\CSS\Value
    static type ()
     
    static matchDefaults ($token)
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static indexOf (array $array, $search, int $offset=0)
     
    static getType (string $token, $preserve_quotes=false)
     
    + + + + @@ -194,42 +208,77 @@

    +Additional Inherited Members

    - Protected Member Functions inherited from TBela\CSS\Value\Number
     __construct ($data)
     
    - Protected Member Functions inherited from TBela\CSS\Value
     __construct (object $data)
     
    - Protected Attributes inherited from TBela\CSS\Value
    stdClass $data = null
     
     

    Member Function Documentation

    - -

    ◆ getHash()

    + +

    ◆ doRender()

    + + + + + +
    - + - + + + + + + + + + + + +
    TBela\CSS\Value\Unit::getHash static TBela\CSS\Value\Unit::doRender ()object $data,
    array $options = [] 
    )
    +
    +static
    -

    compute the hash value

    Returns
    string|null
    - -

    Reimplemented from TBela\CSS\Value\Number.

    +
    See also
    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Types#quantities
    -

    Reimplemented in TBela\CSS\Value\FontSize, and TBela\CSS\Value\OutlineWidth.

    +

    Reimplemented from TBela\CSS\Value\Number.

    - -

    ◆ match()

    + +

    ◆ match()

    + + + + + +
    - + + + + + + + - + + + + +
    TBela\CSS\Value\Unit::match static TBela\CSS\Value\Unit::match (object $data,
     $type)$type 
    )
    +
    +static
    @@ -290,7 +337,7 @@

    + + + + + + +CSS: Member List + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    TBela\CSS\Process\Pool Member List
    +
    +
    + +

    This is the complete list of members for TBela\CSS\Process\Pool, including all inherited members.

    + + + + + + + + + + + + + + +
    $concurrency (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Poolprotected
    $count (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Poolprotected
    $queue (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Poolprotected
    $sleepTime (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Poolprotected
    __construct() (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Pool
    add(Process $process) (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Pool
    check() (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Poolprotected
    emit(string $event,... $args) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
    off(string $event, callable $callable) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
    on(string $event, callable $callable) (defined in TBela\CSS\Event\EventInterface)TBela\CSS\Event\EventInterface
    setConcurrency(int $concurrency) (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Pool
    setSleepTime(int $sleepTime) (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Pool
    wait() (defined in TBela\CSS\Process\Pool)TBela\CSS\Process\Pool
    +
    + + + + diff --git a/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.html b/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.html new file mode 100644 index 00000000..a053c670 --- /dev/null +++ b/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\Comment Class Reference + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    TBela\CSS\Parser\Validator\Comment Class Reference
    +
    +
    +
    + + Inheritance diagram for TBela\CSS\Parser\Validator\Comment:
    +
    +
    + + + + + + + + +

    +Public Member Functions

     validate (object $token, object $parentRule, object $parentStylesheet)
     
    - Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
    getError ()
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
    const VALID = 1
     
    const REMOVE = 2
     
    const REJECT = 3
     
    +

    Member Function Documentation

    + +

    ◆ validate()

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    TBela\CSS\Parser\Validator\Comment::validate (object $token,
    object $parentRule,
    object $parentStylesheet 
    )
    +
    +
    Parameters
    + + + + +
    object$token
    object$parentRule
    object | null$parentStylesheet
    +
    +
    +
    Returns
    int
    + +

    Implements TBela\CSS\Interfaces\ValidatorInterface.

    + +
    +
    +
    The documentation for this class was generated from the following file:
      +
    • src/Parser/Validator/Comment.php
    • +
    +
    +
    + + + + diff --git a/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.js b/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.js new file mode 100644 index 00000000..fc217cfd --- /dev/null +++ b/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment = +[ + [ "validate", "dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.html#af791fe6fde4197a65a562e85fd876fb2", null ] +]; \ No newline at end of file diff --git a/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.png b/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.png new file mode 100644 index 00000000..5b5ad4e9 Binary files /dev/null and b/docs/api/html/dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.png differ diff --git a/docs/api/html/dd/df5/classTBela_1_1CSS_1_1Ast_1_1Traverser.html b/docs/api/html/dd/df5/classTBela_1_1CSS_1_1Ast_1_1Traverser.html index 5ca9bbef..44b62e66 100644 --- a/docs/api/html/dd/df5/classTBela_1_1CSS_1_1Ast_1_1Traverser.html +++ b/docs/api/html/dd/df5/classTBela_1_1CSS_1_1Ast_1_1Traverser.html @@ -129,16 +129,14 @@ - - - - + +

    Protected Member Functions

     doClone ($object)
     
     process ($node, array $data)
     
     doTraverse ($node)
     
     doTraverse ($node, $level)
     

    Member Function Documentation

    - -

    ◆ doClone()

    + +

    ◆ doTraverse()

    - -

    ◆ doTraverse()

    - -
    -
    - - - @@ -201,6 +176,8 @@

    Returns
    int|\stdClass|ElementInterface @ignore
    +

    Referenced by TBela\CSS\Ast\Traverser\traverse().

    + @@ -245,6 +222,8 @@

    Returns
    int|\stdClass|ElementInterface @ignore
    +

    Referenced by TBela\CSS\Ast\Traverser\doTraverse().

    + @@ -273,7 +252,7 @@

    - - - - - - @@ -130,25 +124,40 @@ Static Public Member Functions + + + + + + - - + + + + + + + + + + - - - - - - + + + + + +
    - - - + + - + + + + +
    TBela\CSS\Ast\Traverser::doTraverse (  $node)$level 
    )
     render (array $options=[])
     
     getHash ()
     
    - Public Member Functions inherited from TBela\CSS\Value
     __destruct ()
     
     __get ($name)
     
     __isset ($name)
     
     match (string $type)
     
     toObject ()
     
     __toString ()
    static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
     
    +static doRender (object $data, array $options=[])
     
    - Static Public Member Functions inherited from TBela\CSS\Value
    static renderTokens (array $tokens, array $options=[], $join=null)
     
    static match (object $data, string $type)
     
    static getClassName (string $type)
     
    static getInstance ($data)
     
    static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
     
    static equals (array $value, array $otherValue)
     
    static format ($string, ?array &$comments=null)
     
    static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static reduce (array $tokens, array $options=[])
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static escape ($value)
     
    static keywords ()
     
    static matchKeyword (string $string, array $keywords=null)
     
    static getNumericValue (?Value $value, array $options=[])
     
    static getRGBValue (Value $value)
     
    static getAngleValue (?Value $value, array $options=[])
     
    static getNumericValue (?object $value, array $options=[])
     
    static getRGBValue (object $value)
     
    static getAngleValue (?object $value, array $options=[])
     
    @@ -171,8 +180,8 @@ - - + + @@ -180,12 +189,12 @@ - - - - - - + + + + + + @@ -194,26 +203,6 @@

    Static Protected Attributes

    Additional Inherited Members

    - Protected Member Functions inherited from TBela\CSS\Value
     __construct ($data)
     
     __construct (object $data)
     
    - Static Protected Member Functions inherited from TBela\CSS\Value
    static type ()
     
     
    static validate ($data)
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
     
    static getType (string $token)
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static indexOf (array $array, $search, int $offset=0)
     
    static getType (string $token, $preserve_quotes=false)
     
    - Protected Attributes inherited from TBela\CSS\Value
    stdClass $data = null
     
     

    Member Function Documentation

    -
    -

    ◆ getHash()

    - -
    -
    - - - - - - - -
    TBela\CSS\Value\LineHeight::getHash ()
    -
    -

    compute the hash value

    Returns
    string|null
    - -

    Reimplemented from TBela\CSS\Value.

    - -
    -

    ◆ matchToken()

    @@ -302,8 +291,6 @@

    TBela\CSS\Value.

    -

    Referenced by TBela\CSS\Value\LineHeight\getHash().

    -

    Member Data Documentation

    @@ -333,7 +320,7 @@

    + + + + + + +CSS: TBela\CSS\Parser\Validator\InvalidAtRule Class Reference + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    TBela\CSS\Parser\Validator\InvalidAtRule Class Reference
    +
    +
    +
    + + Inheritance diagram for TBela\CSS\Parser\Validator\InvalidAtRule:
    +
    +
    + + + + + + + + +

    +Public Member Functions

     validate (object $token, object $parentRule, object $parentStylesheet)
     
    - Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
    getError ()
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
    const VALID = 1
     
    const REMOVE = 2
     
    const REJECT = 3
     
    +

    Member Function Documentation

    + +

    ◆ validate()

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    TBela\CSS\Parser\Validator\InvalidAtRule::validate (object $token,
    object $parentRule,
    object $parentStylesheet 
    )
    +
    +
    Parameters
    + + + + +
    object$token
    object$parentRule
    object | null$parentStylesheet
    +
    +
    +
    Returns
    int
    + +

    Implements TBela\CSS\Interfaces\ValidatorInterface.

    + +
    +
    +
    The documentation for this class was generated from the following file:
      +
    • src/Parser/Validator/InvalidAtRule.php
    • +
    +
    +
    + + + + diff --git a/docs/api/html/de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.js b/docs/api/html/de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.js new file mode 100644 index 00000000..b6c1f3d6 --- /dev/null +++ b/docs/api/html/de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule = +[ + [ "validate", "de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.html#a55328a342a6999fad3c483d11ed86ac0", null ] +]; \ No newline at end of file diff --git a/docs/api/html/de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.png b/docs/api/html/de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.png new file mode 100644 index 00000000..4a7cd894 Binary files /dev/null and b/docs/api/html/de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.png differ diff --git a/docs/api/html/de/d42/classTBela_1_1CSS_1_1Value_1_1CssUrl-members.html b/docs/api/html/de/d42/classTBela_1_1CSS_1_1Value_1_1CssUrl-members.html index 0ac67b86..0611966a 100644 --- a/docs/api/html/de/d42/classTBela_1_1CSS_1_1Value_1_1CssUrl-members.html +++ b/docs/api/html/de/d42/classTBela_1_1CSS_1_1Value_1_1CssUrl-members.html @@ -88,9 +88,42 @@

    This is the complete list of members for TBela\CSS\Value\CssUrl, including all inherited members.

    - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    getHash() (defined in TBela\CSS\Value\CssUrl)TBela\CSS\Value\CssUrl
    render(array $options=[]) (defined in TBela\CSS\Value\CssUrl)TBela\CSS\Value\CssUrl
    validate($data) (defined in TBela\CSS\Value\CssUrl)TBela\CSS\Value\CssUrlprotectedstatic
    $cache (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
    $dataTBela\CSS\Valueprotected
    $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
    $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
    $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
    __construct(object $data)TBela\CSS\Valueprotected
    __get($name)TBela\CSS\Value
    __isset($name)TBela\CSS\Value
    __toString()TBela\CSS\Value
    doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
    doRender(object $data, array $options=[])TBela\CSS\Value\CssUrlstatic
    equals(array $value, array $otherValue)TBela\CSS\Valuestatic
    escape($value)TBela\CSS\Valuestatic
    format($string, ?array &$comments=null)TBela\CSS\Valuestatic
    getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
    getClassName(string $type)TBela\CSS\Valuestatic
    getInstance($data)TBela\CSS\Valuestatic
    getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
    getRGBValue(object $value)TBela\CSS\Valuestatic
    getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
    getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
    getValue()TBela\CSS\Value\CssFunction
    indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
    jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
    keywords()TBela\CSS\Valuestatic
    match(object $data, string $type)TBela\CSS\Valuestatic
    matchDefaults($token)TBela\CSS\Valueprotectedstatic
    matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
    matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic
    parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
    reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
    render(array $options=[])TBela\CSS\Value\CssUrl
    renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
    toObject()TBela\CSS\Value
    type()TBela\CSS\Valueprotectedstatic
    validate($data)TBela\CSS\Value\CssUrlprotectedstatic

    diff --git a/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.html b/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.html new file mode 100644 index 00000000..3b4681f6 --- /dev/null +++ b/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\NestingRule Class Reference + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    TBela\CSS\Parser\Validator\NestingRule Class Reference
    +
    +
    +
    + + Inheritance diagram for TBela\CSS\Parser\Validator\NestingRule:
    +
    +
    + + + + + + + + +

    +Public Member Functions

     validate (object $token, object $parentRule, object $parentStylesheet)
     
    - Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
    getError ()
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
    const VALID = 1
     
    const REMOVE = 2
     
    const REJECT = 3
     
    +

    Member Function Documentation

    + +

    ◆ validate()

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    TBela\CSS\Parser\Validator\NestingRule::validate (object $token,
    object $parentRule,
    object $parentStylesheet 
    )
    +
    +
    Parameters
    + + + + +
    object$token
    object$parentRule
    object | null$parentStylesheet
    +
    +
    +
    Returns
    int
    + +

    Implements TBela\CSS\Interfaces\ValidatorInterface.

    + +
    +
    +
    The documentation for this class was generated from the following file:
      +
    • src/Parser/Validator/NestingRule.php
    • +
    +
    +
    + + + + diff --git a/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.js b/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.js new file mode 100644 index 00000000..fd2e75ca --- /dev/null +++ b/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule = +[ + [ "validate", "de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.html#adfb4f6945590a743208f43ef8bd84afb", null ] +]; \ No newline at end of file diff --git a/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.png b/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.png new file mode 100644 index 00000000..91a7141f Binary files /dev/null and b/docs/api/html/de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.png differ diff --git a/docs/api/html/de/d76/classTBela_1_1CSS_1_1Value_1_1CssAttribute-members.html b/docs/api/html/de/d76/classTBela_1_1CSS_1_1Value_1_1CssAttribute-members.html index d44843c0..f1274001 100644 --- a/docs/api/html/de/d76/classTBela_1_1CSS_1_1Value_1_1CssAttribute-members.html +++ b/docs/api/html/de/d76/classTBela_1_1CSS_1_1Value_1_1CssAttribute-members.html @@ -93,29 +93,33 @@ $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic - __construct($data)TBela\CSS\Valueprotected - __destruct()TBela\CSS\Value - __get($name)TBela\CSS\Value - __isset($name)TBela\CSS\Value - __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\CssAttribute + __construct(object $data)TBela\CSS\Valueprotected + __get($name)TBela\CSS\Value + __isset($name)TBela\CSS\Value + __toString()TBela\CSS\Value + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[]) (defined in TBela\CSS\Value\CssAttribute)TBela\CSS\Value\CssAttributestatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getClassName(string $type)TBela\CSS\Valuestatic getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic - jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value - keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value - matchDefaults($token)TBela\CSS\Valueprotectedstatic - matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic - matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic - reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic - render(array $options=[])TBela\CSS\Value\CssAttribute + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic + jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value + keywords()TBela\CSS\Valuestatic + match(object $data, string $type)TBela\CSS\Valuestatic + matchDefaults($token)TBela\CSS\Valueprotectedstatic + matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic + matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic + render(array $options=[])TBela\CSS\Value\CssAttribute + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic toObject()TBela\CSS\Value type()TBela\CSS\Valueprotectedstatic validate($data)TBela\CSS\Value\CssAttributeprotectedstatic diff --git a/docs/api/html/de/d7b/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttribute.html b/docs/api/html/de/d7b/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttribute.html index 249487d2..334a05d7 100644 --- a/docs/api/html/de/d7b/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttribute.html +++ b/docs/api/html/de/d7b/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttribute.html @@ -206,7 +206,7 @@

    $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic __construct($data)TBela\CSS\Value\CssStringprotected - __destruct()TBela\CSS\Value + TBela::CSS::Value::__construct(object $data)TBela\CSS\Valueprotected __get($name)TBela\CSS\Value __isset($name)TBela\CSS\Value __toString()TBela\CSS\Value - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[]) (defined in TBela\CSS\Value\CssString)TBela\CSS\Value\CssStringstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value\CssString - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\CssString - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic diff --git a/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.html b/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.html new file mode 100644 index 00000000..7535936d --- /dev/null +++ b/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\Declaration Class Reference + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    TBela\CSS\Parser\Validator\Declaration Class Reference
    +
    +
    +
    + + Inheritance diagram for TBela\CSS\Parser\Validator\Declaration:
    +
    +
    + + + + + + + + +

    +Public Member Functions

     validate (object $token, object $parentRule, object $parentStylesheet)
     
    - Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
    getError ()
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
    const VALID = 1
     
    const REMOVE = 2
     
    const REJECT = 3
     
    +

    Member Function Documentation

    + +

    ◆ validate()

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    TBela\CSS\Parser\Validator\Declaration::validate (object $token,
    object $parentRule,
    object $parentStylesheet 
    )
    +
    +
    Parameters
    + + + + +
    object$token
    object$parentRule
    object | null$parentStylesheet
    +
    +
    +
    Returns
    int
    + +

    Implements TBela\CSS\Interfaces\ValidatorInterface.

    + +
    +
    +
    The documentation for this class was generated from the following file:
      +
    • src/Parser/Validator/Declaration.php
    • +
    +
    +
    + + + + diff --git a/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.js b/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.js new file mode 100644 index 00000000..39460c6d --- /dev/null +++ b/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration = +[ + [ "validate", "de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.html#a79c26ccadeeb5335c8ddac90aa4ef7b5", null ] +]; \ No newline at end of file diff --git a/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.png b/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.png new file mode 100644 index 00000000..a2534e28 Binary files /dev/null and b/docs/api/html/de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.png differ diff --git a/docs/api/html/de/dc6/classTBela_1_1CSS_1_1Query_1_1TokenWhitespace.html b/docs/api/html/de/dc6/classTBela_1_1CSS_1_1Query_1_1TokenWhitespace.html index ea58d395..88f47aac 100644 --- a/docs/api/html/de/dc6/classTBela_1_1CSS_1_1Query_1_1TokenWhitespace.html +++ b/docs/api/html/de/dc6/classTBela_1_1CSS_1_1Query_1_1TokenWhitespace.html @@ -158,7 +158,7 @@

    __construct(string $shorthand, array $config)TBela\CSS\Property\PropertySet __toString()TBela\CSS\Property\PropertySet expand($value)TBela\CSS\Property\PropertySetprotected - expandProperties(array $result, ?array $leadingcomments=null, ?array $trailingcomments=null) (defined in TBela\CSS\Property\PropertySet)TBela\CSS\Property\PropertySetprotected + expandProperties(array $result, ?array $leadingcomments=null, ?array $trailingcomments=null, $vendor=null)TBela\CSS\Property\PropertySetprotected getProperties()TBela\CSS\Property\PropertySet - reduce()TBela\CSS\Property\PropertySetprotected - render($join="\n")TBela\CSS\Property\PropertySet - set(string $name, $value, ?array $leadingcomments=null, ?array $trailingcomments=null)TBela\CSS\Property\PropertySet - setProperty($name, $value)TBela\CSS\Property\PropertySetprotected + has($property) (defined in TBela\CSS\Property\PropertySet)TBela\CSS\Property\PropertySet + remove($property) (defined in TBela\CSS\Property\PropertySet)TBela\CSS\Property\PropertySet + render($join="\n")TBela\CSS\Property\PropertySet + set(string $name, $value, ?array $leadingcomments=null, ?array $trailingcomments=null, $vendor=null)TBela\CSS\Property\PropertySet + setProperty($name, $value, $vendor=null)TBela\CSS\Property\PropertySetprotected diff --git a/docs/api/html/df/d08/classTBela_1_1CSS_1_1Renderer.html b/docs/api/html/df/d08/classTBela_1_1CSS_1_1Renderer.html index 055251a4..eb2a3016 100644 --- a/docs/api/html/df/d08/classTBela_1_1CSS_1_1Renderer.html +++ b/docs/api/html/df/d08/classTBela_1_1CSS_1_1Renderer.html @@ -95,58 +95,71 @@ Public Member Functions

     __construct (array $options=[])   - render (RenderableInterface $element, ?int $level=null, $parent=false) -  - renderAst ($ast, ?int $level=null) -  - save ($ast, $file) -  + render (RenderableInterface $element, ?int $level=null, bool $parent=false) +  + renderAst (object $ast, ?int $level=null) +  + save (object $ast, $file) +   setOptions (array $options)    getOptions ($name=null, $default=null)   + flatten (object $node) +  - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + +

    Protected Member Functions

     walk ($ast, $data, ?int $level=null)
     
     update ($position, string $string)
     
     addPosition ($data, $ast)
     
     renderStylesheet ($ast, $level)
     
     renderComment ($ast, ?int $level)
     
     renderSelector ($ast, $level)
     
     renderRule ($ast, $level)
     
     renderAtRuleMedia ($ast, $level)
     
     renderAtRule ($ast, $level)
     
     walk (array $tree, object $position, ?int $level=0)
     
     renderStylesheet (object $ast, ?int $level)
     
     renderRule (object $ast, ?int $level)
     
     renderAtRuleMedia (object $ast, ?int $level)
     
     renderAtRule (object $ast, ?int $level)
     
     renderCollection (object $ast, ?int $level)
     
     renderNestingAtRule (object $ast, ?int $level)
     
     renderNestingRule (object $ast, ?int $level)
     
     renderNestingMediaRule (object $ast, ?int $level)
     
     renderComment (object $ast, ?int $level)
     
     renderSelector (object $ast, ?int $level)
     
     renderDeclaration ($ast, ?int $level)
     
     renderProperty ($ast, ?int $level)
     
     renderName ($ast)
     
     renderValue ($ast)
     
     renderCollection ($ast, ?int $level)
     
     renderProperty (object $ast, ?int $level)
     
     renderName (object $ast)
     
     renderValue (object $ast)
     
     addPosition ($generated, object $ast)
     
     update (object $position, string $string)
     
     flattenChildren (object $node)
     
    - - + + + +

    Protected Attributes

    array $options
     
    $outFile = ''
     
    +string $outFile = ''
     
    array $indents = []
     
    +SourceMap $sourcemap
     

    Constructor & Destructor Documentation

    @@ -174,8 +187,8 @@

    Member Function Documentation

    - -

    ◆ addPosition()

    + +

    ◆ addPosition()

    + +

    ◆ flatten()

    + +
    +
    + + + + + + + + +
    TBela\CSS\Renderer::flatten (object $node)
    +
    Parameters
    - - + +
    \stdClass$data
    \stdClass$ast@ignore
    object$node
    +
    +
    +
    Returns
    object
    +
    Exceptions
    + +
    Exception@ignore
    -

    Referenced by TBela\CSS\Renderer\walk().

    +

    Referenced by TBela\CSS\Renderer\renderAst(), and TBela\CSS\Renderer\save().

    + +
    +
    + +

    ◆ flattenChildren()

    + +
    +
    + + + + + +
    + + + + + + + + +
    TBela\CSS\Renderer::flattenChildren (object $node)
    +
    +protected
    +
    +

    flatten nested css tree

    Parameters
    + + +
    object$node
    +
    +
    +
    Returns
    object @ignore
    @@ -255,8 +335,8 @@

    -

    ◆ render()

    + +

    ◆ render()

    @@ -276,7 +356,7 @@

    -   + bool  $parent = false  @@ -304,8 +384,8 @@

    -

    ◆ renderAst()

    + +

    ◆ renderAst()

    - -

    ◆ renderAtRule()

    + +

    ◆ renderAtRule()

    - -

    ◆ renderAtRuleMedia()

    + +

    ◆ renderAtRuleMedia()

    - -

    ◆ renderCollection()

    + +

    ◆ renderCollection()

    - -

    ◆ renderComment()

    + +

    ◆ renderComment()

    @@ -502,7 +578,7 @@

    TBela\CSS\Renderer::renderComment ( -   + object  $ast, @@ -525,7 +601,7 @@

    Parameters
    - +
    \stdClass$ast
    object$ast
    int | null$level
    @@ -578,8 +654,8 @@

    -

    ◆ renderName()

    + +

    ◆ renderName()

    + +

    ◆ renderNestingAtRule()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    TBela\CSS\Renderer::renderNestingAtRule (object $ast,
    ?int $level 
    )
    +
    +protected
    +
    +

    render a rule

    Parameters
    + + + +
    object$ast
    int | null$level
    +
    +
    +
    Returns
    string
    +
    Exceptions
    + + +
    Exception@ignore
    +
    +
    +
    - -

    ◆ renderProperty()

    + +

    ◆ renderNestingMediaRule()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    TBela\CSS\Renderer::renderNestingMediaRule (object $ast,
    ?int $level 
    )
    +
    +protected
    +
    +

    render a rule

    Parameters
    + + + +
    object$ast
    int | null$level
    +
    +
    +
    Returns
    string @ignore
    + +
    +
    + +

    ◆ renderNestingRule()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    TBela\CSS\Renderer::renderNestingRule (object $ast,
    ?int $level 
    )
    +
    +protected
    +
    +

    render a rule

    Parameters
    + + + +
    object$ast
    int | null$level
    +
    +
    +
    Returns
    string
    +
    Exceptions
    + + +
    Exception@ignore
    +
    +
    + +
    +
    + +

    ◆ renderProperty()

    - -

    ◆ renderRule()

    + +

    ◆ renderRule()

    - -

    ◆ renderSelector()

    + +

    ◆ renderSelector()

    - -

    ◆ renderStylesheet()

    + +

    ◆ renderStylesheet()

    @@ -769,13 +999,13 @@

    TBela\CSS\Renderer::renderStylesheet ( -   + object  $ast, -   + ?int  $level  @@ -792,7 +1022,7 @@

    Parameters
    - +
    \stdClass$ast
    object$ast
    int | null$level
    @@ -801,8 +1031,8 @@

    -

    ◆ renderValue()

    + +

    ◆ renderValue()

    - -

    ◆ save()

    + +

    ◆ save()

    - -

    ◆ update()

    + +

    ◆ update()

    - -

    ◆ walk()

    + +

    ◆ walk()

    @@ -1031,6 +1277,7 @@

    'convert_color' => false,

    'remove_comments' => false,
    'preserve_license' => false,
    +
    'legacy_rendering' => false,
    'compute_shorthand' => true,
    'remove_empty_nodes' => false,
    'allow_duplicate_declarations' => false
    @@ -1039,7 +1286,7 @@

    + + + + + + +CSS: Member List + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    TBela\CSS\Cli\Option Member List
    +
    +
    + +

    This is the complete list of members for TBela\CSS\Cli\Option, including all inherited members.

    + + + + + + + + + + + + + + + + + + + + + + + +
    $defaultValue (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Optionprotected
    $isset (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Optionprotected
    $multiple (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Optionprotected
    $options (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Optionprotected
    $required (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Optionprotected
    $type (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Optionprotected
    $value (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Optionprotected
    __construct(string $type=Option::AUTO, bool $multiple=true, bool $required=false, $defaultValue=null, array $options=[]) (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    addValue($value)TBela\CSS\Cli\Option
    AUTO (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    BOOL (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    FLOAT (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    getDefaultValue() (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    getOptions() (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    getType() (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    getValue() (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    INT (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    isMultiple() (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    isRequired() (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    isValueSet() (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    NUMBER (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    STRING (defined in TBela\CSS\Cli\Option)TBela\CSS\Cli\Option
    +
    + + + + diff --git a/docs/api/html/df/d18/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface-members.html b/docs/api/html/df/d18/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface-members.html index e6a297f7..3ad749cf 100644 --- a/docs/api/html/df/d18/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface-members.html +++ b/docs/api/html/df/d18/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface-members.html @@ -99,19 +99,20 @@ getLeadingComments()TBela\CSS\Interfaces\RenderableInterface getParent()TBela\CSS\Interfaces\ElementInterface getPosition()TBela\CSS\Interfaces\ElementInterface - getRoot()TBela\CSS\Interfaces\ElementInterface - getSrc()TBela\CSS\Interfaces\ElementInterface - getTrailingComments()TBela\CSS\Interfaces\RenderableInterface - getType()TBela\CSS\Interfaces\ElementInterface - getValue()TBela\CSS\Interfaces\ElementInterface - query($query)TBela\CSS\Interfaces\ElementInterface - TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface - queryByClassNames($query)TBela\CSS\Interfaces\ElementInterface - setLeadingComments(?array $comments)TBela\CSS\Interfaces\RenderableInterface - setTrailingComments(?array $comments)TBela\CSS\Interfaces\RenderableInterface - setValue($value)TBela\CSS\Interfaces\ElementInterface - toObject()TBela\CSS\Interfaces\ObjectInterface - traverse(callable $fn, $event)TBela\CSS\Interfaces\ElementInterface + getRawValue()TBela\CSS\Interfaces\ElementInterface + getRoot()TBela\CSS\Interfaces\ElementInterface + getSrc()TBela\CSS\Interfaces\ElementInterface + getTrailingComments()TBela\CSS\Interfaces\RenderableInterface + getType()TBela\CSS\Interfaces\ElementInterface + getValue()TBela\CSS\Interfaces\ElementInterface + query($query)TBela\CSS\Interfaces\ElementInterface + TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface + queryByClassNames($query)TBela\CSS\Interfaces\ElementInterface + setLeadingComments(?array $comments)TBela\CSS\Interfaces\RenderableInterface + setTrailingComments(?array $comments)TBela\CSS\Interfaces\RenderableInterface + setValue($value)TBela\CSS\Interfaces\ElementInterface + toObject()TBela\CSS\Interfaces\ObjectInterface + traverse(callable $fn, $event)TBela\CSS\Interfaces\ElementInterface

    diff --git a/docs/api/html/df/d1d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule-members.html b/docs/api/html/df/d1d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule-members.html new file mode 100644 index 00000000..81665aae --- /dev/null +++ b/docs/api/html/df/d1d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule-members.html @@ -0,0 +1,158 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    TBela\CSS\Element\NestingMediaRule Member List
    +
    +
    + +

    This is the complete list of members for TBela\CSS\Element\NestingMediaRule, including all inherited members.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    $ast (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
    $parentTBela\CSS\Elementprotected
    $rawValue (defined in TBela\CSS\Element)TBela\CSS\Elementprotected
    __clone()TBela\CSS\Element
    __construct($ast=null, $parent=null)TBela\CSS\Element
    __get($name) (defined in TBela\CSS\Element\RuleList)TBela\CSS\Element\RuleList
    __toString()TBela\CSS\Element
    addAtRule($name, $value=null, $type=0)TBela\CSS\Element\RuleSet
    addComment($value)TBela\CSS\Element\RuleList
    addDeclaration($name, $value)TBela\CSS\Element\AtRule
    addRule($selectors)TBela\CSS\Element\RuleSet
    append(ElementInterface ... $elements)TBela\CSS\Element\RuleList
    appendCss($css)TBela\CSS\Element\RuleList
    computeShortHand()TBela\CSS\Interfaces\RuleListInterface
    computeSignature()TBela\CSS\Elementprotected
    copy()TBela\CSS\Element
    deduplicate(array $options=['allow_duplicate_rules'=>['font-face']])TBela\CSS\Element
    deduplicateDeclarations(array $options=[])TBela\CSS\Elementprotected
    ELEMENT_AT_DECLARATIONS_LISTTBela\CSS\Element\AtRule
    ELEMENT_AT_NO_LIST (defined in TBela\CSS\Element\AtRule)TBela\CSS\Element\AtRule
    ELEMENT_AT_RULE_LISTTBela\CSS\Element\AtRule
    from($css, array $options=[])TBela\CSS\Elementstatic
    fromUrl($url, array $options=[])TBela\CSS\Elementstatic
    getAst()TBela\CSS\Element
    getChildren()TBela\CSS\Element\RuleList
    getInstance($ast)TBela\CSS\Elementstatic
    getIterator()TBela\CSS\Element\RuleList
    getLeadingComments()TBela\CSS\Element
    getName(bool $getVendor=true) (defined in TBela\CSS\Element\NestingMediaRule)TBela\CSS\Element\NestingMediaRule
    getParent()TBela\CSS\Element
    getPosition()TBela\CSS\Element
    getRawValue()TBela\CSS\Element
    getRoot()TBela\CSS\Element
    getSrc()TBela\CSS\Element
    getTrailingComments()TBela\CSS\Element
    getType()TBela\CSS\Element
    getValue()TBela\CSS\Element
    hasChildren()TBela\CSS\Element\RuleList
    hasDeclarations()TBela\CSS\Element\NestingMediaRule
    insert(ElementInterface $element, $position)TBela\CSS\Element\RuleList
    isLeaf()TBela\CSS\Element\NestingMediaRule
    jsonSerialize()TBela\CSS\Element\AtRule
    query($query)TBela\CSS\Element
    TBela::CSS::Query::QueryInterface::query(string $query)TBela\CSS\Query\QueryInterface
    queryByClassNames($query)TBela\CSS\Element
    remove(ElementInterface $element)TBela\CSS\Element\RuleList
    removeChildren()TBela\CSS\Element\RuleList
    setAst(ElementInterface $element) (defined in TBela\CSS\Element)TBela\CSS\Element
    setChildren(array $elements)TBela\CSS\Element\RuleList
    setComments(?array $comments, $type)TBela\CSS\Elementprotected
    setLeadingComments(?array $comments)TBela\CSS\Element
    setTrailingComments(?array $comments)TBela\CSS\Element
    setValue($value)TBela\CSS\Element
    support(ElementInterface $child)TBela\CSS\Element\NestingMediaRule
    toObject()TBela\CSS\Element
    traverse(callable $fn, $event)TBela\CSS\Element
    +
    + + + + diff --git a/docs/api/html/df/d1e/classTBela_1_1CSS_1_1Value_1_1FontVariant.html b/docs/api/html/df/d1e/classTBela_1_1CSS_1_1Value_1_1FontVariant.html index 01f807c7..e0fec214 100644 --- a/docs/api/html/df/d1e/classTBela_1_1CSS_1_1Value_1_1FontVariant.html +++ b/docs/api/html/df/d1e/classTBela_1_1CSS_1_1Value_1_1FontVariant.html @@ -82,7 +82,6 @@
    - - - - - - - - - - - - - - - - - - - - -

    -Public Member Functions

     getHash ()
     
    - Public Member Functions inherited from TBela\CSS\Value
     __destruct ()
     
     __get ($name)
     
     __isset ($name)
     
     match (string $type)
     
     render (array $options=[])
     
     toObject ()
     
     __toString ()
     
    jsonSerialize ()
     
    + + + + - - + + + + + + + + + + - - - - - - + + + + + +

    Static Public Member Functions

    static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])
     
    - Static Public Member Functions inherited from TBela\CSS\Value
    static renderTokens (array $tokens, array $options=[], $join=null)
     
    static match (object $data, string $type)
     
    static getClassName (string $type)
     
    static getInstance ($data)
     
    static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')
     
    static equals (array $value, array $otherValue)
     
    static format ($string, ?array &$comments=null)
     
    static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static reduce (array $tokens, array $options=[])
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static escape ($value)
     
    static keywords ()
     
    static matchKeyword (string $string, array $keywords=null)
     
    static getNumericValue (?Value $value, array $options=[])
     
    static getRGBValue (Value $value)
     
    static getAngleValue (?Value $value, array $options=[])
     
    static getNumericValue (?object $value, array $options=[])
     
    static getRGBValue (object $value)
     
    static getAngleValue (?object $value, array $options=[])
     
    @@ -170,9 +158,23 @@

    Static Protected Attributes

    + + + + + + + + + + + + + - - + + @@ -180,12 +182,12 @@ - - - - - - + + + + + + @@ -194,26 +196,6 @@

    Additional Inherited Members

    - Public Member Functions inherited from TBela\CSS\Value
     __get ($name)
     
     __isset ($name)
     
     render (array $options=[])
     
     toObject ()
     
     __toString ()
     
    jsonSerialize ()
     
    - Protected Member Functions inherited from TBela\CSS\Value
     __construct ($data)
     
     __construct (object $data)
     
    - Static Protected Member Functions inherited from TBela\CSS\Value
    static type ()
     
     
    static validate ($data)
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='')
     
    static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='')
     
    static getType (string $token)
     
    static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)
     
    static indexOf (array $array, $search, int $offset=0)
     
    static getType (string $token, $preserve_quotes=false)
     
    - Protected Attributes inherited from TBela\CSS\Value
    stdClass $data = null
     
     

    Member Function Documentation

    - -

    ◆ getHash()

    - -
    -
    - - - - - - - -
    TBela\CSS\Value\FontVariant::getHash ()
    -
    -

    compute the hash value

    Returns
    string|null
    - -

    Reimplemented from TBela\CSS\Value.

    - -
    -

    ◆ matchToken()

    @@ -317,7 +299,7 @@

    $x (defined in TBela\CSS\Value\BackgroundPosition)TBela\CSS\Value\BackgroundPositionprotectedstatic $y (defined in TBela\CSS\Value\BackgroundPosition)TBela\CSS\Value\BackgroundPositionprotectedstatic __construct($data)TBela\CSS\Value\BackgroundPositionprotected - __destruct()TBela\CSS\Value + TBela::CSS::Value::__construct(object $data)TBela\CSS\Valueprotected __get($name)TBela\CSS\Value __isset($name)TBela\CSS\Value __toString()TBela\CSS\Value check(array $set, $value,... $values)TBela\CSS\Value\BackgroundPositionprotectedstatic - doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic + doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + doRender(object $data, array $options=[]) (defined in TBela\CSS\Value\BackgroundPosition)TBela\CSS\Value\BackgroundPositionstatic + equals(array $value, array $otherValue)TBela\CSS\Valuestatic + escape($value)TBela\CSS\Valuestatic + format($string, ?array &$comments=null)TBela\CSS\Valuestatic + getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic getClassName(string $type)TBela\CSS\Valuestatic - getHash()TBela\CSS\Value - getInstance($data)TBela\CSS\Valuestatic - getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic - getRGBValue(Value $value)TBela\CSS\Valuestatic - getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic - getType(string $token)TBela\CSS\Valueprotectedstatic + getInstance($data)TBela\CSS\Valuestatic + getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic + getRGBValue(object $value)TBela\CSS\Valuestatic + getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic + getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic + indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value keywords()TBela\CSS\Valuestatic - match(string $type)TBela\CSS\Value + match(object $data, string $type)TBela\CSS\Valuestatic matchDefaults($token)TBela\CSS\Valueprotectedstatic matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Value\BackgroundPositionstatic - parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic + parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic render(array $options=[])TBela\CSS\Value\BackgroundPosition - toObject()TBela\CSS\Value - type()TBela\CSS\Valueprotectedstatic - validate($data)TBela\CSS\Valueprotectedstatic + renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic + toObject()TBela\CSS\Value + type()TBela\CSS\Valueprotectedstatic + validate($data)TBela\CSS\Valueprotectedstatic

    diff --git a/docs/api/html/df/d4b/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface-members.html b/docs/api/html/df/d4b/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface-members.html new file mode 100644 index 00000000..8a71c45d --- /dev/null +++ b/docs/api/html/df/d4b/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface-members.html @@ -0,0 +1,103 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    TBela\CSS\Interfaces\InvalidTokenInterface Member List
    +
    +
    + +

    This is the complete list of members for TBela\CSS\Interfaces\InvalidTokenInterface, including all inherited members.

    + + +
    doRecover(object $data)TBela\CSS\Interfaces\InvalidTokenInterfacestatic
    +
    + + + + diff --git a/docs/api/html/df/d55/classTBela_1_1CSS_1_1Value_1_1OutlineStyle.html b/docs/api/html/df/d55/classTBela_1_1CSS_1_1Value_1_1OutlineStyle.html index 9f0b8382..2a124744 100644 --- a/docs/api/html/df/d55/classTBela_1_1CSS_1_1Value_1_1OutlineStyle.html +++ b/docs/api/html/df/d55/classTBela_1_1CSS_1_1Value_1_1OutlineStyle.html @@ -119,16 +119,10 @@

    Additional Inherited Members

    - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - getHash () -  - match (string $type) -   render (array $options=[])    toObject () @@ -139,29 +133,41 @@  jsonSerialize ()   - Static Public Member Functions inherited from TBela\CSS\Value +static renderTokens (array $tokens, array $options=[], $join=null) +  +static match (object $data, string $type) +  static getClassName (string $type)   static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])   static getInstance ($data)   -static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='') -  +static equals (array $value, array $otherValue) +  +static format ($string, ?array &$comments=null) +  +static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  static reduce (array $tokens, array $options=[])   +static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static escape ($value) +  static keywords ()   static matchKeyword (string $string, array $keywords=null)   -static getNumericValue (?Value $value, array $options=[]) -  -static getRGBValue (Value $value) -  -static getAngleValue (?Value $value, array $options=[]) -  +static getNumericValue (?object $value, array $options=[]) +  +static getRGBValue (object $value) +  +static getAngleValue (?object $value, array $options=[]) +  - Protected Member Functions inherited from TBela\CSS\Value__construct ($data) -  + __construct (object $data) +  - Static Protected Member Functions inherited from TBela\CSS\Value static type ()   @@ -169,12 +175,12 @@   static validate ($data)   -static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='') -  -static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='') -  -static getType (string $token) -  +static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static indexOf (array $array, $search, int $offset=0) +  +static getType (string $token, $preserve_quotes=false) +  - Protected Attributes inherited from TBela\CSS\Value stdClass $data = null   @@ -218,7 +224,7 @@

    TBela\CSS\Interfaces\ParsableInterface TBela\CSS\Interfaces\ObjectInterface +TBela\CSS\Element\NestingRule +TBela\CSS\Element\NestingAtRule @@ -130,6 +132,9 @@ + + @@ -163,6 +168,8 @@ + + @@ -228,11 +235,14 @@ - - + + + +
     support (ElementInterface $child)
     
    - Public Member Functions inherited from TBela\CSS\Element\RuleList
    __get ($name)
     
     addComment ($value)
     
     hasChildren ()
     
     getValue ()
     
     getRawValue ()
     
     setValue ($value)
     
     getParent ()
    static fromUrl ($url, array $options=[])
     
    - Protected Attributes inherited from TBela\CSS\Element
    $ast = null
     
    +object $ast = null
     
    RuleListInterface $parent = null
     
    +array $rawValue = null
     

    Member Function Documentation

    @@ -378,7 +388,13 @@

    Returns
    $this
    +
    Returns
    Rule
    +
    Exceptions
    + + +
    Exception
    +
    +
    @@ -426,10 +442,12 @@

    TBela\CSS\Element\RuleList.

    +

    Reimplemented in TBela\CSS\Element\NestingRule.

    +
    The documentation for this class was generated from the following file:
      -
    • src/TBela/CSS/Element/Rule.php
    • +
    • src/Element/Rule.php
    diff --git a/docs/api/html/df/d73/classTBela_1_1CSS_1_1Element_1_1Rule.png b/docs/api/html/df/d73/classTBela_1_1CSS_1_1Element_1_1Rule.png index c327f5e7..31e366a7 100644 Binary files a/docs/api/html/df/d73/classTBela_1_1CSS_1_1Element_1_1Rule.png and b/docs/api/html/df/d73/classTBela_1_1CSS_1_1Element_1_1Rule.png differ diff --git a/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.html b/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.html new file mode 100644 index 00000000..b9ca9e76 --- /dev/null +++ b/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.html @@ -0,0 +1,183 @@ + + + + + + + +CSS: TBela\CSS\Parser\Validator\InvalidDeclaration Class Reference + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    TBela\CSS\Parser\Validator\InvalidDeclaration Class Reference
    +
    +
    +
    + + Inheritance diagram for TBela\CSS\Parser\Validator\InvalidDeclaration:
    +
    +
    + + + + + + + + +

    +Public Member Functions

     validate (object $token, object $parentRule, object $parentStylesheet)
     
    - Public Member Functions inherited from TBela\CSS\Interfaces\ValidatorInterface
    getError ()
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from TBela\CSS\Interfaces\ValidatorInterface
    const VALID = 1
     
    const REMOVE = 2
     
    const REJECT = 3
     
    +

    Member Function Documentation

    + +

    ◆ validate()

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    TBela\CSS\Parser\Validator\InvalidDeclaration::validate (object $token,
    object $parentRule,
    object $parentStylesheet 
    )
    +
    +
    Parameters
    + + + + +
    object$token
    object$parentRule
    object | null$parentStylesheet
    +
    +
    +
    Returns
    int
    + +

    Implements TBela\CSS\Interfaces\ValidatorInterface.

    + +
    +
    +
    The documentation for this class was generated from the following file:
      +
    • src/Parser/Validator/InvalidDeclaration.php
    • +
    +
    +
    + + + + diff --git a/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.js b/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.js new file mode 100644 index 00000000..edb67b0d --- /dev/null +++ b/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.js @@ -0,0 +1,4 @@ +var classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration = +[ + [ "validate", "df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.html#abf68e6434d8ce0accd82f89ade109abb", null ] +]; \ No newline at end of file diff --git a/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.png b/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.png new file mode 100644 index 00000000..39c25eed Binary files /dev/null and b/docs/api/html/df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.png differ diff --git a/docs/api/html/df/d88/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeString.html b/docs/api/html/df/d88/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeString.html index 2df1b0c4..58448d14 100644 --- a/docs/api/html/df/d88/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeString.html +++ b/docs/api/html/df/d88/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeString.html @@ -185,7 +185,7 @@

    Additional Inherited Members

    -- Public Member Functions inherited from TBela\CSS\Value\ShortHandgetHash () -  - Public Member Functions inherited from TBela\CSS\Value__destruct () -   __get ($name)    __isset ($name)   - match (string $type) -   render (array $options=[])    toObject () @@ -135,32 +128,44 @@ static matchPattern (array $tokens)   - Static Public Member Functions inherited from TBela\CSS\Value +static renderTokens (array $tokens, array $options=[], $join=null) +  +static match (object $data, string $type) +  static getClassName (string $type)   static matchToken ($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])   static getInstance ($data)   -static parse (string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='') -  +static equals (array $value, array $otherValue) +  +static format ($string, ?array &$comments=null) +  +static parse ($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  static reduce (array $tokens, array $options=[])   +static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  +static escape ($value) +  static keywords ()   static matchKeyword (string $string, array $keywords=null)   -static getNumericValue (?Value $value, array $options=[]) -  -static getRGBValue (Value $value) -  -static getAngleValue (?Value $value, array $options=[]) -  +static getNumericValue (?object $value, array $options=[]) +  +static getRGBValue (object $value) +  +static getAngleValue (?object $value, array $options=[]) +  - Protected Member Functions inherited from TBela\CSS\Value__construct ($data) -  + __construct (object $data) +  - Static Protected Member Functions inherited from TBela\CSS\Value\ShortHand -static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='') -  +static doParse (string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false) +  - Static Protected Member Functions inherited from TBela\CSS\Value static type ()   @@ -168,10 +173,10 @@   static validate ($data)   -static getTokens (string $string, $capture_whitespace=true, $context='', $contextName='') -  -static getType (string $token) -  +static indexOf (array $array, $search, int $offset=0) +  +static getType (string $token, $preserve_quotes=false) +  - Protected Attributes inherited from TBela\CSS\Value stdClass $data = null   @@ -193,7 +198,7 @@  
    The documentation for this class was generated from the following file:
      -
    • src/TBela/CSS/Value/Background.php
    • +
    • src/Value/Background.php
    diff --git a/docs/api/html/df/d90/classTBela_1_1CSS_1_1Value_1_1Background.png b/docs/api/html/df/d90/classTBela_1_1CSS_1_1Value_1_1Background.png index 2758768e..dc6487bb 100644 Binary files a/docs/api/html/df/d90/classTBela_1_1CSS_1_1Value_1_1Background.png and b/docs/api/html/df/d90/classTBela_1_1CSS_1_1Value_1_1Background.png differ diff --git a/docs/api/html/df/d9f/interfaceTBela_1_1CSS_1_1Query_1_1QueryInterface.html b/docs/api/html/df/d9f/interfaceTBela_1_1CSS_1_1Query_1_1QueryInterface.html index c00ed6c7..1fcc6a62 100644 --- a/docs/api/html/df/d9f/interfaceTBela_1_1CSS_1_1Query_1_1QueryInterface.html +++ b/docs/api/html/df/d9f/interfaceTBela_1_1CSS_1_1Query_1_1QueryInterface.html @@ -96,24 +96,30 @@
    -TBela\CSS\Interfaces\RenderableInterface -TBela\CSS\Interfaces\ParsableInterface -TBela\CSS\Interfaces\ObjectInterface -TBela\CSS\Interfaces\ElementInterface +TBela\CSS\Interfaces\RenderableInterface +TBela\CSS\Interfaces\ParsableInterface +TBela\CSS\Interfaces\ObjectInterface +TBela\CSS\Interfaces\ElementInterface TBela\CSS\Element -TBela\CSS\Interfaces\RuleListInterface +TBela\CSS\Interfaces\RuleListInterface TBela\CSS\Element\Comment TBela\CSS\Element\Declaration -TBela\CSS\Element\RuleList -TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList +TBela\CSS\Element\RuleList TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\Rule -TBela\CSS\Element\RuleSet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet -TBela\CSS\Element\AtRule -TBela\CSS\Element\Stylesheet +TBela\CSS\Element\RuleSet +TBela\CSS\Element\Rule +TBela\CSS\Element\RuleSet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingRule +TBela\CSS\Element\AtRule +TBela\CSS\Element\Stylesheet +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule +TBela\CSS\Element\NestingAtRule +TBela\CSS\Element\NestingMediaRule
    @@ -164,7 +170,7 @@

    - - - - - - - + + + + + + + + + - - - - - - + + + + + + - + - + - - - + + + +
    $defaults (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
    $hash (defined in TBela\CSS\Value)TBela\CSS\Valueprotected
    $keywords (defined in TBela\CSS\Value)TBela\CSS\Valueprotectedstatic
    __construct($data)TBela\CSS\Valueprotected
    __destruct()TBela\CSS\Value
    __get($name)TBela\CSS\Value
    __isset($name)TBela\CSS\Value
    __toString()TBela\CSS\Value
    doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic
    getAngleValue(?Value $value, array $options=[])TBela\CSS\Valuestatic
    __construct(object $data)TBela\CSS\Valueprotected
    __get($name)TBela\CSS\Value
    __isset($name)TBela\CSS\Value
    __toString()TBela\CSS\Value
    doParse(string $string, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
    equals(array $value, array $otherValue)TBela\CSS\Valuestatic
    escape($value)TBela\CSS\Valuestatic
    format($string, ?array &$comments=null)TBela\CSS\Valuestatic
    getAngleValue(?object $value, array $options=[])TBela\CSS\Valuestatic
    getClassName(string $type)TBela\CSS\Valuestatic
    getHash()TBela\CSS\Value
    getInstance($data)TBela\CSS\Valuestatic
    getNumericValue(?Value $value, array $options=[])TBela\CSS\Valuestatic
    getRGBValue(Value $value)TBela\CSS\Valuestatic
    getTokens(string $string, $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valueprotectedstatic
    getType(string $token)TBela\CSS\Valueprotectedstatic
    getInstance($data)TBela\CSS\Valuestatic
    getNumericValue(?object $value, array $options=[])TBela\CSS\Valuestatic
    getRGBValue(object $value)TBela\CSS\Valuestatic
    getTokens(string $string, $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
    getType(string $token, $preserve_quotes=false)TBela\CSS\Valueprotectedstatic
    indexOf(array $array, $search, int $offset=0)TBela\CSS\Valueprotectedstatic
    jsonSerialize() (defined in TBela\CSS\Value)TBela\CSS\Value
    keywords()TBela\CSS\Valuestatic
    match(string $type)TBela\CSS\Value
    match(object $data, string $type)TBela\CSS\Valuestatic
    matchDefaults($token)TBela\CSS\Valueprotectedstatic
    matchKeyword(string $string, array $keywords=null)TBela\CSS\Valuestatic
    matchToken($token, $previousToken=null, $previousValue=null, $nextToken=null, $nextValue=null, int $index=null, array $tokens=[])TBela\CSS\Valuestatic
    parse(string $string, $property=null, bool $capture_whitespace=true, $context='', $contextName='')TBela\CSS\Valuestatic
    parse($string, $property=null, bool $capture_whitespace=true, $context='', $contextName='', $preserve_quotes=false)TBela\CSS\Valuestatic
    reduce(array $tokens, array $options=[])TBela\CSS\Valuestatic
    render(array $options=[])TBela\CSS\Value\Separator
    toObject()TBela\CSS\Value
    type()TBela\CSS\Valueprotectedstatic
    validate($data)TBela\CSS\Value\Separatorprotectedstatic
    renderTokens(array $tokens, array $options=[], $join=null)TBela\CSS\Valuestatic
    toObject()TBela\CSS\Value
    type()TBela\CSS\Valueprotectedstatic
    validate($data)TBela\CSS\Value\Separatorprotectedstatic
    diff --git a/docs/api/html/df/daa/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule-members.html b/docs/api/html/df/daa/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule-members.html new file mode 100644 index 00000000..c5dca941 --- /dev/null +++ b/docs/api/html/df/daa/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule-members.html @@ -0,0 +1,107 @@ + + + + + + + +CSS: Member List + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    CSS +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + + + + diff --git a/docs/api/html/df/dec/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionBeginswith.html b/docs/api/html/df/dec/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionBeginswith.html index 9f1a5351..68e8ee66 100644 --- a/docs/api/html/df/dec/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionBeginswith.html +++ b/docs/api/html/df/dec/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionBeginswith.html @@ -125,7 +125,7 @@  
    The documentation for this class was generated from the following file:
      -
    • src/TBela/CSS/Query/TokenSelectorValueAttributeFunctionBeginswith.php
    • +
    • src/Query/TokenSelectorValueAttributeFunctionBeginswith.php
    diff --git a/docs/api/html/df/dec/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionBeginswith.png b/docs/api/html/df/dec/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionBeginswith.png index 0fff39dc..446eacce 100644 Binary files a/docs/api/html/df/dec/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionBeginswith.png and b/docs/api/html/df/dec/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueAttributeFunctionBeginswith.png differ diff --git a/docs/api/html/dir_7337e101a1a0b96acdedb8fb7f3760ca.html b/docs/api/html/dir_15f30029a8909ed3f59c87794e60d5e7.html similarity index 89% rename from docs/api/html/dir_7337e101a1a0b96acdedb8fb7f3760ca.html rename to docs/api/html/dir_15f30029a8909ed3f59c87794e60d5e7.html index bb86f4b8..7381fd77 100644 --- a/docs/api/html/dir_7337e101a1a0b96acdedb8fb7f3760ca.html +++ b/docs/api/html/dir_15f30029a8909ed3f59c87794e60d5e7.html @@ -5,7 +5,7 @@ -CSS: src/TBela/CSS/Event Directory Reference +CSS: src/Event Directory Reference @@ -62,7 +62,7 @@
    @@ -90,7 +90,7 @@
    @@ -90,7 +90,7 @@
    + + +

    +Directories

    diff --git a/docs/api/html/dir_09e498f1ecebae4cf49cf0709652573f.html b/docs/api/html/dir_6bd92bd93c0d5d9980919215b46f20a3.html similarity index 89% rename from docs/api/html/dir_09e498f1ecebae4cf49cf0709652573f.html rename to docs/api/html/dir_6bd92bd93c0d5d9980919215b46f20a3.html index 5a915789..3c7fe209 100644 --- a/docs/api/html/dir_09e498f1ecebae4cf49cf0709652573f.html +++ b/docs/api/html/dir_6bd92bd93c0d5d9980919215b46f20a3.html @@ -5,7 +5,7 @@ -CSS: src/TBela/CSS/Exceptions Directory Reference +CSS: src/Exceptions Directory Reference @@ -62,7 +62,7 @@
    @@ -90,7 +90,7 @@
    @@ -90,7 +90,7 @@
    @@ -90,7 +90,7 @@
    @@ -90,7 +90,7 @@
    @@ -82,7 +82,7 @@
    -
    CSS Directory Reference
    +
    Parser Directory Reference
    @@ -94,7 +94,7 @@
    @@ -90,7 +90,7 @@
    @@ -90,7 +90,7 @@
    @@ -82,7 +82,7 @@
    -
    TBela Directory Reference
    +
    Cli Directory Reference
    @@ -94,7 +94,7 @@ diff --git a/docs/api/html/functions_a.html b/docs/api/html/functions_a.html index 870974fa..b29e4c8f 100644 --- a/docs/api/html/functions_a.html +++ b/docs/api/html/functions_a.html @@ -88,7 +88,7 @@

    - a -

    - - +
    [detail level 123456789]
     CTBela\CSS\Color
     CTBela\CSS\Compiler
    + + - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     CTBela\CSS\Cli\Args
     CTBela\CSS\Color
     CTBela\CSS\Property\Config
     CCssFunction
     CTBela\CSS\Value\BackgroundImage
     CTBela\CSS\Value\CssSrcFormat
     CTBela\CSS\Value\CssUrl
     CTBela\CSS\Query\Evaluator
     CTBela\CSS\Event\EventInterface
     CTBela\CSS\Event\Event
     CTBela\CSS\Query\Evaluator
     CTBela\CSS\Event\EventInterface
     CTBela\CSS\Event\Event
     CTBela\CSS\Process\Pool
     CTBela\CSS\Process\Helper
     CTBela\CSS\Parser\Helper
     CTBela\CSS\Interfaces\ObjectInterface
     CTBela\CSS\Interfaces\RenderableInterface
     CTBela\CSS\Value
     CTBela\CSS\Value\Set
     CTBela\CSS\Interfaces\ParsableInterface
     CTBela\CSS\Interfaces\RenderableInterface
     CTBela\CSS\Parser
     CTBela\CSS\Query\Parser
     CTBela\CSS\Property\PropertyMap
     CTBela\CSS\Property\PropertySet
     CTBela\CSS\Interfaces\RenderablePropertyInterface
     CTBela\CSS\Property\Property
     CTBela\CSS\Renderer
     CTBela\CSS\Query\TokenInterface
     CTBela\CSS\Query\Token
     CTBela\CSS\Query\TokenList
     CTBela\CSS\Query\TokenSelectInterface
     CTBela\CSS\Query\TokenSelectorInterface
     CTBela\CSS\Query\TokenSelectorValueInterface
     CTBela\CSS\Query\TokenSelectorValue
     CTBela\CSS\Query\TokenSelectorValueAttributeExpression
     CTBela\CSS\Query\TokenSelectorValueAttributeFunction
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionColor
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionComment
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionEmpty
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionGeneric
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionNot
     CTBela\CSS\Query\TokenSelectorValueAttributeIndex
     CTBela\CSS\Query\TokenSelectorValueAttributeSelector
     CTBela\CSS\Query\TokenSelectorValueAttributeString
     CTBela\CSS\Query\TokenSelectorValueSeparator
     CTBela\CSS\Query\TokenSelectorValueWhitespace
     CTBela\CSS\Query\TokenWhitespace
     CArrayAccess
     CTBela\CSS\Interfaces\ElementInterface
     CTBela\CSS\Property\Property
     CCountable
     CTBela\CSS\Value\Set
     CException
     CTBela\CSS\Exceptions\IOException
     CTBela\CSS\Parser\SyntaxError
     CIteratorAggregate
     CTBela\CSS\Interfaces\RuleListInterface
     CTBela\CSS\Property\PropertyList
     CTBela\CSS\Value\Set
     CJsonSerializable
     CTBela\CSS\Interfaces\ElementInterface
     CTBela\CSS\Parser\Position
     CTBela\CSS\Parser\SourceLocation
     CTBela\CSS\Value
     CTBela\CSS\Value\Set
     CTBela\CSS\Interfaces\InvalidTokenInterface
     CTBela\CSS\Value\InvalidComment
     CTBela\CSS\Value\InvalidCssFunction
     CTBela\CSS\Value\InvalidCssString
     CTBela\CSS\Parser\Lexer
     CTBela\CSS\Interfaces\ObjectInterface
     CTBela\CSS\Interfaces\RenderableInterface
     CTBela\CSS\Value
     CTBela\CSS\Cli\Option
     CTBela\CSS\Interfaces\ParsableInterface
     CTBela\CSS\Interfaces\RenderableInterface
     CTBela\CSS\Parser
     CTBela\CSS\Query\Parser
     CTBela\CSS\Property\PropertyMap
     CTBela\CSS\Property\PropertySet
     CTBela\CSS\Interfaces\RenderablePropertyInterface
     CTBela\CSS\Property\Property
     CTBela\CSS\Renderer
     CTBela\CSS\Query\TokenInterface
     CTBela\CSS\Query\Token
     CTBela\CSS\Query\TokenList
     CTBela\CSS\Query\TokenSelectInterface
     CTBela\CSS\Query\TokenSelectorInterface
     CTBela\CSS\Query\TokenSelectorValueInterface
     CTBela\CSS\Query\TokenSelectorValue
     CTBela\CSS\Query\TokenSelectorValueAttributeExpression
     CTBela\CSS\Query\TokenSelectorValueAttributeFunction
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionColor
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionComment
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionEmpty
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionGeneric
     CTBela\CSS\Query\TokenSelectorValueAttributeFunctionNot
     CTBela\CSS\Query\TokenSelectorValueAttributeIndex
     CTBela\CSS\Query\TokenSelectorValueAttributeSelector
     CTBela\CSS\Query\TokenSelectorValueAttributeString
     CTBela\CSS\Query\TokenSelectorValueSeparator
     CTBela\CSS\Query\TokenSelectorValueWhitespace
     CTBela\CSS\Query\TokenWhitespace
     CTBela\CSS\Interfaces\ValidatorInterface
     CTBela\CSS\Parser\Validator\AtRule
     CTBela\CSS\Parser\Validator\Comment
     CTBela\CSS\Parser\Validator\Declaration
     CTBela\CSS\Parser\Validator\InvalidAtRule
     CTBela\CSS\Parser\Validator\InvalidComment
     CTBela\CSS\Parser\Validator\InvalidDeclaration
     CTBela\CSS\Parser\Validator\InvalidRule
     CTBela\CSS\Parser\Validator\NestingAtRule
     CTBela\CSS\Parser\Validator\NestingMedialRule
     CTBela\CSS\Parser\Validator\NestingRule
     CTBela\CSS\Parser\Validator\Rule
     CArrayAccess
     CTBela\CSS\Interfaces\ElementInterface
     CTBela\CSS\Property\Property
     CException
     CTBela\CSS\Cli\Exceptions\DuplicateArgumentException
     CTBela\CSS\Cli\Exceptions\MissingParameterException
     CTBela\CSS\Cli\Exceptions\UnknownParameterException
     CTBela\CSS\Exceptions\IOException
     CTBela\CSS\Parser\SyntaxError
     CIteratorAggregate
     CTBela\CSS\Interfaces\RuleListInterface
     CTBela\CSS\Property\PropertyList
     CJsonSerializable
     CTBela\CSS\Interfaces\ElementInterface
     CTBela\CSS\Parser\Position
     CTBela\CSS\Parser\SourceLocation
     CTBela\CSS\Value
    diff --git a/docs/api/html/hierarchy.js b/docs/api/html/hierarchy.js index ee967531..b68391ac 100644 --- a/docs/api/html/hierarchy.js +++ b/docs/api/html/hierarchy.js @@ -1,20 +1,23 @@ var hierarchy = [ + [ "TBela\\CSS\\Cli\\Args", "d8/df3/classTBela_1_1CSS_1_1Cli_1_1Args.html", null ], [ "TBela\\CSS\\Color", "dd/d5a/classTBela_1_1CSS_1_1Color.html", null ], - [ "TBela\\CSS\\Compiler", "d1/d8f/classTBela_1_1CSS_1_1Compiler.html", null ], [ "TBela\\CSS\\Property\\Config", "dd/dc1/classTBela_1_1CSS_1_1Property_1_1Config.html", null ], - [ "CssFunction", null, [ - [ "TBela\\CSS\\Value\\BackgroundImage", "dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.html", null ], - [ "TBela\\CSS\\Value\\CssSrcFormat", "d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html", null ], - [ "TBela\\CSS\\Value\\CssUrl", "da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.html", null ] - ] ], [ "TBela\\CSS\\Query\\Evaluator", "d8/d89/classTBela_1_1CSS_1_1Query_1_1Evaluator.html", null ], [ "TBela\\CSS\\Event\\EventInterface", "d0/d24/interfaceTBela_1_1CSS_1_1Event_1_1EventInterface.html", [ [ "TBela\\CSS\\Event\\Event", "dc/dc7/classTBela_1_1CSS_1_1Event_1_1Event.html", [ [ "TBela\\CSS\\Ast\\Traverser", "dd/df5/classTBela_1_1CSS_1_1Ast_1_1Traverser.html", null ] - ] ] + ] ], + [ "TBela\\CSS\\Process\\Pool", "d4/db8/classTBela_1_1CSS_1_1Process_1_1Pool.html", null ] ] ], + [ "TBela\\CSS\\Process\\Helper", "db/d38/classTBela_1_1CSS_1_1Process_1_1Helper.html", null ], [ "TBela\\CSS\\Parser\\Helper", "d3/db4/classTBela_1_1CSS_1_1Parser_1_1Helper.html", null ], + [ "TBela\\CSS\\Interfaces\\InvalidTokenInterface", "d0/da5/interfaceTBela_1_1CSS_1_1Interfaces_1_1InvalidTokenInterface.html", [ + [ "TBela\\CSS\\Value\\InvalidComment", "d8/dab/classTBela_1_1CSS_1_1Value_1_1InvalidComment.html", null ], + [ "TBela\\CSS\\Value\\InvalidCssFunction", "d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.html", null ], + [ "TBela\\CSS\\Value\\InvalidCssString", "db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.html", null ] + ] ], + [ "TBela\\CSS\\Parser\\Lexer", "d6/d42/classTBela_1_1CSS_1_1Parser_1_1Lexer.html", null ], [ "TBela\\CSS\\Interfaces\\ObjectInterface", "d6/ddb/interfaceTBela_1_1CSS_1_1Interfaces_1_1ObjectInterface.html", [ [ "TBela\\CSS\\Interfaces\\RenderableInterface", "d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.html", [ [ "TBela\\CSS\\Property\\Property", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html", [ @@ -26,9 +29,15 @@ var hierarchy = [ "TBela\\CSS\\Element\\Comment", "d6/dfd/classTBela_1_1CSS_1_1Element_1_1Comment.html", null ], [ "TBela\\CSS\\Element\\Declaration", "d8/da7/classTBela_1_1CSS_1_1Element_1_1Declaration.html", null ], [ "TBela\\CSS\\Element\\RuleList", "d7/d52/classTBela_1_1CSS_1_1Element_1_1RuleList.html", [ - [ "TBela\\CSS\\Element\\Rule", "df/d73/classTBela_1_1CSS_1_1Element_1_1Rule.html", null ], + [ "TBela\\CSS\\Element\\Rule", "df/d73/classTBela_1_1CSS_1_1Element_1_1Rule.html", [ + [ "TBela\\CSS\\Element\\NestingRule", "d2/de2/classTBela_1_1CSS_1_1Element_1_1NestingRule.html", [ + [ "TBela\\CSS\\Element\\NestingAtRule", "db/d88/classTBela_1_1CSS_1_1Element_1_1NestingAtRule.html", null ] + ] ] + ] ], [ "TBela\\CSS\\Element\\RuleSet", "d9/d56/classTBela_1_1CSS_1_1Element_1_1RuleSet.html", [ - [ "TBela\\CSS\\Element\\AtRule", "d7/d0d/classTBela_1_1CSS_1_1Element_1_1AtRule.html", null ], + [ "TBela\\CSS\\Element\\AtRule", "d7/d0d/classTBela_1_1CSS_1_1Element_1_1AtRule.html", [ + [ "TBela\\CSS\\Element\\NestingMediaRule", "d9/d7d/classTBela_1_1CSS_1_1Element_1_1NestingMediaRule.html", null ] + ] ], [ "TBela\\CSS\\Element\\Stylesheet", "d2/d6b/classTBela_1_1CSS_1_1Element_1_1Stylesheet.html", null ] ] ] ] ] @@ -51,13 +60,20 @@ var hierarchy = ] ], [ "TBela\\CSS\\Value\\Comment", "d8/d66/classTBela_1_1CSS_1_1Value_1_1Comment.html", null ], [ "TBela\\CSS\\Value\\CssAttribute", "d1/d80/classTBela_1_1CSS_1_1Value_1_1CssAttribute.html", null ], - [ "TBela\\CSS\\Value\\CSSFunction", "d1/d80/classTBela_1_1CSS_1_1Value_1_1CSSFunction.html", null ], + [ "TBela\\CSS\\Value\\CssFunction", "d9/d5b/classTBela_1_1CSS_1_1Value_1_1CssFunction.html", [ + [ "TBela\\CSS\\Value\\BackgroundImage", "dc/d9b/classTBela_1_1CSS_1_1Value_1_1BackgroundImage.html", null ], + [ "TBela\\CSS\\Value\\CssSrcFormat", "d9/d40/classTBela_1_1CSS_1_1Value_1_1CssSrcFormat.html", null ], + [ "TBela\\CSS\\Value\\CssUrl", "da/dca/classTBela_1_1CSS_1_1Value_1_1CssUrl.html", null ] + ] ], [ "TBela\\CSS\\Value\\CssParenthesisExpression", "db/de0/classTBela_1_1CSS_1_1Value_1_1CssParenthesisExpression.html", null ], [ "TBela\\CSS\\Value\\CssString", "d3/d54/classTBela_1_1CSS_1_1Value_1_1CssString.html", null ], [ "TBela\\CSS\\Value\\FontStretch", "d1/de4/classTBela_1_1CSS_1_1Value_1_1FontStretch.html", null ], [ "TBela\\CSS\\Value\\FontStyle", "d8/db9/classTBela_1_1CSS_1_1Value_1_1FontStyle.html", null ], [ "TBela\\CSS\\Value\\FontVariant", "df/d1e/classTBela_1_1CSS_1_1Value_1_1FontVariant.html", null ], [ "TBela\\CSS\\Value\\FontWeight", "d8/d56/classTBela_1_1CSS_1_1Value_1_1FontWeight.html", null ], + [ "TBela\\CSS\\Value\\InvalidComment", "d8/dab/classTBela_1_1CSS_1_1Value_1_1InvalidComment.html", null ], + [ "TBela\\CSS\\Value\\InvalidCssFunction", "d4/d84/classTBela_1_1CSS_1_1Value_1_1InvalidCssFunction.html", null ], + [ "TBela\\CSS\\Value\\InvalidCssString", "db/df6/classTBela_1_1CSS_1_1Value_1_1InvalidCssString.html", null ], [ "TBela\\CSS\\Value\\LineHeight", "dd/dfa/classTBela_1_1CSS_1_1Value_1_1LineHeight.html", null ], [ "TBela\\CSS\\Value\\Number", "da/d44/classTBela_1_1CSS_1_1Value_1_1Number.html", [ [ "TBela\\CSS\\Value\\Unit", "dd/dcf/classTBela_1_1CSS_1_1Value_1_1Unit.html", [ @@ -76,9 +92,9 @@ var hierarchy = [ "TBela\\CSS\\Value\\Outline", "da/db6/classTBela_1_1CSS_1_1Value_1_1Outline.html", null ] ] ], [ "TBela\\CSS\\Value\\Whitespace", "d6/d86/classTBela_1_1CSS_1_1Value_1_1Whitespace.html", null ] - ] ], - [ "TBela\\CSS\\Value\\Set", "dd/d96/classTBela_1_1CSS_1_1Value_1_1Set.html", null ] + ] ] ] ], + [ "TBela\\CSS\\Cli\\Option", "d8/da4/classTBela_1_1CSS_1_1Cli_1_1Option.html", null ], [ "TBela\\CSS\\Interfaces\\ParsableInterface", "d6/d13/interfaceTBela_1_1CSS_1_1Interfaces_1_1ParsableInterface.html", [ [ "TBela\\CSS\\Interfaces\\RenderableInterface", "d1/d43/interfaceTBela_1_1CSS_1_1Interfaces_1_1RenderableInterface.html", null ], [ "TBela\\CSS\\Parser", "d8/d8b/classTBela_1_1CSS_1_1Parser.html", null ] @@ -134,27 +150,38 @@ var hierarchy = [ "TBela\\CSS\\Query\\TokenSelectorValueWhitespace", "d1/d75/classTBela_1_1CSS_1_1Query_1_1TokenSelectorValueWhitespace.html", null ], [ "TBela\\CSS\\Query\\TokenWhitespace", "de/dc6/classTBela_1_1CSS_1_1Query_1_1TokenWhitespace.html", null ] ] ], + [ "TBela\\CSS\\Interfaces\\ValidatorInterface", "db/d67/interfaceTBela_1_1CSS_1_1Interfaces_1_1ValidatorInterface.html", [ + [ "TBela\\CSS\\Parser\\Validator\\AtRule", "d6/d26/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1AtRule.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\Comment", "dd/de3/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Comment.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\Declaration", "de/dc5/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Declaration.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\InvalidAtRule", "de/d3e/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidAtRule.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\InvalidComment", "d1/dcb/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidComment.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\InvalidDeclaration", "df/d86/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidDeclaration.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\InvalidRule", "d5/d41/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1InvalidRule.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\NestingAtRule", "da/d79/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingAtRule.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\NestingMedialRule", "db/daf/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingMedialRule.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\NestingRule", "de/d4c/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1NestingRule.html", null ], + [ "TBela\\CSS\\Parser\\Validator\\Rule", "db/d83/classTBela_1_1CSS_1_1Parser_1_1Validator_1_1Rule.html", null ] + ] ], [ "ArrayAccess", null, [ [ "TBela\\CSS\\Interfaces\\ElementInterface", "d5/d9e/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface.html", null ], [ "TBela\\CSS\\Property\\Property", "da/db6/classTBela_1_1CSS_1_1Property_1_1Property.html", null ] ] ], - [ "Countable", null, [ - [ "TBela\\CSS\\Value\\Set", "dd/d96/classTBela_1_1CSS_1_1Value_1_1Set.html", null ] - ] ], [ "Exception", null, [ + [ "TBela\\CSS\\Cli\\Exceptions\\DuplicateArgumentException", "d3/dd5/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1DuplicateArgumentException.html", null ], + [ "TBela\\CSS\\Cli\\Exceptions\\MissingParameterException", "da/db8/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1MissingParameterException.html", null ], + [ "TBela\\CSS\\Cli\\Exceptions\\UnknownParameterException", "d9/d4a/classTBela_1_1CSS_1_1Cli_1_1Exceptions_1_1UnknownParameterException.html", null ], [ "TBela\\CSS\\Exceptions\\IOException", "d0/d99/classTBela_1_1CSS_1_1Exceptions_1_1IOException.html", null ], [ "TBela\\CSS\\Parser\\SyntaxError", "da/dc4/classTBela_1_1CSS_1_1Parser_1_1SyntaxError.html", null ] ] ], [ "IteratorAggregate", null, [ [ "TBela\\CSS\\Interfaces\\RuleListInterface", "d2/dc7/interfaceTBela_1_1CSS_1_1Interfaces_1_1RuleListInterface.html", null ], - [ "TBela\\CSS\\Property\\PropertyList", "d9/dd3/classTBela_1_1CSS_1_1Property_1_1PropertyList.html", null ], - [ "TBela\\CSS\\Value\\Set", "dd/d96/classTBela_1_1CSS_1_1Value_1_1Set.html", null ] + [ "TBela\\CSS\\Property\\PropertyList", "d9/dd3/classTBela_1_1CSS_1_1Property_1_1PropertyList.html", null ] ] ], [ "JsonSerializable", null, [ [ "TBela\\CSS\\Interfaces\\ElementInterface", "d5/d9e/interfaceTBela_1_1CSS_1_1Interfaces_1_1ElementInterface.html", null ], [ "TBela\\CSS\\Parser\\Position", "d1/dd8/classTBela_1_1CSS_1_1Parser_1_1Position.html", null ], [ "TBela\\CSS\\Parser\\SourceLocation", "d2/d99/classTBela_1_1CSS_1_1Parser_1_1SourceLocation.html", null ], - [ "TBela\\CSS\\Value", "dd/dca/classTBela_1_1CSS_1_1Value.html", null ], - [ "TBela\\CSS\\Value\\Set", "dd/d96/classTBela_1_1CSS_1_1Value_1_1Set.html", null ] + [ "TBela\\CSS\\Value", "dd/dca/classTBela_1_1CSS_1_1Value.html", null ] ] ] ]; \ No newline at end of file diff --git a/docs/api/html/index.html b/docs/api/html/index.html index 349349a6..c1518be1 100644 --- a/docs/api/html/index.html +++ b/docs/api/html/index.html @@ -87,22 +87,31 @@

    CSS (A CSS parser and minifier written in PHP)


    -

    Current version Packagist Documentation Known Vulnerabilities

    +

    CI Current version Packagist Documentation Known Vulnerabilities

    A CSS parser, beautifier and minifier written in PHP. It supports the following features

    Features

      -
    • generate sourcemap
    • +
    • multibyte characters encoding
    • +
    • sourcemap
    • +
    • multiprocessing: process large CSS input very fast
    • +
    • CSS Nesting module
    • +
    • partially implemented CSS Syntax module level 3
    • +
    • partial CSS validation
    • +
    • CSS colors module level 4
    • parse and render CSS
    • -
    • support CSS4 colors
    • +
    • optimize css:
      • merge duplicate rules
      • remove duplicate declarations
      • remove empty rules
      • -
      • process @import directive
      • +
      • compute css shorthand (margin, padding, outline, border-radius, font, background)
      • +
      • process @import document to reduce the number of HTTP requests
      • remove @charset directive
      • -
      • compute css shorthand (margin, padding, outline, border-radius, font)
      • -
      • query the css nodes using xpath like syntax or class name
      • -
      • transform the css and ast using the traverser api
      • +
      +
    • +
    • query api with xpath like or class name syntax
    • +
    • traverser api to transform the css and ast
    • +
    • command line utility

    Installation

    @@ -110,7 +119,11 @@

    $ composer require tbela99/css

    Requirements

    -

    This library requires PHP version >= 7.4. If you need support for older versions of PHP 5.6 - 7.3 then checkout this branch

    +
      +
    • PHP version >= 8.0 on master branch.
    • +
    • PHP version >= 5.6 supported in this branch
    • +
    • mbstring extension
    • +

    Usage:

    h1 {
    @@ -171,6 +184,8 @@

    ]);
    // fast
    +
    $css = $renderer->renderAst($parser);
    +
    // or
    $css = $renderer->renderAst($parser->getAst());
    // slow
    $css = $renderer->render($element);
    @@ -184,6 +199,8 @@

    use \TBela\CSS\Renderer;
    // fastest way to render css
    $beautify = (new Renderer())->renderAst($parser->setContent($css)->getAst());
    +
    // or
    +
    $beautify = (new Renderer())->renderAst($parser->setContent($css));
    // or
    $css = (new Renderer())->renderAst(json_decode(file_get_contents('style.json')));
    @@ -209,7 +226,25 @@

    $renderer->save($element, 'css/all.css');

    The CSS Query API

    -

    Example: Extract Font-src declaration

    +

    Example: get all background and background-image declarations that contain an image url

    +
    $element = Element::fromUrl('https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css');
    +
    +
    foreach ($element->query('[@name=background][@value*="url("]|[@name=background-image][@value*="url("]') as $p) {
    +
    +
    echo "$p\n";
    +
    }
    +

    result

    +
    .form-select {
    +
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c
    +
    /svg%3e")
    +
    }
    +
    .form-check-input:checked[type=checkbox] {
    +
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/s
    +
    vg%3e")
    +
    }
    +
    +
    ...
    +

    Example: Extract Font-src declaration

    CSS source

    @font-face {
    font-family: "Bitstream Vera Serif Bold";
    @@ -268,7 +303,6 @@

    // get all src properties in a @font-face rule
    $nodes = $stylesheet->query('@font-face/src');
    -
    echo implode("\n", array_map('trim', $nodes));

    result

    @font-face {
    @@ -288,7 +322,6 @@

    }

    render optimized css

    $stylesheet->setChildren(array_map(function ($node) { return $node->copy()->getRoot(); }, $nodes));
    -
    $stylesheet->deduplicate();
    echo $stylesheet;
    @@ -302,6 +335,66 @@

    }
    }

    +CSS Nesting

    +
    table.colortable {
    +
    & td {
    +
    text-align:center;
    +
    &.c { text-transform:uppercase }
    +
    &:first-child, &:first-child + td { border:1px solid black }
    +
    }
    +
    +
    +
    & th {
    +
    text-align:center;
    +
    background:black;
    +
    color:white;
    +
    }
    +
    }
    +

    render CSS nesting

    +
    +
    +
    echo new Parser($css);
    +

    result

    +
    table.colortable {
    +
    & td {
    +
    text-align: center;
    +
    &.c {
    +
    text-transform: uppercase
    +
    }
    +
    &:first-child,
    +
    &:first-child+td {
    +
    border: 1px solid #000
    +
    }
    +
    }
    +
    & th {
    +
    text-align: center;
    +
    background: #000;
    +
    color: #fff
    +
    }
    +
    }
    +

    convert nesting CSS to older representation

    +
    +
    use \TBela\CSS\Renderer;
    +
    +
    $renderer = new Renderer( ['legacy_rendering' => true]);
    +
    echo $renderer->renderAst(new Parser($css));
    +

    result

    +
    table.colortable td {
    +
    text-align: center
    +
    }
    +
    table.colortable td.c {
    +
    text-transform: uppercase
    +
    }
    +
    table.colortable td:first-child,
    +
    table.colortable td:first-child+td {
    +
    border: 1px solid #000
    +
    }
    +
    table.colortable th {
    +
    text-align: center;
    +
    background: #000;
    +
    color: #fff
    +
    }
    +

    The Traverser Api

    The traverser will iterate over all the nodes and process them with the callbacks provided. It will return a new tree Example using ast

    @@ -317,7 +410,7 @@

    // remove @media print
    $traverser->on('enter', function ($node) {
    -
    if ($node->type == 'AtRule' && $node->name == 'media' && (string) $node->value == 'print') {
    +
    if ($node->type == 'AtRule' && $node->name == 'media' && $node->value == 'print') {
    return Traverser::IGNORE_NODE;
    }
    @@ -339,7 +432,7 @@

    // remove @media print
    $traverser->on('enter', function ($node) {
    -
    if ($node->type == 'AtRule' && $node->name == 'media' && (string) $node->value == 'print') {
    +
    if ($node->type == 'AtRule' && $node->name == 'media' && $node->value == 'print') {
    return Traverser::IGNORE_NODE;
    }
    @@ -347,7 +440,7 @@

    $newElement = $traverser->traverse($element);
    echo $renderer->renderAst($newElement);
    -

    +

    Build a CSS Document

    use \TBela\CSS\Element\Stylesheet;
    @@ -418,7 +511,7 @@

    $stylesheet->append('style/main.css');
    // append url
    $stylesheet->append('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css');
    -

    +

    Performance

    parsing and rendering ast is 3x faster than parsing an element.

    use \TBela\CSS\Element\Parser;
    @@ -433,41 +526,107 @@

    $renderer = new Renderer(['compress' => true]);
    echo $renderer->renderAst($parser->getAst());
    -
    // slower
    +
    // slower - will build an Element
    echo $renderer->render($parser->parse());
    -

    +

    Parser Options

      -
    • flatten_import: process @import directive and import the content into the css. default to false.
    • -
    • allow_duplicate_rules: allow duplicated rules. By default duplicate rules except @font-face are merged
    • +
    • flatten_import: process @import directive and import the content into the css document. default to false.
    • +
    • allow_duplicate_rules: allow duplicated rules. By default, duplicate rules except @font-face are merged
    • allow_duplicate_declarations: allow duplicated declarations in the same rule.
    • +
    • capture_errors: silently capture parse error if true, otherwise throw a parse exception. Default to true
    -

    +

    Renderer Options

      -
    • sourcemap: generate sourcemap, default false
    • remove_comments: remove comments.
    • preserve_license: preserve comments starting with '/*!'
    • compress: minify output, will also remove comments
    • remove_empty_nodes: do not render empty css nodes
    • compute_shorthand: compute shorthand declaration
    • -
    • charset: preserve @charset
    • +
    • charset: preserve @charset. default to false
    • glue: the line separator character. default to '
      '
    • indent: character used to pad lines in css, default to a space character
    • convert_color: convert colors to a format between hex, hsl, rgb, hwb and device-cmyk
    • css_level: produce CSS color level 3 or 4. default to 4
    • allow_duplicate_declarations: allow duplicate declarations.
    • +
    • legacy_rendering: convert nesting css. default false
    -

    The full documentation can be found here

    +

    +Command line utility

    +

    the command line utility is located at './cli/css-parser'

    +
    $ ./cli/css-parser -h
    +
    +
    Usage:
    +
    $ css-parser [OPTIONS] [PARAMETERS]
    +
    +
    -h print help
    +
    --help print extended help
    +
    +
    parse options:
    +
    +
    -e, --capture-errors ignore parse error
    +
    +
    -f, --file css file or url
    +
    +
    -m, --flatten-import process @import
    +
    +
    -d, --parse-allow-duplicate-declarations allow duplicate declaration
    +
    +
    -p, --parse-allow-duplicate-rules allow duplicate rule
    +
    +
    render options:
    +
    +
    -a, --ast dump ast as JSON
    +
    +
    -S, --charset remove @charset
    +
    +
    -c, --compress minify output
    +
    +
    -u, --compute-shorthand compute shorthand properties
    +
    +
    -l, --css-level css color module
    +
    +
    -G, --legacy-rendering legacy rendering
    +
    +
    -o, --output output file name
    +
    +
    -L, --preserve-license preserve license comments
    +
    +
    -C, --remove-comments remove comments
    +
    +
    -E, --remove-empty-nodes remove empty nodes
    +
    +
    -r, --render-duplicate-declarations render duplicate declarations
    +
    +
    -s, --sourcemap generate sourcemap, require -o
    +

    +Minify inline css

    +
    $ ./cli/css-parser 'a, div {display:none} b {}' -c
    +
    #
    +
    $ echo 'a, div {display:none} b {}' | ./cli/css-parser -c
    +

    +Minify css file

    +
    $ ./cli/css-parser -f nested.css -c
    +
    #
    +
    $ ./cli/css-parser -f 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css' -c
    +

    +Dump ast

    +
    $ ./cli/css-parser -f nested.css -f 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css' -c -a
    +
    #
    +
    $ ./cli/css-parser 'a, div {display:none} b {}' -c -a
    +
    #
    +
    $ echo 'a, div {display:none} b {}' | ./cli/css-parser -c -a
    +

    The full documentation can be found here


    Thanks to Jetbrains for providing a free PhpStorm license

    This was originally a PHP port of https://github.com/reworkcss/css

    -
    Definition: Parser.php:22
    -
    Definition: Traverser.php:12
    +
    Definition: Parser.php:24
    +
    Definition: Traverser.php:13
    Definition: Renderer.php:20