PluginProbe
CSS & JavaScript Toolbox / 6.1
CSS & JavaScript Toolbox v6.1
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 / backups / manager / view.php

view.php in CSS & JavaScript Toolbox 6.1, at views/backups/manager/view.php

92 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @version $ Id; view.php 21-03-2012 03:22:10 Ahmed Said $
4 */
5
6 // Disallow direct access.
7 defined('ABSPATH') or die("Access denied");
8
9 /**
10 *
11 *
12 * The method is resposible for selecting the correct template
13 * and initialize template vars.
14 *
15 * @author Ahmed Said
16 * @version 6
17 */
18 class CJTBackupsManagerView extends CJTView {
19
20 /**
21 * put your comment there...
22 *
23 * @var mixed
24 */
25 public $backups = array();
26
27 /**
28 * put your comment there...
29 *
30 * @var mixed
31 */
32 public $controllerName = '';
33
34 /**
35 * put your comment there...
36 *
37 * @var mixed
38 */
39 public $currentBackup = null;
40
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 /**
55 * Output Add New Block markups.
56 *
57 * @return void
58 */
59 public function display() {
60 echo $this->getTemplate('default');
61 }
62
63 /**
64 * Output Javascript files requirred to Backups view to run.
65 *
66 * @return void
67 */
68 public static function enququeScripts() {
69 // Import all required Javascript with localization.
70 self::useScripts(__CLASS__,
71 'jquery',
72 'framework:js:ui:{CJT-}jquery.link-progress',
73 'views:backups:manager:public:js:{CJT-}backups'
74 );
75 }
76
77 /**
78 * Output CSS files required to Backups view.
79 *
80 * @return void
81 */
82 public static function enququeStyles() {
83 self::useStyles(__CLASS__,
84 'framework:css:{CJT-}forms',
85 'views:backups:manager:public:css:{CJT-}backups'
86 );
87 }
88
89 } // End class.
90
91 // Hookable!!
92 CJTBackupsManagerView::define('CJTBackupsManagerView');