PHP Class _Beans_Compiler, Beans

Mostra file Open project: Getbeans/Beans

Public Properties

Property Type Description
$compiler Compiler arguments.
$current_fragment Set during in fragments loop.
$dir Cache dir.
$url Cache url.

Public Methods

Method 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 method

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

add_content_media_query() public method

Wrap content in query.
public add_content_media_query ( $content )

cache_file() public method

Create cached file.
public cache_file ( )

cache_file_exist() public method

Check if cached file exists.
public cache_file_exist ( )

combine_fragments() public method

Combine fragments content.
public combine_fragments ( )

css_path_to_url() public method

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

enqueue_file() public method

Enqueue cached file.
public enqueue_file ( )

filesystem() public method

Initialise WP Filsystem.
public filesystem ( )

filesystem_method() public method

Set WP Filsystem method.
public filesystem_method ( )

format_content() public method

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

get_extension() public method

Get file extension.
public get_extension ( )

get_function_content() public method

Get function content.

get_internal_content() public method

Get internal file content.

get_remote_content() public method

Get external file content.
public get_remote_content ( )

get_url() public method

Get cached file url.
public get_url ( )

is_function() public method

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

kill() public method

Kill it :(
public kill ( )

maybe_make_dir() public method

Make directory.
public maybe_make_dir ( )

replace_css_url() public method

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

report() public method

Send report.
public report ( )

set_filname() public method

Set class filname.
public set_filname ( )

set_fragments() public method

Set class fragments.
public set_fragments ( )

strip_whitespace() public method

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