@@ 1795-1801 (lines=7) @@ | ||
1792 | $_index = substr($_index, 1, -1); |
|
1793 | if (is_numeric($_index)) { |
|
1794 | $_output .= "[$_index]"; |
|
1795 | } elseif (substr($_index, 0, 1) == '$') { |
|
1796 | if (strpos($_index, '.') !== false) { |
|
1797 | $_output .= '[' . $this->_parse_var($_index) . ']'; |
|
1798 | } else { |
|
1799 | $_output .= "[\$this->_tpl_vars['" . substr($_index, 1) . "']]"; |
|
1800 | } |
|
1801 | } else { |
|
1802 | $_var_parts = explode('.', $_index); |
|
1803 | $_var_section = $_var_parts[0]; |
|
1804 | $_var_section_prop = isset($_var_parts[1]) ? $_var_parts[1] : 'index'; |
|
@@ 1808-1811 (lines=4) @@ | ||
1805 | $_output .= "[\$this->_sections['$_var_section']['$_var_section_prop']]"; |
|
1806 | } |
|
1807 | } else if (substr($_index, 0, 1) == '.') { |
|
1808 | if (substr($_index, 1, 1) == '$') |
|
1809 | $_output .= "[\$this->_tpl_vars['" . substr($_index, 2) . "']]"; |
|
1810 | else |
|
1811 | $_output .= "['" . substr($_index, 1) . "']"; |
|
1812 | } else if (substr($_index,0,2) == '->') { |
|
1813 | if(substr($_index,2,2) == '__') { |
|
1814 | $this->_syntax_error('call to internal object members is not allowed', E_USER_ERROR, __FILE__, __LINE__); |