/** * put your comment there... * */ public function route($loadView = null, $request = array('view' => 'packages/manager')) { // Load package manager view through the default controller. $this->controllerName = 'default'; // Set MVC request parameters. parent::route($loadView, $request)->setAction('display'); }
/** * put your comment there... * */ public function __construct() { // Initialize Access Point base! parent::__construct(); // Set access point name! $this->name = 'manage'; }
/** * */ abstract class CJTPageAccessPoint extends CJTAccessPoint { /** * put your comment there... * */ public function getPage() { // If not installed always run the installer. if (!CJTPlugin::getInstance()->isInstalled()) { $installedAccessPoint = CJTPlugin::getInstance()->getAccessPoint('installer'); // Redirect menu call back to the installer access point! $this->controller = $installedAccessPoint->installationPage(); // Stop not installed admin notice! $installedAccessPoint->stopNotices(); } else { // If installed work like a pages proxy! // Set as the connected object! $this->connected(); // Process the request! $this->route(); } } } // End class. // Hookable! CJTPageAccessPoint::define('CJTPageAccessPoint', array('hookType' => CJTWordpressEvents::HOOK_FILTER));