\Smarty_Internal_Configfileparser

Smarty Internal Plugin Configfileparse

This is the config file parser. It is generated from the smarty_internal_configfileparser.y file

Summary

Methods
Properties
Constants
__construct()
Trace()
PrintTrace()
tokenName()
yy_destructor()
yy_pop_parser_stack()
__destruct()
yy_get_expected_tokens()
yy_is_expected_token()
yy_find_shift_action()
yy_find_reduce_action()
yy_shift()
yy_r0()
yy_r1()
yy_r4()
yy_r5()
yy_r6()
yy_r7()
yy_r8()
yy_r9()
yy_r10()
yy_r11()
yy_r12()
yy_r13()
yy_r14()
yy_r15()
yy_r16()
yy_r17()
yy_reduce()
yy_parse_failed()
yy_syntax_error()
yy_accept()
doParse()
$successful
$retvalue
$yymajor
$compiler
$smarty
$yy_action
$yy_lookahead
$yy_shift_ofst
$yy_reduce_ofst
$yyExpectedTokens
$yy_default
$yyFallback
$yyTraceFILE
$yyTracePrompt
$yyidx
$yyerrcnt
$yystack
$yyTokenName
$yyRuleName
$yyRuleInfo
$yyReduceMap
TPC_OPENB
TPC_SECTION
TPC_CLOSEB
TPC_DOT
TPC_ID
TPC_EQUAL
TPC_FLOAT
TPC_INT
TPC_BOOL
TPC_SINGLE_QUOTED_STRING
TPC_DOUBLE_QUOTED_STRING
TPC_TRIPPLE_QUOTES
TPC_TRIPPLE_TEXT
TPC_TRIPPLE_QUOTES_END
TPC_NAKED_STRING
TPC_OTHER
TPC_NEWLINE
TPC_COMMENTSTART
YY_NO_ACTION
YY_ACCEPT_ACTION
YY_ERROR_ACTION
YY_SZ_ACTTAB
YY_SHIFT_USE_DFLT
YY_SHIFT_MAX
YY_REDUCE_USE_DFLT
YY_REDUCE_MAX
YYNOCODE
YYSTACKDEPTH
YYNSTATE
YYNRULE
YYERRORSYMBOL
YYERRSYMDT
YYFALLBACK
No protected methods found
No protected properties found
N/A
parse_bool()
parse_single_quoted_string()
parse_double_quoted_string()
parse_tripple_double_quoted_string()
set_var()
add_global_vars()
add_section_vars()
$lex
$internalError
$configOverwrite
$configReadHidden
$escapes_single
$_retvalue
N/A

Constants

TPC_OPENB

TPC_OPENB = 1

TPC_SECTION

TPC_SECTION = 2

TPC_CLOSEB

TPC_CLOSEB = 3

TPC_DOT

TPC_DOT = 4

TPC_ID

TPC_ID = 5

TPC_EQUAL

TPC_EQUAL = 6

TPC_FLOAT

TPC_FLOAT = 7

TPC_INT

TPC_INT = 8

TPC_BOOL

TPC_BOOL = 9

TPC_SINGLE_QUOTED_STRING

TPC_SINGLE_QUOTED_STRING = 10

TPC_DOUBLE_QUOTED_STRING

TPC_DOUBLE_QUOTED_STRING = 11

TPC_TRIPPLE_QUOTES

TPC_TRIPPLE_QUOTES = 12

TPC_TRIPPLE_TEXT

TPC_TRIPPLE_TEXT = 13

TPC_TRIPPLE_QUOTES_END

TPC_TRIPPLE_QUOTES_END = 14

TPC_NAKED_STRING

TPC_NAKED_STRING = 15

TPC_OTHER

TPC_OTHER = 16

TPC_NEWLINE

TPC_NEWLINE = 17

TPC_COMMENTSTART

TPC_COMMENTSTART = 18

YY_NO_ACTION

YY_NO_ACTION = 60

YY_ACCEPT_ACTION

YY_ACCEPT_ACTION = 59

YY_ERROR_ACTION

YY_ERROR_ACTION = 58

YY_SZ_ACTTAB

YY_SZ_ACTTAB = 38

YY_SHIFT_USE_DFLT

YY_SHIFT_USE_DFLT = -8

YY_SHIFT_MAX

YY_SHIFT_MAX = 19

YY_REDUCE_USE_DFLT

YY_REDUCE_USE_DFLT = -21

YY_REDUCE_MAX

YY_REDUCE_MAX = 10

YYNOCODE

YYNOCODE = 29

YYSTACKDEPTH

YYSTACKDEPTH = 100

YYNSTATE

YYNSTATE = 36

YYNRULE

YYNRULE = 22

YYERRORSYMBOL

YYERRORSYMBOL = 19

