tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Source for file i_tple.class.php

Documentation is available at i_tple.class.php

  1. <?php
  2. // *** Tangra (Application Framework and Tools for PHP)
  3. // $Id$
  4. //
  5.  
  6. /**
  7.  * Contains interface I_TPLE
  8.  *
  9.  * @package tangra_lib
  10.  * @subpackage interfaces
  11.  *
  12.  */
  13.  
  14. /**
  15.  * When implemented shows that the class is Template Engine
  16.  *
  17.  * @package tangra_lib
  18.  * @subpackage interfaces
  19.  */
  20. interface I_Tple {
  21.     /**
  22.      * Displays the template
  23.      *
  24.      * @param string $tpl Template file
  25.      */
  26.     public function display($tpl);
  27.  
  28.     /**
  29.      * Fetches and returns the template
  30.      *
  31.      * @param unknown_type $tpl Template file
  32.      * @return  string 
  33.      */
  34.     public function fetch($tpl);
  35.  
  36.     /**
  37.      * Assignes value to variable in tple dataspace
  38.      *
  39.      * @param string $tpl_var Variable name
  40.      * @param unknown_type $value - Variable value
  41.      */
  42.     public function assign($tpl_var$value null);
  43.  
  44.  
  45.     /**
  46.      * Sets directory where TPL files reside
  47.      *
  48.      * @param string $tpl_dir 
  49.      */
  50.     public function set_tpl_dir($tpl_dir);
  51.  
  52.  
  53.     /**
  54.      * Gets directory where TPL files reside
  55.      *
  56.      */
  57.     public function get_tpl_dir();
  58. }