| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
// No direct access. |
| 7 |
defined('ABSPATH') or die('Access denied'); |
| 8 |
|
| 9 |
/** |
| 10 |
* |
| 11 |
*/ |
| 12 |
class CJTPackagesInstallView extends CJTView { |
| 13 |
|
| 14 |
/** |
| 15 |
* put your comment there... |
| 16 |
* |
| 17 |
* @var mixed |
| 18 |
*/ |
| 19 |
protected $moduleParamName; |
| 20 |
|
| 21 |
/** |
| 22 |
* put your comment there... |
| 23 |
* |
| 24 |
* @var mixed |
| 25 |
*/ |
| 26 |
protected $uploaderModuleName; |
| 27 |
|
| 28 |
/** |
| 29 |
* put your comment there... |
| 30 |
* |
| 31 |
* @var mixed |
| 32 |
*/ |
| 33 |
protected $uploaderActionName; |
| 34 |
|
| 35 |
/** |
| 36 |
* put your comment there... |
| 37 |
* |
| 38 |
* @var mixed |
| 39 |
*/ |
| 40 |
protected $uploaderControllerName; |
| 41 |
|
| 42 |
/** |
| 43 |
* put your comment there... |
| 44 |
* |
| 45 |
* @param mixed $tpl |
| 46 |
*/ |
| 47 |
public function display($tpl = null) { |
| 48 |
// Get uploader parameters. |
| 49 |
$this->uploaderControllerName = $this->getRequestParameter('uploaderControllerName'); |
| 50 |
$this->uploaderActionName = $this->getRequestParameter('uploaderActionName'); |
| 51 |
$this->uploaderModuleName = $this->getRequestParameter('uploaderModuleName'); |
| 52 |
$this->moduleParamName = 'cjtajaxmodule'; |
| 53 |
// Display form. |
| 54 |
echo $this->getTemplate($tpl); |
| 55 |
} |
| 56 |
|
| 57 |
/** |
| 58 |
* Output JavaScript files requirred to Add-New-Block view to run. |
| 59 |
* |
| 60 |
* @return void |
| 61 |
*/ |
| 62 |
public function enququeScripts() { |
| 63 |
// Use related scripts. |
| 64 |
self::useScripts(__CLASS__, |
| 65 |
'jquery', |
| 66 |
'thickbox', |
| 67 |
'jquery-serialize-object', |
| 68 |
'framework:js:misc:{CJT-}simple-error-dialog', |
| 69 |
'views:packages:install:public:js:{CJT-}install' |
| 70 |
); |
| 71 |
} |
| 72 |
|
| 73 |
/** |
| 74 |
* Output CSS files required to Add-New-Block view. |
| 75 |
* |
| 76 |
* @return void |
| 77 |
*/ |
| 78 |
public function enququeStyles() { |
| 79 |
// Use related styles. |
| 80 |
self::useStyles(__CLASS__, |
| 81 |
'thickbox', |
| 82 |
'framework:css:{CJT-}forms', |
| 83 |
'framework:css:{CJT-}error-dialog', |
| 84 |
'views:packages:install:public:css:{CJT-}install' |
| 85 |
); |
| 86 |
} |
| 87 |
|
| 88 |
} // End class. |
| 89 |
|
| 90 |
// Hookable!! |
| 91 |
CJTPackagesInstallView::define('CJTPackagesInstallView', array('hookType' => CJTWordpressEvents::HOOK_FILTER)); |