PluginProbe
CSS & JavaScript Toolbox / 6.0.15
CSS & JavaScript Toolbox v6.0.15
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 | views/backups/manager/view.php +34 -21 126.0.15 View file →
@@ -6,74 +6,87 @@
6 6 // Disallow direct access.
7 7 defined('ABSPATH') or die("Access denied");
8 8
9 9 /**
10 -*
11 -*
10 +*
11 +*
12 12 * The method is resposible for selecting the correct template
13 13 * and initialize template vars.
14 -*
14 +*
15 15 * @author Ahmed Said
16 16 * @version 6
17 17 */
18 18 class CJTBackupsManagerView extends CJTView {
19 -
19 +
20 20 /**
21 21 * put your comment there...
22 - *
22 + *
23 23 * @var mixed
24 24 */
25 25 public $backups = array();
26 -
26 +
27 27 /**
28 28 * put your comment there...
29 - *
29 + *
30 30 * @var mixed
31 31 */
32 32 public $controllerName = '';
33 -
33 +
34 34 /**
35 35 * put your comment there...
36 - *
36 + *
37 37 * @var mixed
38 38 */
39 39 public $currentBackup = null;
40 -
40 +
41 41 /**
42 + * Initialize view object.
43 + *
44 + * @see CJTView for more details
45 + * @return void
46 + */
47 + public function __construct($parameters) {
48 + parent::__construct($parameters);
49 + // Enqueue Styles & Scripts.
50 + $this->enququeScripts();
51 + $this->enququeStyles();
52 + }
53 +
54 + /**
42 55 * Output Add New Block markups.
43 - *
56 + *
44 57 * @return void
45 58 */
46 59 public function display() {
47 60 echo $this->getTemplate('default');
48 61 }
49 -
62 +
50 63 /**
51 - * Output JavaScript files requirred to Backups view to run.
52 - *
64 + * Output Javascript files requirred to Backups view to run.
65 + *
53 66 * @return void
54 67 */
55 68 public static function enququeScripts() {
56 - // Import all required JavaScript with localization.
69 + // Import all required Javascript with localization.
57 70 self::useScripts(__CLASS__,
58 - 'jquery',
59 - 'framework:js:ui:{CJT-}jquery.link-progress',
71 + 'jquery',
72 + 'framework:js:ui:{CJT-}jquery.link-progress',
60 73 'views:backups:manager:public:js:{CJT-}backups'
61 74 );
62 75 }
63 -
76 +
64 77 /**
65 78 * Output CSS files required to Backups view.
66 - *
79 + *
67 80 * @return void
68 81 */
69 82 public static function enququeStyles() {
70 83 self::useStyles(__CLASS__,
71 - 'framework:css:{CJT-}forms',
84 + 'framework:css:{CJT-}forms',
72 85 'views:backups:manager:public:css:{CJT-}backups'
73 86 );
74 87 }
75 -
88 +
76 89 } // End class.
77 90
78 91 // Hookable!!
79 92 CJTBackupsManagerView::define('CJTBackupsManagerView');