/** * sets a reference from the global scope to the container. * * @param string The name of a variable on the global scope * to be added to the container * * @return mixed FALSE if the var cannot be set, else the variable ref. * * @access public * * @static */ static function &setFromGlobal($name) { $v =& ContainerBase::get($GLOBALS, $name); if ($v === NULL) { return FALSE; } return SingletonContainer::setByRef($name, $v); }