%PDF- %PDF-
Direktori : /var/www/html/buggydubrovnik.com/wp-content/plugins/css-javascript-toolbox/controllers/ |
Current File : /var/www/html/buggydubrovnik.com/wp-content/plugins/css-javascript-toolbox/controllers/package.php |
<?php /** * @version $ Id; ?FILE_NAME ?DATE ?TIME ?AUTHOR $ */ // Disallow direct access. defined('ABSPATH') or die("Access denied"); // import dependencies. cssJSToolbox::import('framework:mvc:controller-ajax.inc.php'); /** * * DESCRIPTION * * @author ?? * @version ?? */ class CJTPackageController extends CJTAjaxController { /** * put your comment there... * * @var mixed */ protected $controllerInfo = array('model' => 'package'); /** * * Initialize new object. * * @return void */ public function __construct() { // Initialize parent! parent::__construct(); // Add actions. $this->registryAction('getReadmeFile'); $this->registryAction('getLicenseFile'); } /** * put your comment there... * */ protected function getReadmeFileAction() { // Get package model. $model =& $this->model; // Set action parameter. $model->setParam('file', 'readme'); // Load view. parent::displayAction(); } /** * put your comment there... * */ protected function getLicenseFileAction() { // Get package model. $model =& $this->model; // Set action parameter. $model->setParam('file', 'license'); // Load view. parent::displayAction(); } } // End class.