PluginProbe
CSS & JavaScript Toolbox / 11.5
CSS & JavaScript Toolbox v11.5
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 / controllers / installer.php

installer.php in CSS & JavaScript Toolbox 11.5, at controllers/installer.php

57 lines 1011 B
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 // import dependencies.
10 cssJSToolbox::import('framework:mvc:controller-ajax.inc.php');
11
12 /**
13 *
14 */
15 class CJTInstallerController extends CJTAjaxController {
16
17 /**
18 * put your comment there...
19 *
20 * @var mixed
21 */
22 protected $controllerInfo = array('model' => 'installer');
23
24 /**
25 * put your comment there...
26 *
27 */
28 public function __construct() {
29 parent::__construct();
30 // Register actions!
31 $this->registryAction('install');
32 $this->registryAction('dismissNotice');
33 }
34
35 /**
36 * put your comment there...
37 *
38 */
39 public function dismissNoticeAction() {
40 $this->model->dismissNotice(true);
41 $this->response = true;
42 }
43
44 /**
45 * put your comment there...
46 *
47 */
48 protected function installAction() {
49 // Get model object!
50 $model =& $this->model;
51 // Installa requested operation.
52 $input['operation'] = $_REQUEST['operation'];
53 $this->response = $model->setInput($input)->install();
54 }
55
56 } // End class.
57