20 lines
302 B
PHP
20 lines
302 B
PHP
<?php
|
|
/*
|
|
Author: Riccardo Di Dato
|
|
Creation Date: 12/gen/2016
|
|
*/
|
|
|
|
class GlobalVariables {
|
|
private static $variables = array();
|
|
|
|
public static function set($name, $value){
|
|
self::$variables[$name] = clone $value;
|
|
}
|
|
|
|
public static function get($name){
|
|
return self::$variables[$name];
|
|
}
|
|
|
|
}
|
|
|
|
?>
|