PluginProbe
CSS & JavaScript Toolbox / 11
CSS & JavaScript Toolbox v11
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 / views / installer / install / view.php

view.php in CSS & JavaScript Toolbox 11, at views/installer/install/view.php

120 lines 2.0 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 CJTInstallerInstallView extends CJTView {
13
14 /**
15 * put your comment there...
16 *
17 * @var Exception
18 */
19 protected $error;
20
21 /**
22 * put your comment there...
23 *
24 * @var mixed
25 */
26 protected $installedDbVersion;
27
28 /**
29 * put your comment there...
30 *
31 * @var mixed
32 */
33 protected $installedDbVersionId;
34
35 /**
36 * put your comment there...
37 *
38 * @var mixed
39 */
40 protected $operations;
41
42 /**
43 * put your comment there...
44 *
45 * @var mixed
46 */
47 protected $securityToken;
48
49 /**
50 * put your comment there...
51 *
52 * @var mixed
53 */
54 protected $upgrade;
55
56 /**
57 * put your comment there...
58 *
59 * @param mixed $info
60 * @return CJTInstallerInstallView
61 */
62 public function __construct($info) {
63 parent::__construct($info);
64 // Link scripts & styles.
65 self::enququeScripts();
66 self::enququeStyles();
67 }
68
69 /**
70 * put your comment there...
71 *
72 * @param mixed $tpl
73 */
74 public function display($tpl = null) {
75 $model = $this->getModel('installer');
76 // Initialize templates vars!
77 try {
78 $this->installedDbVersion = $model->getInstalledDbVersion();
79 $this->installedDbVersionId = $model->getInternalVersionName();
80 $this->securityToken = cssJSToolbox::getSecurityToken();
81 $this->operations = $model->getOperations();
82 $this->upgrade = $model->isUpgrade();
83 }
84 catch (Exception $exception) {
85 $this->error = $exception;
86 }
87 // Display view!
88 echo $this->getTemplate($tpl);
89 }
90
91 /**
92 *
93 *
94 * @return void
95 */
96 public function enququeScripts() {
97 // Use related scripts.
98 self::useScripts(__CLASS__,
99 'thickbox',
100 'views:installer:install:public:js:{CJTInstaller-}default',
101 'framework:js:ajax:{CJT-}cjt-server',
102 'framework:js:{CJTFrameworkInstaller-}installer'
103 );
104 }
105
106 /**
107 *
108 *
109 * @return void
110 */
111 public function enququeStyles() {
112 // Use related styles.
113 self::useStyles(__CLASS__,
114 'thickbox',
115 'views:installer:install:public:css:{CJTInstaller-}default',
116 'framework:css:{CJT-}install-notice'
117 );
118 }
119
120 } // End class.