PHP Класс _Beans_Compiler, Beans

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$compiler Compiler arguments.
$current_fragment Set during in fragments loop.
$dir Cache dir.
$url Cache url.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

add_content_media_query() публичный Метод

Wrap content in query.
public add_content_media_query ( $content )

cache_file() публичный Метод

Create cached file.
public cache_file ( )

cache_file_exist() публичный Метод

Check if cached file exists.
public cache_file_exist ( )

combine_fragments() публичный Метод

Combine fragments content.
public combine_fragments ( )

css_path_to_url() публичный Метод

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

enqueue_file() публичный Метод

Enqueue cached file.
public enqueue_file ( )

filesystem() публичный Метод

Initialise WP Filsystem.
public filesystem ( )

filesystem_method() публичный Метод

Set WP Filsystem method.
public filesystem_method ( )

format_content() публичный Метод

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

get_extension() публичный Метод

Get file extension.
public get_extension ( )

get_function_content() публичный Метод

Get function content.

get_internal_content() публичный Метод

Get internal file content.

get_remote_content() публичный Метод

Get external file content.
public get_remote_content ( )

get_url() публичный Метод

Get cached file url.
public get_url ( )

is_function() публичный Метод

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

kill() публичный Метод

Kill it :(
public kill ( )

maybe_make_dir() публичный Метод

Make directory.
public maybe_make_dir ( )

replace_css_url() публичный Метод

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

report() публичный Метод

Send report.
public report ( )

set_filname() публичный Метод

Set class filname.
public set_filname ( )

set_fragments() публичный Метод

Set class fragments.
public set_fragments ( )

strip_whitespace() публичный Метод

Minify CSS.
public strip_whitespace ( $content )

Описание свойств

$compiler публичное свойство

Compiler arguments.
public $compiler

$current_fragment публичное свойство

Set during in fragments loop.
public $current_fragment

$dir публичное свойство

Cache dir.
public $dir

$url публичное свойство

Cache url.
public $url