[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/style-engine/ -> class-wp-style-engine-css-rules-store.php (summary)

Style Engine: WP_Style_Engine_CSS_Rules_Store class

File Size: 166 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Style_Engine_CSS_Rules_Store:: (8 methods):
  get_store()
  get_stores()
  remove_all_stores()
  set_name()
  get_name()
  get_all_rules()
  add_rule()
  remove_rule()


Class: WP_Style_Engine_CSS_Rules_Store  - X-Ref

Core class used as a store for WP_Style_Engine_CSS_Rule objects.

Holds, sanitizes, processes, and prints CSS declarations for the style engine.

get_store( $store_name = 'default' )   X-Ref
Gets an instance of the store.

param: string $store_name The name of the store.
return: WP_Style_Engine_CSS_Rules_Store|void

get_stores()   X-Ref
Gets an array of all available stores.

return: WP_Style_Engine_CSS_Rules_Store[]

remove_all_stores()   X-Ref
Clears all stores from static::$stores.


set_name( $name )   X-Ref
Sets the store name.

param: string $name The store name.

get_name()   X-Ref
Gets the store name.

return: string

get_all_rules()   X-Ref
Gets an array of all rules.

return: WP_Style_Engine_CSS_Rule[]

add_rule( $selector, $rules_group = '' )   X-Ref
Gets a WP_Style_Engine_CSS_Rule object by its selector.
If the rule does not exist, it will be created.

param: string $selector The CSS selector.
param: string $rules_group A parent CSS selector in the case of nested CSS, or a CSS nested @rule,
return: WP_Style_Engine_CSS_Rule|void Returns a WP_Style_Engine_CSS_Rule object,

remove_rule( $selector )   X-Ref
Removes a selector from the store.

param: string $selector The CSS selector.



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref