apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: HTML_Template_Flexy_Compiler_SmartyConvertor

Source Location: /HTML_Template_Flexy-1.3.13/HTML/Template/Flexy/Compiler/SmartyConvertor.php

Class Overview

HTML_Template_Flexy_Compiler
   |
   --HTML_Template_Flexy_Compiler_SmartyConvertor

The Smarty Converter implementation.


Author(s):

Version:

  • $Id: SmartyConvertor.php 162576 2004-07-03 03:46:43Z alan_k $

Variables

Methods


Inherited Variables

Inherited Methods

Class: HTML_Template_Flexy_Compiler

HTML_Template_Flexy_Compiler::appendHtml()
Append HTML to compiled ouput These are hooks for passing data to other processes
HTML_Template_Flexy_Compiler::appendPhp()
Append PHP Code to compiled ouput These are hooks for passing data to other processes
HTML_Template_Flexy_Compiler::compile()
The compile method.
HTML_Template_Flexy_Compiler::compileAll()
Compile All templates in the These are hooks for passing data to other processes
HTML_Template_Flexy_Compiler::compileDir()
HTML_Template_Flexy_Compiler::factory()
Factory constructor
HTML_Template_Flexy_Compiler::is_a()
Php4 is_a compat !

Class Details

[line 65]
The Smarty Converter implementation.

designed primarily to be used as above, to convert from one to another. however it could be used inline to convert simple smarty templates into flexy ones - then compile them on the fly.

  • Version: $Id: SmartyConvertor.php 162576 2004-07-03 03:46:43Z alan_k $


[ Top ]


Class Variables

$stack = array(
            'if' => 0,
        )

[line 146]

stack for conditional and closers.
  • Access: public

Type:   array


[ Top ]



Method Detail

compile   [line 79]

true compile( object The &$flexy, [string $string = false])

compile implementation

see HTML_Template_Flexy_Compiler::compile()

  • Return: | string string when compiling to String.
  • Access: public

Overrides HTML_Template_Flexy_Compiler::compile() (The compile method.)

Parameters:

object The   &$flexy   —  core flexy object.
string   $string   —  optionally a string to compile.

[ Top ]

convertToFlexy   [line 111]

string convertToFlexy( string $data)

The core work of parsing a smarty template and converting it into flexy.
  • Return: the flexy version of the template.
  • See: see also methods.....

Parameters:

string   $data   —  the contents of the smarty template

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:59:57 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.