Login   Register  
PHP Classes
elePHPant
Icontem

File: gPlugins/gPlugin.assign.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of unknown man  >  Gedar Template Engine  >  gPlugins/gPlugin.assign.inc.php  >  Download  
File: gPlugins/gPlugin.assign.inc.php
Role: Auxiliary script
Content type: text/plain
Description: plugin
Class: Gedar Template Engine
Compiling template engine with plug-in support
Author: By
Last change:
Date: 2005-10-28 06:40
Size: 619 bytes
 

Contents

Class file image Download
<?php
  
/**
   * Gedar Template Engine plugin
   * @package Gedar
   * @subpackage plugins
   */

  /**
   * Gedar {assign} function
   *
   * Type:     function
   * Name:     assign
   * Purpose:  assign a name to a variable and set its value
   * @authur Ali masoudi <me@alimasoudi.com>
   * @param array $varName
   * @param array $varValue
   * @param object $gedar
   * @return true
   */
function gedar_assign_do($varName,$varValue,&$gedar)
{
  if(
substr(trim($varValue),0,1)=='$')
    
$varValue=$gedar->_TplVars[substr(trim($varValue),1)];
  
$gedar->_TplVars[$varName]=$varValue;
}

?>