public function __construct(Application $aApp = null) { parent::__construct(); foreach (self::$arrDataSources as $sVarName) { if (isset($GLOBALS[$sVarName])) { if (!($aDataSrc = DataSrc::flyweight(array('request', $sVarName), false))) { $aDataSrc = new DataSrc($GLOBALS[$sVarName], true); DataSrc::setFlyweight($aDataSrc, array('request', $sVarName)); } $this->addChild($aDataSrc); } } // $_FILES $this->buildUploadFiles($aApp ?: Application::singleton()); // $this->sRequestUrl = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $this->set(parent::DATANAME_USERCALL, true); }