PHP Classes

File: Examples/demo1.php

Recommend this page to a friend!
  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: Update of Examples/demo1.php
Date: 5 months 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";
?>