PHP Class _Beans_Compiler, Beans

Afficher le fichier Open project: Getbeans/Beans

Méthodes publiques

Свойство Type Description
$compiler Compiler arguments.
$current_fragment Set during in fragments loop.
$dir Cache dir.
$url Cache url.

Méthodes publiques

Méthode Description
__construct ( array $args ) Constructor.
add_content_media_query ( $content ) Wrap content in query.
cache_file ( ) Create cached file.
cache_file_exist ( ) Check if cached file exists.
combine_fragments ( ) Combine fragments content.
css_path_to_url ( $matches, $base_is_path = false ) replace_css_url() callback.
enqueue_file ( ) Enqueue cached file.
filesystem ( ) Initialise WP Filsystem.
filesystem_method ( ) Set WP Filsystem method.
format_content ( $content ) Formal CSS, LESS and JS content.
get_extension ( ) Get file extension.
get_function_content ( ) Get function content.
get_internal_content ( ) Get internal file content.
get_remote_content ( ) Get external file content.
get_url ( ) Get cached file url.
is_function ( $fragment ) Is the fragement a function.
kill ( ) Kill it :(
maybe_make_dir ( ) Make directory.
replace_css_url ( $content ) Replace CSS url shortcuts with a valid url.
report ( ) Send report.
set_filname ( ) Set class filname.
set_fragments ( ) Set class fragments.
strip_whitespace ( $content ) Minify CSS.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $args )
$args array Setting arguments.

add_content_media_query() public méthode

Wrap content in query.
public add_content_media_query ( $content )

cache_file() public méthode

Create cached file.
public cache_file ( )

cache_file_exist() public méthode

Check if cached file exists.
public cache_file_exist ( )

combine_fragments() public méthode

Combine fragments content.
public combine_fragments ( )

css_path_to_url() public méthode

replace_css_url() callback.
public css_path_to_url ( $matches, $base_is_path = false )

enqueue_file() public méthode

Enqueue cached file.
public enqueue_file ( )

filesystem() public méthode

Initialise WP Filsystem.
public filesystem ( )

filesystem_method() public méthode

Set WP Filsystem method.
public filesystem_method ( )

format_content() public méthode

Formal CSS, LESS and JS content.
public format_content ( $content )

get_extension() public méthode

Get file extension.
public get_extension ( )

get_function_content() public méthode

Get function content.

get_internal_content() public méthode

Get internal file content.

get_remote_content() public méthode

Get external file content.
public get_remote_content ( )

get_url() public méthode

Get cached file url.
public get_url ( )

is_function() public méthode

Is the fragement a function.
public is_function ( $fragment )

kill() public méthode

Kill it :(
public kill ( )

maybe_make_dir() public méthode

Make directory.
public maybe_make_dir ( )

replace_css_url() public méthode

Replace CSS url shortcuts with a valid url.
public replace_css_url ( $content )

report() public méthode

Send report.
public report ( )

set_filname() public méthode

Set class filname.
public set_filname ( )

set_fragments() public méthode

Set class fragments.
public set_fragments ( )

strip_whitespace() public méthode

Minify CSS.
public strip_whitespace ( $content )

Property Details

$compiler public_oe property

Compiler arguments.
public $compiler

$current_fragment public_oe property

Set during in fragments loop.
public $current_fragment

$dir public_oe property

Cache dir.
public $dir

$url public_oe property

Cache url.
public $url