Generates current view id.

@return string
320532
protected function generateViewId()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $viewId = $this->generateViewIdBase();

        $viewId .= "|" . ((int) $this->_blForceNoIndex) . '|' . ((int) $this->isRootCatChanged());

        // #0004798: SSL should be included in viewId
        if ($config->isSsl()) {
            $viewId .= "|ssl";
        }

        // #0002866: external global viewID addition
        if (function_exists('customGetViewId')) {
            $externalViewId = customGetViewId();

            if ($externalViewId !== null) {
                $viewId .= '|' . md5(serialize($externalViewId));
            }
        }

        return $viewId;
    }
434420
public function getActiveShopId()
    {
        if (($sValue = $this->getViewConfigParam('shopid')) === null) {
            $sValue = $this->getConfig()->getShopId();
            $this->setViewConfigParam('shopid', $sValue);
        }

        return $sValue;
    }
496475
public function id() : string
    {
        $name = $this->name();
        $name = preg_replace("@\[\]$@", '', $name);
        if ($name) {
            return $name.'-'.$this->value;
        }
        return $name;
    }
269451
protected function getView()
    {
        if (!$this->view) {
            $config = isset($this->options[self::OPTION_VIEW]) ? $this->options[self::OPTION_VIEW] : [];
            $config = $this->configToArray($config, true);

            $view = $this->createMvcView($config);

            if ($view instanceof IModelAware) {
                $view->setModelFactory($this->getModelsFactory());
            }

            return $this->view = $view;
        }

        return $this->view;
    }
542726
public function getLayoutID(){
        $out = '';
        extract($this->request->params);  
        
        if ($prefix) {
            $out  .= ucfirst($prefix).'-' ; 
        }

        if ($plugin) {
            $out  .= ucfirst($plugin) ; 
        }

        $out .= ucfirst($controller);
        $out .= ucfirst($action);
        
        return  $out;
    }
457174
public function getCurrentHomeDir()
    {
        if (($sValue = $this->getViewConfigParam('currenthomedir')) === null) {
            $sValue = $this->getConfig()->getCurrentShopUrl();
            $this->setViewConfigParam('currenthomedir', $sValue);
        }

        return $sValue;
    }
634986
public function getViewId()
    {
        $viewId = is_null($this->viewId) ? strtolower($this->getControllerKey()) : $this->viewId;
        return $this->getNavigation()->getClassId($viewId);
    }
1243530
protected function generateViewIdBase()
    {
        $languageId = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        $currencyId = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getShopCurrency();

        return "ox|$languageId|$currencyId";
    }
792649
public function getView()
    {
        if (view()->exists(static::$view)) {
            return static::$view;
        }

        if (view()->exists('admin.widgets.'.static::safeTitle().'.widget')) {
            return 'admin.widgets.'.static::safeTitle().'.widget';
        }

        if (view()->exists('admin.widgets.'.static::safeTitle())) {
            return 'admin.widgets.'.static::safeTitle();
        }

        if (view()->exists('admin.'.static::safeTitle())) {
            return 'admin.'.static::safeTitle();
        }

        if (view()->exists('flare::'.self::$view)) {
            return 'flare::'.self::$view;
        }
    }
562251
private function generateView()
    {
        // Figure out the naming
        $path = 'resources/views/admin/'
            . Str::plural(Str::snake($this->argument('model')))
            . '/edit.haml';
        $file = base_path().'/'.$path;

        // Copy the stub over
        if (!file_exists(dirname($file))) {
            mkdir(dirname($file), 0744, true);
        }
        if (file_exists($file)) {
            return $this->comment('View already exists: '.$path);
        }
        copy($this->stubs.'/view.stub', $file);
        $this->info('View created: '.$path);
    }
247488
protected function getNewView()
    {
        if ($this->currentSite) {
            return str_replace(
                ['.blade.php'],
                [''],
                $this->sitesFolder.'.'.$this->currentSite->slug.'.'.$this->currentPath
            );
        }

        return $this->currentPath;
    }
1041984
public function render()
    {
        if (!$this->display) {
            return '';
        }

        Admin::script($this->script);

        return view($this->getView(), $this->variables());
    }
1358254
public function getViewPath()
    {
        $module = $this->module;
        
        if (substr($module, 0, 1) !== '@') {
            $module = '@'.$module;
        }
        
        return implode(DIRECTORY_SEPARATOR, [Yii::getAlias($module), 'views', 'aws', $this->getViewFolderName()]);
    }
517101
public function getActiveViewsIds()
    {
        $ids = [];

        if (is_array($this->getActiveViewsList())) {
            foreach ($this->getActiveViewsList() as $view) {
                $ids[] = $view->getClassKey();
            }
        }

        return $ids;
    }
1003266
public function getId() {
		$options = $this->getOptions();
		$id = elgg_extract('list_id', $options);
		if (!$id) {
			$id = md5($this->getBaseURL());
		}
		return $id;
	}
1304763
public static function generateId()
    {
        static $inc = 0;

        $ts = pack('N', time());
        $m = substr(md5(gethostname()), 0, 3);
        $pid = pack('n', 1);
        $trail = substr(pack('N', $inc++), 1, 3);

        $bin = sprintf('%s%s%s%s', $ts, $m, $pid, $trail);
        $id = '';
        for ($i = 0; $i < 12; $i++) {
            $id .= sprintf('%02X', ord($bin[$i]));
        }

        return strtolower($id);
    }
219719
protected static function _getUserId()
    {
        if (is_null(self::$_userID)) {
            self::$_userID = null;
            if (isset(Yii::$app->user) and !empty(Yii::$app->user->id)) {
                self::$_userID = Yii::$app->user->id;
            }
        }

        return self::$_userID;
    }