PHP Classes
elePHPant
Icontem

File: Examples/demo1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Thomas Björk  >  LOCO  >  Examples/demo1.php  >  Download  
File: Examples/demo1.php
Role: Example script
Content type: text/plain
Description: Example 1
Class: LOCO
Queue actions on objects to be performed later
Author: By
Last change: Changed sorting order
Date: 4 years ago
Size: 284 bytes
 

Contents

Class file image Download
<?php
include_once('../loco.php');
class
Test {
  var
$value;
}

$gl = new GoLOCO('Test');
$gl->value = 42;
$actions = $gl->__locoget();

$gl2 = new GoLOCO();
$gl2->__locoset($actions);
$gl2->__locogo();
$test = $gl2->__locoobject();

echo
$test->value;
echo
"\n";
?>