# css-javascript-toolbox/11.9/views/installer/install/view.php

CSS &amp; JavaScript Toolbox, version 11.9. 120 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/11.9/code/views/installer/install/view.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/11.9/raw/views/installer/install/view.php
- Modified: 2024-01-15T08:59:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/11.9/code/views/installer/install/view.php#L10-L20`.

```php
<?php
/**
*
*/

// Disallow direct access.
defined('ABSPATH') or die("Access denied");

/**
*
*/
class CJTInstallerInstallView extends CJTView {

	/**
	* put your comment there...
	*
	* @var Exception
	*/
	protected $error;

	/**
	* put your comment there...
	*
	* @var mixed
	*/
	protected $installedDbVersion;

	/**
	* put your comment there...
	*
	* @var mixed
	*/
	protected $installedDbVersionId;

	/**
	* put your comment there...
	*
	* @var mixed
	*/
	protected $operations;

	/**
	* put your comment there...
	*
	* @var mixed
	*/
	protected $securityToken;

	/**
	* put your comment there...
	*
	* @var mixed
	*/
	protected $upgrade;

	/**
	* put your comment there...
	*
	* @param mixed $info
	* @return CJTInstallerInstallView
	*/
	public function __construct($info) {
		parent::__construct($info);
		// Link scripts & styles.
		self::enququeScripts();
		self::enququeStyles();
	}

	/**
	* put your comment there...
	*
	* @param mixed $tpl
	*/
	public function display($tpl = null) {
		$model = $this->getModel('installer');
		// Initialize templates vars!
		try {
			$this->installedDbVersion = $model->getInstalledDbVersion();
			$this->installedDbVersionId = $model->getInternalVersionName();
			$this->securityToken = cssJSToolbox::getSecurityToken();
			$this->operations = $model->getOperations();
			$this->upgrade = $model->isUpgrade();
		}
		catch (Exception $exception) {
			$this->error = $exception;
		}
		// Display view!
		echo $this->getTemplate($tpl);
	}

	/**
	*
	*
	* @return void
	*/
	public function enququeScripts() {
		// Use related scripts.
		self::useScripts(__CLASS__,
			'thickbox',
			'views:installer:install:public:js:{CJTInstaller-}default',
			'framework:js:ajax:{CJT-}cjt-server',
			'framework:js:{CJTFrameworkInstaller-}installer'
		);
	}

	/**
	*
	*
	* @return void
	*/
	public function enququeStyles() {
		// Use related styles.
		self::useStyles(__CLASS__,
			'thickbox',
			'views:installer:install:public:css:{CJTInstaller-}default',
			'framework:css:{CJT-}install-notice'
		);
	}

} // End class.
```
