PHP 클래스 _Beans_Compiler, Beans

파일 보기 프로젝트 열기: Getbeans/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