# css-javascript-toolbox/6.0.6/access.points/manage.accesspoint.php

CSS &amp; JavaScript Toolbox, version 6.0.6. 58 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.6/code/access.points/manage.accesspoint.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.6/raw/access.points/manage.accesspoint.php
- Modified: 2013-03-17T20:09:52+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/6.0.6/code/access.points/manage.accesspoint.php#L10-L20`.

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

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

/**
* 
*/
class CJTManageAccessPoint extends CJTPageAccessPoint {

	/**
	* put your comment there...
	* 
	*/
	public function __construct() {
		// Initialize Access Point base!
		parent::__construct();
		// Set access point name!
		$this->name = 'manage';
	}

	/**
	* put your comment there...
	* 
	*/
	protected function doListen() {
		// Only if permitted!
		if ($this->hasAccess()) {
			// Add menu page.
			add_action('admin_menu', array(&$this, 'menu'));
		}
	}
	
	/**
	* put your comment there...
	* 
	*/
	public function menu() {
		// Blocks Manager page! The only Wordpress menu item we've.
		$pageHookId= add_menu_page(
			cssJSToolbox::getText('CSS & Javascript Toolbox'), 
			cssJSToolbox::getText('CSS & Javascript Toolbox'), 
			'administrator', 
			CJTPlugin::PLUGIN_REQUEST_ID, 
			array(&$this->controller, '_doAction'),
			CJTOOLBOX_VIEWS_URL . '/blocks/manager/public/images/menu.png'
		);
		// Process request if installed!
		add_action("load-{$pageHookId}", array($this, 'getPage'));
	}
	
} // End class.

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