예제 #1
0
 /**
  * Install extension
  *
  * @return string
  *
  * @access protected
  */
 protected function installExtension()
 {
     $model = new aam_View_Extension();
     return $model->install();
 }
예제 #2
0
 /**
  * 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;
 }