# css-javascript-toolbox/8.0.3/access.points/installer.accesspoint.php

CSS &amp; JavaScript Toolbox, version 8.0.3. 86 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.3/code/access.points/installer.accesspoint.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.3/raw/access.points/installer.accesspoint.php
- Modified: 2013-03-23T20:56:44+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/8.0.3/code/access.points/installer.accesspoint.php#L10-L20`.

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

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

/**
* 
*/
class CJTInstallerAccessPoint extends CJTAccessPoint {
	
	/**
	* put your comment there...
	* 
	* @var mixed
	*/
	protected $stopNotices = false;
	
	/**
	* put your comment there...
	* 
	*/
	public function __construct() {
		// Initialize parent.
		parent::__construct();
		// Set name!
		$this->name = 'installer';
	}
	/**
	* put your comment there...
	* 
	*/
	protected function doListen() {
		// If not installed and not in manage page display admin notice!
		if (!CJTPlugin::getInstance()->isInstalled() && $this->hasAccess()) {
			add_action('admin_notices', array(&$this, 'notInstalledAdminNotice'));
		}
	}
	
	/**
	* put your comment there...
	* 
	*/
	public function installationPage() {
		if ($this->hasAccess()) {
			// Set as connected object!
			$this->connected();
			// Set controller internal parameters.
			return $this->route(null, array('view' => 'installer/install'))
			// Set Action
			->setAction('install');
		}
	}
	
	/**
	* put your comment there...
	* 
	*/
	public function notInstalledAdminNotice() {
		// Show Not installed admin notice only 
		// if there is no access point processed/connected the request
		if (!$this->stopNotices)	{
			// Set MVC request parameters.
			$this->route(null , array('view' => 'installer/notice'))
			// Set action name.
			->setAction('notInstalledNotice')
			// Fire action!
			->_doAction();
		}
	}
	
	/**
	* put your comment there...
	* 
	*/
	public function stopNotices()	{
		// Do not show admin notcies!
		$this->stopNotices = true;	
	}
	
} // End class.

// Hookable!
CJTInstallerAccessPoint::define('CJTInstallerAccessPoint', array('hookType' => CJTWordpressEvents::HOOK_FILTER));
```
