function remove($name, $property = null) { Session::start(); if (empty($property)) { unset($_SESSION[$name]); } else { Bean::set($_SESSION[$name], $property, null); } }
function populate() { $scope = $GLOBALS["CFG_ACTION"]->SCOPE; $scopeVars = Bean::get('$'.$scope); while (list($key, $var) = each($scopeVars)) { if ($scope == "_REQUEST" || $scope == "_POST" || $scope == "_GET") { $key = str_replace("_", ".", $key); } Bean::set($this, $key, $var); } }
function copy($source, &$destination, $includes) { while(list(,$include) = each($includes)) { $value = Bean::get($source, $include); Bean::set($destination, $include, $value); } }
function fetch($key) { $value = Session::load(ACTION_SCOPE, get_class($this).".$key"); Bean::set($this, $key, $value); return $value; }