PHP Class SassFile

Afficher le fichier Open project: richthegeek/phpsass Class Usage Examples

Méthodes publiques

Свойство Type Description
$parser
$path

Méthodes publiques

Méthode Description
find_file ( string $filename, string $dir ) : mixed Looks for the file recursively in the specified directory.
get_file ( string $filename, SassParser &$parser, boolean $sass_only = TRUE ) : array Returns the full path to a file to parse.
get_file_contents ( string $filename ) : mixed | string Get the content of the given file
get_tree ( string $filename, SassParser &$parser ) : SassRootNode Returns the parse tree for a file.

Method Details

find_file() public static méthode

This will also look for _filename to handle Sass partials. Internal cache to find the files quickly
public static find_file ( string $filename, string $dir ) : mixed
$filename string filename to look for
$dir string path to directory to look in and under
Résultat mixed string: full path to file if found, false if not

get_file() public static méthode

The file is looked for recursively under the load_paths directories If the filename does not end in .sass or .scss try the current syntax first then, if a file is not found, try the other syntax.
public static get_file ( string $filename, SassParser &$parser, boolean $sass_only = TRUE ) : array
$filename string filename to find
$parser SassParser Sass parser
$sass_only boolean
Résultat array of string path(s) to file(s) or FALSE if no such file

get_file_contents() public static méthode

Get the content of the given file
public static get_file_contents ( string $filename ) : mixed | string
$filename string
Résultat mixed | string

get_tree() public static méthode

Returns the parse tree for a file.
public static get_tree ( string $filename, SassParser &$parser ) : SassRootNode
$filename string filename to parse
$parser SassParser Sass parser
Résultat SassRootNode

Property Details

$parser public_oe static_oe property

public static $parser

$path public_oe static_oe property

public static $path