Example #1
0
	function remove($name, $property = null) {
		Session::start();
		if (empty($property)) {
			unset($_SESSION[$name]);
		} else {
			Bean::set($_SESSION[$name], $property, null);
		}
	}
Example #2
0
	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);
		}
	}
Example #3
0
	function copy($source, &$destination, $includes) {
		while(list(,$include) = each($includes)) {
			$value = Bean::get($source, $include);
			Bean::set($destination, $include, $value);
		}
	}
Example #4
0
	function fetch($key) {
		$value = Session::load(ACTION_SCOPE, get_class($this).".$key");
		Bean::set($this, $key, $value);
		return $value;
	}