PluginProbe
CSS & JavaScript Toolbox / 9.3
CSS & JavaScript Toolbox v9.3
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
css-javascript-toolbox / access.points / packages.accesspoint.php

packages.accesspoint.php in CSS & JavaScript Toolbox 9.3, at access.points/packages.accesspoint.php

71 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 *
4 */
5
6 // Disallow direct access.
7 defined('ABSPATH') or die("Access denied");
8
9 /**
10 *
11 */
12 class CJTPackagesAccessPoint extends CJTPageAccessPoint {
13
14 /**
15 * put your comment there...
16 *
17 */
18 public function __construct() {
19 // Initialize Access Point base!
20 parent::__construct();
21 // Set access point name!
22 $this->name = 'packages-manager';
23 }
24
25 /**
26 * put your comment there...
27 *
28 */
29 protected function doListen() {
30 // Only if permitted!
31 if ($this->hasAccess()) {
32 // Add menu page.
33 add_action('admin_menu', array(&$this, 'menu'), 11);
34 }
35 }
36
37 /**
38 * put your comment there...
39 *
40 */
41 public function menu() {
42 // Setup Page.
43 // $pageHookId = add_submenu_page(
44 // CJTPlugin::PLUGIN_REQUEST_ID,
45 // cssJSToolbox::getText('CJT Manage - Packages'),
46 // cssJSToolbox::getText('Packages'),
47 // 'administrator',
48 // CJTPlugin::PLUGIN_REQUEST_ID . '-packages',
49 // array(&$this->controller, '_doAction')
50 // );
51 // // Process when its installed!!
52 // add_action("load-{$pageHookId}", array($this, 'getPage'));
53 }
54
55 /**
56 * put your comment there...
57 *
58 */
59 public function route($loadView = null, $request = array('view' => 'packages/manager')) {
60 // Load package manager view through the default controller.
61 $this->controllerName = 'default';
62 // Set MVC request parameters.
63 parent::route($loadView, $request)
64 // Fire 'display' action.
65 ->setAction('display');
66 }
67
68 } // End class.
69
70 // Hookable!
71 CJTPackagesAccessPoint::define('CJTPackagesAccessPoint', array('hookType' => CJTWordpressEvents::HOOK_FILTER));