PHP Classes

File: tests/assert_templates/global.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas  >  Haanga  >  tests/assert_templates/global.php  >  Download  
File: tests/assert_templates/global.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Haanga
Template engine to process Django style templates
Author: By
Last change: Update of tests/assert_templates/global.php
Date: 3 years ago
Size: 546 bytes
 

Contents

Class file image Download
<?php
$obj
= new stdclass;
$obj->str = 'foo';
$data = array('index' => array('name' => $obj), 'indexstr' => 'foo');
$obj = new Stdclass;
$obj->foo = array('bar' => 'c');

global
$test_global, $global1;

$test_global = array('b' => 'string');
$global1 = array('foo' => $obj);

if (!
is_callable('set_global_template')) {
    function
set_global_template()
    {
        global
$test_global, $global1;
       
$global1['bar'] = new stdclass;
       
$global1['bar']->xxx = new stdclass;
       
$global1['bar']->xxx->yyyy = 'xxx';
    }
}

For more information send a message to info at phpclasses dot org.