PluginProbe
CSS & JavaScript Toolbox / 12.0
CSS & JavaScript Toolbox v12.0
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
← All changes | controllers/setup.php +26 -16 1112.0 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2 /**
3 -*
3 +*
4 4 */
5 5
6 6 // Disallow direct access.
7 7 defined('ABSPATH') or die("Access denied");
@@ -9,44 +9,54 @@
9 9 // import dependencies.
10 10 cssJSToolbox::import('framework:mvc:controller-ajax.inc.php');
11 11
12 12 /**
13 -*
13 +*
14 14 */
15 15 class CJTsetupController extends CJTAjaxController {
16 -
16 +
17 17 /**
18 18 * put your comment there...
19 - *
19 + *
20 20 * @var mixed
21 21 */
22 22 protected $controllerInfo = array('model' => 'setup');
23 -
23 +
24 24 /**
25 25 * put your comment there...
26 - *
26 + *
27 27 */
28 28 public function __construct() {
29 29 parent::__construct();
30 30 // Register actions!
31 31 $this->registryAction('activationFormView');
32 - $this->registryAction('getState');
32 + $this->registryAction('promoTextView');
33 + $this->registryAction('getState');
33 34 $this->registryAction('license');
34 35 $this->registryAction('reset');
35 36 }
36 -
37 +
37 38 /**
38 39 * Display Activation form!
39 - *
40 + *
40 41 */
41 42 protected function activationFormViewAction() {
42 43 // Display activation for for the requested component!
43 44 parent::displayAction();
44 45 }
45 -
46 +
46 47 /**
48 + * Display CJT Promo form!
49 + *
50 + */
51 + protected function promoTextViewAction() {
52 + // Display activation for for the requested component!
53 + parent::displayAction();
54 + }
55 +
56 + /**
47 57 * put your comment there...
48 - *
58 + *
49 59 */
50 60 protected function getStateAction() {
51 61 # Get component product types
52 62 $licenseTypes = $this->model->getExtensionProductTypes($_REQUEST['component']);
@@ -52,12 +62,12 @@
52 62 $licenseTypes = $this->model->getExtensionProductTypes($_REQUEST['component']);
53 63 # Return license state back
54 64 $this->response = $this->model->getStateStruct($licenseTypes);
55 65 }
56 -
66 +
57 67 /**
58 68 * put your comment there...
59 - *
69 + *
60 70 */
61 71 protected function licenseAction() {
62 72 // Read request parameters!
63 73 $action = $_REQUEST['licenseAction'];
@@ -73,12 +83,12 @@
73 83 }
74 84 // Return state object includes (component, license, edd response [and action only if valid])
75 85 $this->response = $state;
76 86 }
77 -
87 +
78 88 /**
79 89 * put your comment there...
80 - *
90 + *
81 91 */
82 92 protected function resetAction() {
83 93 // Initializing!
84 94 $model =& $this->model;
@@ -93,6 +103,6 @@
93 103 // even those not belongs to EDD real requests!!
94 104 $state['response']['item_name'] = $state['component']['name'];
95 105 $this->response = $state;
96 106 }
97 -
107 +
98 108 } // End class.