/** * Install extension * * @return string * * @access protected */ protected function installExtension() { $model = new aam_View_Extension(); return $model->install(); }
/** * Install license * * @return string * * @access public */ public function installLicense() { if (current_user_can(aam_Core_ConfigPress::getParam('aam.menu.extensions.capability', 'administrator'))) { $model = new aam_View_Extension(); $response = $model->install(); } else { $response = self::DEFAULT_AJAX_RESPONSE; } return $response; }