YYERRSYMDT

YYERRSYMDT = 'yy0'

YYFALLBACK

YYFALLBACK = 0

Properties

$successful

$successful : boolean

result status

Type

boolean

$retvalue

$retvalue : mixed

return value

Type

mixed

$yymajor

$yymajor : 

Type

$smarty

$smarty : \Smarty

smarty object

Type

\Smarty

$yy_action

$yy_action : 

Type

$yy_lookahead

$yy_lookahead : 

Type

$yy_shift_ofst

$yy_shift_ofst : 

Type

$yy_reduce_ofst

$yy_reduce_ofst : 

Type

$yyExpectedTokens

$yyExpectedTokens : 

Type

$yy_default

$yy_default : 

Type

$yyFallback

$yyFallback : 

Type

$yyTraceFILE

$yyTraceFILE : 

Type

$yyTracePrompt

$yyTracePrompt : 

Type

$yyidx

$yyidx : 

Type

$yyerrcnt

$yyerrcnt : 

Type

$yystack

$yystack : 

Type

$yyTokenName

$yyTokenName : 

Type

$yyRuleName

$yyRuleName : 

Type

$yyRuleInfo

$yyRuleInfo : 

Type

$yyReduceMap

$yyReduceMap : 

Type

$internalError

$internalError : boolean

internal error flag

Type

boolean

$configOverwrite

$configOverwrite : boolean

copy of config_overwrite property

Type

boolean

$configReadHidden

$configReadHidden : boolean

copy of config_read_hidden property

Type

boolean

$escapes_single

$escapes_single : array

helper map

Type

array

$_retvalue

$_retvalue : 

Type

Methods

Trace()

Trace(  $TraceFILE,   $zTracePrompt) 

Parameters

$TraceFILE
$zTracePrompt

PrintTrace()

PrintTrace() 

tokenName()

tokenName(  $tokenType) 

Parameters

$tokenType

yy_destructor()

yy_destructor(  $yymajor,   $yypminor) 

Parameters

$yymajor
$yypminor

yy_pop_parser_stack()

yy_pop_parser_stack() 

__destruct()

__destruct() 

yy_get_expected_tokens()

yy_get_expected_tokens(  $token) 

Parameters

$token

yy_is_expected_token()

yy_is_expected_token(  $token) 

Parameters

$token

yy_find_shift_action()

yy_find_shift_action(  $iLookAhead) 

Parameters

$iLookAhead

yy_find_reduce_action()

yy_find_reduce_action(  $stateno,   $iLookAhead) 

Parameters

$stateno
$iLookAhead

yy_shift()

yy_shift(  $yyNewState,   $yyMajor,   $yypMinor) 

Parameters

$yyNewState
$yyMajor
$yypMinor

yy_r0()

yy_r0() 

yy_r1()

yy_r1() 

yy_r4()

yy_r4() 

yy_r5()

yy_r5() 

yy_r6()

yy_r6() 

yy_r7()

yy_r7() 

yy_r8()

yy_r8() 

yy_r9()

yy_r9() 

yy_r10()

yy_r10() 

yy_r11()

yy_r11() 

yy_r12()

yy_r12() 

yy_r13()

yy_r13() 

yy_r14()

yy_r14() 

yy_r15()

yy_r15() 

yy_r16()

yy_r16() 

yy_r17()

yy_r17() 

yy_reduce()

yy_reduce(  $yyruleno) 

Parameters

$yyruleno

yy_parse_failed()

yy_parse_failed() 

yy_syntax_error()

yy_syntax_error(  $yymajor,   $TOKEN) 

Parameters

$yymajor
$TOKEN

yy_accept()

yy_accept() 

doParse()

doParse(  $yymajor,   $yytokenvalue) 

Parameters

$yymajor
$yytokenvalue

parse_bool()

parse_bool(string  $str) : boolean

parse optional boolean keywords

Parameters

string $str

Returns

boolean

parse_single_quoted_string()

parse_single_quoted_string(string  $qstr) : string

parse single quoted string remove outer quotes unescape inner quotes

Parameters

string $qstr

Returns

string

parse_double_quoted_string()

parse_double_quoted_string(string  $qstr) : string

parse double quoted string

Parameters

string $qstr

Returns

string

parse_tripple_double_quoted_string()

parse_tripple_double_quoted_string(string  $qstr) : string

parse triple quoted string

Parameters

string $qstr

Returns

string

set_var()

set_var(array  $var, array  $target_array) 

set a config variable in target array

Parameters

array $var
array $target_array

add_global_vars()

add_global_vars(array  $vars) 

add config variable to global vars

Parameters

array $vars

add_section_vars()

add_section_vars(string  $section_name, array  $vars) 

add config variable to section

Parameters

string $section_name
array $vars