# css-javascript-toolbox/12.0.6/access.points/packages.accesspoint.php

CSS &amp; JavaScript Toolbox, version 12.0.6. 71 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/12.0.6/code/access.points/packages.accesspoint.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/12.0.6/raw/access.points/packages.accesspoint.php
- Modified: 2025-10-28T13:57:12+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/12.0.6/code/access.points/packages.accesspoint.php#L10-L20`.

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

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

/**
*
*/
class CJTPackagesAccessPoint extends CJTPageAccessPoint {

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

	/**
	* put your comment there...
	*
	*/
	protected function doListen() {
		// Only if permitted!
		if ($this->hasAccess()) {
			// Add menu page.
			add_action('admin_menu', array(&$this, 'menu'), 11);
		}
	}

	/**
	* put your comment there...
	*
	*/
	public function menu() {
		// Setup Page.
		// $pageHookId = add_submenu_page(
		// 	CJTPlugin::PLUGIN_REQUEST_ID,
		// 	cssJSToolbox::getText('CJT Manage - Packages'),
		// 	cssJSToolbox::getText('Packages'),
		// 	'administrator',
		// 	CJTPlugin::PLUGIN_REQUEST_ID . '-packages',
		// 	array(&$this->controller, '_doAction')
		// );
		// // Process when its installed!!
		// add_action("load-{$pageHookId}", array($this, 'getPage'));
	}

	/**
	* put your comment there...
	*
	*/
	public function route($loadView = null, $request = array('view' => 'packages/manager')) {
		// Load package manager view  through the default controller.
		$this->controllerName = 'default';
		// Set MVC request parameters.
		parent::route($loadView, $request)
		// Fire 'display' action.
		->setAction('display');
	}

} // End class.

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