| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 2627 lines (61 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Less_Parser:: (112 methods):
__construct()
Reset()
SetOptions()
SetOption()
registerFunction()
unregisterFunction()
getCss()
PreVisitors()
PostVisitors()
parse()
parseFile()
ModifyVars()
SetFileInfo()
SetCacheDir()
SetImportDirs()
_parse()
GetRules()
SetInput()
UnsetInput()
CacheFile()
AddParsedFile()
AllParsedFiles()
FileParsed()
save()
restore()
forget()
isWhitespace()
match()
MatchFuncs()
MatchChar()
MatchReg()
PeekReg()
PeekChar()
skipWhitespace()
expect()
expectChar()
parsePrimary()
parseComment()
parseComments()
parseEntitiesQuoted()
parseEntitiesKeyword()
FromKeyword()
parseEntitiesCall()
parseEntitiesArguments()
parseEntitiesLiteral()
parseEntitiesAssignment()
parseEntitiesUrl()
parseEntitiesVariable()
parseEntitiesVariableCurly()
parseEntitiesColor()
parseEntitiesDimension()
parseUnicodeDescriptor()
parseEntitiesJavascript()
parseVariable()
parseRulesetCall()
parseExtend()
parseMixinCall()
parseMixinCallElements()
parseMixinArgs()
parseMixinDefinition()
parseEntity()
parseEnd()
parseAlpha()
parseElement()
parseCombinator()
parseLessSelector()
parseSelector()
parseTag()
parseAttribute()
parseBlock()
parseBlockRuleset()
parseDetachedRuleset()
parseRuleset()
parseNameValue()
parseRule()
parseAnonymousValue()
parseImport()
parseImportOptions()
parseImportOption()
parseMediaFeature()
parseMediaFeatures()
parseMedia()
parseDirective()
parseValue()
parseImportant()
parseSub()
parseMultiplication()
parseAddition()
parseConditions()
parseCondition()
parseOperand()
parseExpression()
parseProperty()
parseRuleProperty()
rulePropertyMatch()
serializeVars()
is_method()
round()
NewObj0()
NewObj1()
NewObj2()
NewObj3()
NewObj4()
NewObj5()
NewObj6()
NewObj7()
ObjCache()
ArgCache()
ArgString()
Error()
WinPath()
CacheEnabled()
Class: Less_Parser - X-Ref
Class for parsing and compiling less files into css| __construct( $env = null ) X-Ref |
param: Less_Environment|array|null $env |
| Reset( $options = null ) X-Ref |
| Reset the parser state completely |
| SetOptions( $options ) X-Ref |
| Set one or more compiler options options: import_dirs, cache_dir, cache_method |
| SetOption($option,$value) X-Ref |
| Set one compiler option |
| registerFunction($name, $callback) X-Ref |
| Registers a new custom function param: string $name function name param: callable $callback callback |
| unregisterFunction($name) X-Ref |
| Removed an already registered function param: string $name function name |
| getCss() X-Ref |
| Get the current css buffer return: string |
| PreVisitors($root) X-Ref |
| Run pre-compile visitors |
| PostVisitors($evaldRoot) X-Ref |
| Run post-compile visitors |
| parse( $str, $file_uri = null ) X-Ref |
| Parse a Less string into css param: string $str The string to convert param: string $uri_root The url of the file return: Less_Tree_Ruleset|Less_Parser |
| parseFile( $filename, $uri_root = '', $returnRoot = false) X-Ref |
| Parse a Less string from a given file param: string $filename The file to parse param: string $uri_root The url of the file param: bool $returnRoot Indicates whether the return value should be a css string a root node return: Less_Tree_Ruleset|Less_Parser |
| ModifyVars( $vars ) X-Ref |
| Allows a user to set variables values param: array $vars return: Less_Parser |
| SetFileInfo( $filename, $uri_root = '') X-Ref |
param: string $filename |
| SetCacheDir( $dir ) X-Ref |
| SetImportDirs( $dirs ) X-Ref |
| Set a list of directories or callbacks the parser should use for determining import paths param: array $dirs |
| _parse( $file_path = null ) X-Ref |
param: string $file_path |
| GetRules( $file_path ) X-Ref |
| Return the results of parsePrimary for $file_path Use cache and save cached results if possible param: string|null $file_path |
| SetInput( $file_path ) X-Ref |
| Set up the input buffer |
| UnsetInput() X-Ref |
| Free up some memory |
| CacheFile( $file_path ) X-Ref |
| No description |
| AddParsedFile($file) X-Ref |
| No description |
| AllParsedFiles() X-Ref |
| No description |
| FileParsed($file) X-Ref |
param: string $file |
| save() X-Ref |
| No description |
| restore() X-Ref |
| No description |
| forget() X-Ref |
| No description |
| isWhitespace($offset = 0) X-Ref |
| No description |
| match($toks) X-Ref |
| Parse from a token, regexp or string, and move forward if match param: array $toks return: array |
| MatchFuncs($toks) X-Ref |
param: string[] $toks return: string |
| MatchChar($tok) X-Ref |
| No description |
| MatchReg($tok) X-Ref |
| No description |
| PeekReg($tok) X-Ref |
| Same as match(), but don't change the state of the parser, just return the match. param: string $tok return: integer |
| PeekChar($tok) X-Ref |
param: string $tok |
| skipWhitespace($length) X-Ref |
param: integer $length |
| expect($tok, $msg = NULL) X-Ref |
param: string $tok param: string|null $msg |
| expectChar($tok, $msg = null ) X-Ref |
param: string $tok |
| parsePrimary() X-Ref |
| No description |
| parseComment() X-Ref |
| No description |
| parseComments() X-Ref |
| No description |
| parseEntitiesQuoted() X-Ref |
| No description |
| parseEntitiesKeyword() X-Ref |
| No description |
| FromKeyword( $keyword ) X-Ref |
| No description |
| parseEntitiesCall() X-Ref |
| No description |
| parseEntitiesArguments() X-Ref |
| Parse a list of arguments return: array |
| parseEntitiesLiteral() X-Ref |
| No description |
| parseEntitiesAssignment() X-Ref |
| No description |
| parseEntitiesUrl() X-Ref |
| No description |
| parseEntitiesVariable() X-Ref |
| No description |
| parseEntitiesVariableCurly() X-Ref |
| No description |
| parseEntitiesColor() X-Ref |
| No description |
| parseEntitiesDimension() X-Ref |
| No description |
| parseUnicodeDescriptor() X-Ref |
| No description |
| parseEntitiesJavascript() X-Ref |
| No description |
| parseVariable() X-Ref |
| No description |
| parseRulesetCall() X-Ref |
| No description |
| parseExtend($isRule = false) X-Ref |
| No description |
| parseMixinCall() X-Ref |
| No description |
| parseMixinCallElements() X-Ref |
| No description |
| parseMixinArgs( $isCall ) X-Ref |
param: boolean $isCall |
| parseMixinDefinition() X-Ref |
| No description |
| parseEntity() X-Ref |
| No description |
| parseEnd() X-Ref |
| No description |
| parseAlpha() X-Ref |
| No description |
| parseElement() X-Ref |
| No description |
| parseCombinator() X-Ref |
| No description |
| parseLessSelector() X-Ref |
| No description |
| parseSelector( $isLess = false ) X-Ref |
| No description |
| parseTag() X-Ref |
| No description |
| parseAttribute() X-Ref |
| No description |
| parseBlock() X-Ref |
| No description |
| parseBlockRuleset() X-Ref |
| No description |
| parseDetachedRuleset() X-Ref |
| No description |
| parseRuleset() X-Ref |
| No description |
| parseNameValue() X-Ref |
| Custom less.php parse function for finding simple name-value css pairs ex: width:100px; |
| parseRule( $tryAnonymous = null ) X-Ref |
| No description |
| parseAnonymousValue() X-Ref |
| No description |
| parseImport() X-Ref |
| No description |
| parseImportOptions() X-Ref |
| No description |
| parseImportOption() X-Ref |
| No description |
| parseMediaFeature() X-Ref |
| No description |
| parseMediaFeatures() X-Ref |
| No description |
| parseMedia() X-Ref |
| No description |
| parseDirective() X-Ref |
| No description |
| parseValue() X-Ref |
| No description |
| parseImportant() X-Ref |
| No description |
| parseSub() X-Ref |
| No description |
| parseMultiplication() X-Ref |
| Parses multiplication operation return: Less_Tree_Operation|null |
| parseAddition() X-Ref |
| Parses an addition operation return: Less_Tree_Operation|null |
| parseConditions() X-Ref |
| Parses the conditions return: Less_Tree_Condition|null |
| parseCondition() X-Ref |
| No description |
| parseOperand() X-Ref |
| An operand is anything that can be part of an operation, such as a Color, or a Variable |
| parseExpression() X-Ref |
| Expressions either represent mathematical operations, or white-space delimited Entities. 1px solid black return: Less_Tree_Expression|null |
| parseProperty() X-Ref |
| Parse a property eg: 'min-width', 'orientation', etc return: string |
| parseRuleProperty() X-Ref |
| Parse a rule property eg: 'color', 'width', 'height', etc return: string |
| rulePropertyMatch( $re, &$offset, &$length, &$index, &$name ) X-Ref |
| No description |
| serializeVars( $vars ) X-Ref |
| No description |
| is_method($a,$b) X-Ref |
| Some versions of php have trouble with method_exists($a,$b) if $a is not an object param: string $b |
| round($i, $precision = 0) X-Ref |
| Round numbers similarly to javascript eg: 1.499999 to 1 instead of 2 |
| NewObj0($class) X-Ref |
| Create Less_Tree_* objects and optionally generate a cache string return: mixed |
| NewObj1($class, $arg) X-Ref |
| No description |
| NewObj2($class, $args) X-Ref |
| No description |
| NewObj3($class, $args) X-Ref |
| No description |
| NewObj4($class, $args) X-Ref |
| No description |
| NewObj5($class, $args) X-Ref |
| No description |
| NewObj6($class, $args) X-Ref |
| No description |
| NewObj7($class, $args) X-Ref |
| No description |
| ObjCache($obj, $class, $args=array() X-Ref |
| No description |
| ArgCache($args) X-Ref |
| No description |
| ArgString($arg) X-Ref |
| Convert an argument to a string for use in the parser cache return: string |
| Error($msg) X-Ref |
| No description |
| WinPath($path) X-Ref |
| No description |
| CacheEnabled() X-Ref |
| No description |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |