| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
* |
| 5 |
*/ |
| 6 |
|
| 7 |
/** |
| 8 |
* The controller is the future controller that |
| 9 |
* will be used when there is no action neeeded |
| 10 |
* to be talked when outputs the view! |
| 11 |
* |
| 12 |
* @author CJT Team |
| 13 |
* @since version 6.0 |
| 14 |
*/ |
| 15 |
class CJTDefaultController extends CJTController { |
| 16 |
|
| 17 |
/** |
| 18 |
* put your comment there... |
| 19 |
* |
| 20 |
*/ |
| 21 |
public function dashboardMetaboxAction() { |
| 22 |
// Create View. |
| 23 |
$view = CJTView::getInstance('dashboard/metabox/statistics'); |
| 24 |
$view->display('default'); |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* put your comment there... |
| 29 |
* |
| 30 |
*/ |
| 31 |
public function displayAction() { |
| 32 |
echo parent::displayAction(); |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* Uninstall CJT Plugin |
| 37 |
* installaion flags, setup-flags |
| 38 |
* and user data! |
| 39 |
* |
| 40 |
* @return void |
| 41 |
*/ |
| 42 |
public function uninstallAction() { |
| 43 |
// Initializing! |
| 44 |
$model = CJTModel::getInstance('uninstall'); |
| 45 |
// Uninstall everything! |
| 46 |
$model->expressUninstall(); |
| 47 |
} |
| 48 |
|
| 49 |
} // End class. |
| 50 |
|