Prado\Web\UI\ActiveControls\TActiveFileUpload::popParamsByToken PHP Метод

popParamsByToken() защищенный Метод

protected popParamsByToken ( $token )
    protected function popParamsByToken($token)
    {
        if ($cache = Prado::getApplication()->getCache()) {
            $v = $cache->get($token);
            assert($v != '');
            $cache->delete($token);
            // remove it from cache so it can't be used again and won't take up space either
            $params = unserialize($v);
        } else {
            if ($mgr = Prado::getApplication()->getSecurityManager()) {
                $v = $mgr->decrypt(base64_decode(urldecode($token)));
                $params = unserialize($v);
            } else {
                throw new Exception('TActiveFileUpload needs either an application level cache or a security manager to work securely');
            }
        }
        assert($params instanceof TActiveFileUploadCallbackParams);
        return $params;
    }