| 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 |
* Output Add New Block markups. |
| 43 |
* |
| 44 |
* @return void |
| 45 |
*/ |
| 46 |
public function display() { |
| 47 |
echo $this->getTemplate('default'); |
| 48 |
} |
| 49 |
|
| 50 |
/** |
| 51 |
* Output JavaScript files requirred to Backups view to run. |
| 52 |
* |
| 53 |
* @return void |
| 54 |
*/ |
| 55 |
public static function enququeScripts() { |
| 56 |
// Import all required JavaScript with localization. |
| 57 |
self::useScripts(__CLASS__, |
| 58 |
'jquery', |
| 59 |
'framework:js:ui:{CJT-}jquery.link-progress', |
| 60 |
'views:backups:manager:public:js:{CJT-}backups' |
| 61 |
); |
| 62 |
} |
| 63 |
|
| 64 |
/** |
| 65 |
* Output CSS files required to Backups view. |
| 66 |
* |
| 67 |
* @return void |
| 68 |
*/ |
| 69 |
public static function enququeStyles() { |
| 70 |
self::useStyles(__CLASS__, |
| 71 |
'framework:css:{CJT-}forms', |
| 72 |
'views:backups:manager:public:css:{CJT-}backups' |
| 73 |
); |
| 74 |
} |
| 75 |
|
| 76 |
} // End class. |
| 77 |
|
| 78 |
// Hookable!! |
| 79 |
CJTBackupsManagerView::define('CJTBackupsManagerView'); |